API DocsdouyinDataFetch item watch trend analysis
Fetch item watch trend analysis
What this API is for
- Get Douyin item watch trend analysis data
- Understand user behavior patterns while watching the item
- Help creators optimize video content structure and pacing
- **This API requires users to provide valid Douyin Creator Platform Cookie**
- **Use POST method, Cookie is transmitted in request body, more secure**
POST
/openapi/api/v1/douyin/creator_v2/fetch_item_watch_trendPrice: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
- cookie: User's Douyin Creator Platform Cookie (required, transmitted in request body)
- item_id: Item ID (required)
- analysis_type: Analysis type (optional, default is 1)
- **1**: Retention Analysis - Shows user retention at each time point
- **2**: Like Analysis - Shows user like behavior at each time point
- **7**: Bounce Analysis - Shows user bounce rate at each time point
| Name | Location / type | Required | Notes | Example |
|---|---|---|---|---|
| cookie | body / string | Yes |
| Your_Cookie_Here |
| item_id | body / string | Yes |
| 7559536212910853422 |
| analysis_type | body / integer | No |
| 1 |
Request body example
{
"cookie": "Your_Cookie_Here",
"item_id": "7559536212910853422",
"analysis_type": 1
}Request examples
curl -X POST "https://api.trmesh.com/openapi/api/v1/douyin/creator_v2/fetch_item_watch_trend" \ -H "Authorization: Bearer sdc_your_project_token"
Response fields
- analysis_trend: Trend analysis data
- current_item: Data points for current item
- key: Time point (format: mm:ss, e.g., "00:05" for 5 seconds)
- value: Proportion at this time point (decimal between 0-1)
- similar_author: Average data from similar authors (for comparison)
- key: Time point
- value: Average proportion at this time point
| Field | Type | Notes | Example |
|---|---|---|---|
| analysis_trend | unknown |
| |
| current_item | unknown |
| |
| key | unknown |
| |
| value | unknown |
| |
| similar_author | 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 |
|
Response example
{
"analysis_trend": {
"current_item": [
{
"key": "00:00",
"value": 0.2653
},
{
"key": "00:01",
"value": 0.2653
},
{
"key": "00:05",
"value": 0.0272
},
{
"key": "00:10",
"value": 0.1429
}
],
"similar_author": [
{
"key": "00:00",
"value": 0.1594
},
{
"key": "00:01",
"value": 0.2229
}
]
},
"status_code": 0,
"status_msg": ""
}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