API DocstiktokContentGet Product Related Videos
Get Product Related Videos
What this API is for
- Retrieve the list of all videos associated with a specified product along with their interaction metrics (such as like count, comment count, share count).
- Useful for analyzing the promotional effectiveness and differences of the same product across different creators' videos.
- Supports time-based filtering, defaulting to the calendar month of the specified start_date
POST
/openapi/api/v1/tiktok/creator/get_product_related_videosPrice: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_product_related_videos" \ -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, product_id, item_id)
- timed_lists: List of related videos
- start_timestamp: Start timestamp
- end_timestamp: End timestamp
- stats:
- video_product_id: Product ID
- video:
- item_id: Video ID
- video_id: Video internal ID
- name: Video caption/title
- publish_time: Publish timestamp
- duration: Video duration (seconds)
- video_play_info:
- post_url: Video cover image link
- video_infos.main_url: Main video URL
- video_like_cnt: Like count
- video_comment_cnt: Comment count
- video_share_cnt: Share count
| Field | Type | Notes | Example |
|---|---|---|---|
| time_selector | unknown |
| |
| filter | unknown |
| |
| timed_lists | unknown |
| |
| start_timestamp | unknown |
| |
| end_timestamp | unknown |
| |
| video_product_id | unknown |
| |
| item_id | unknown |
| |
| video_id | unknown |
| |
| name | unknown |
| |
| publish_time | unknown |
| |
| duration | unknown |
| |
| post_url | unknown |
| |
| video_infos.main_url | unknown |
| |
| video_like_cnt | unknown |
| |
| video_comment_cnt | unknown |
| |
| video_share_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