API DocstiktokContentGet Video-Product Association Statistics
Get Video-Product Association Statistics
What this API is for
- Retrieve detailed promotional statistics between a specific TikTok video and a specific product.
- Supports analyzing metrics such as product views, clicks, sales, order counts, product revenue, and direct revenue.
- The data is segmented by time intervals (daily/weekly/monthly) to observe trends over time
POST
/openapi/api/v1/tiktok/creator/get_video_to_product_statsPrice:Price unavailable · Actual charges depend on free quota and account discounts
Authentication
All API requests require a Bearer project token in the Authorization header
Authorization header
Authorization: Bearer YOUR_API_TOKENRequest parameters
| Name | Location / type | Required | Notes | Example |
|---|---|---|---|---|
| cookie | body / string | No |
| |
| proxy | body / string | null | No |
| |
| start_date | body / string | No |
| |
| item_id | body / string | Yes |
| |
| product_id | body / string | Yes |
|
Request examples
curl -X POST "https://api.trmesh.com/openapi/api/v1/tiktok/creator/get_video_to_product_stats" \ -H "Authorization: Bearer sdc_your_project_token"
Response fields
- segments:
- time_selector: Time filtering parameters (period, granularity, start_timestamp, end_timestamp)
- filter: Query conditions (creator_id, item_id, product_id)
- timed_stats: Segmented statistics list
- start_timestamp: Start timestamp
- end_timestamp: End timestamp
- stats:
- item_id: Video ID
- product_id: Product ID
- product_revenue.amount_formatted: Total product revenue (formatted string, e.g., "$100.00")
- product_revenue.amount: Total product revenue (numeric)
- direct_revenue.amount_formatted: Direct sales revenue (formatted string)
- product_sales_cnt: Number of products sold
- product_view_cnt: Number of product views
- product_click_cnt: Number of product clicks
- order_cnt: Number of orders created
| Field | Type | Notes | Example |
|---|---|---|---|
| time_selector | unknown |
| |
| filter | unknown |
| |
| timed_stats | unknown |
| |
| start_timestamp | unknown |
| |
| end_timestamp | unknown |
| |
| item_id | unknown |
| |
| product_id | unknown |
| |
| product_revenue.amount_formatted | unknown |
| |
| product_revenue.amount | unknown |
| |
| direct_revenue.amount_formatted | unknown |
| |
| product_sales_cnt | unknown |
| |
| product_view_cnt | unknown |
| |
| product_click_cnt | unknown |
| |
| order_cnt | unknown |
|
Common response envelope
Common fields for response status, request identifiers and data
| Field | Type | Notes | Example |
|---|---|---|---|
| code | integer |
| |
| request_id | string | null |
| |
| message | string |
| |
| message_zh | string |
| |
| support | string |
| |
| time | string |
| |
| time_stamp | integer |
| |
| time_zone | string |
| |
| docs | string | null |
| |
| cache_message | string | null |
| |
| cache_message_zh | string | null |
| |
| cache_url | string | null |
| |
| router | string |
| |
| params | unknown |
| |
| data | unknown | null |
|
Errors and limits
The docs cover not only success responses, but also auth failures, rate limits, and data-service errors
| Code | Meaning | Notes |
|---|---|---|
| 200 | Success | The request completed and returned the standard response envelope. |
| 401 | Unauthorized | The token is missing, invalid, or no longer active. |
| 429 | Rate limited | The request exceeded token, user, or plan-level throughput limits. |
| 502 | Service unavailable | The gateway could not obtain a healthy result. Retry in a moment. |
Next steps
New to the API? Read the guide or explore examples