Fetch item watch trend analysis

Browse registered social-data routes across platforms, then dive into detailed reference docs

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_trend

Price: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 headerAuthorization: Bearer YOUR_API_TOKEN

Request 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
NameLocation / typeRequiredNotesExample
cookiebody / stringYes
  • User Cookie
Your_Cookie_Here
item_idbody / stringYes
  • Item ID
7559536212910853422
analysis_typebody / integerNo
  • Analysis type: 1=留存分析(Retention), 2=点赞分析(Like), 7=跳出分析(Bounce)
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
FieldTypeNotesExample
analysis_trendunknown
  • Trend analysis data
current_itemunknown
  • Data points for current item
keyunknown
  • Time point
valueunknown
  • Average proportion at this time point
similar_authorunknown
  • Average data from similar authors (for comparison)

Common response envelope

Common fields for response status, request identifiers and data

FieldTypeNotesExample
codeinteger
  • HTTP status code | HTTP状态码
request_idstring | null
  • Unique request identifier | 唯一请求标识符
messagestring
  • Response message (EN-US) | 响应消息 (English)
message_zhstring
  • Response message (ZH-CN) | 响应消息 (中文)
supportstring
  • Support message | 支持消息
timestring
  • The time the response was generated | 生成响应的时间
time_stampinteger
  • The timestamp the response was generated | 生成响应的时间戳
time_zonestring
  • The timezone of the response time | 响应时间的时区
docsstring | null
  • Link to the API Swagger documentation for this endpoint | 此端点的 API Swagger 文档链接
cache_messagestring | null
  • Cache message (EN-US) | 缓存消息 (English)
cache_message_zhstring | null
  • Cache message (ZH-CN) | 缓存消息 (中文)
cache_urlstring | null
  • The URL to access the cached result | 访问缓存结果的 URL
routerstring
  • The endpoint that generated this response | 生成此响应的端点
paramsunknown
  • The parameters used in the request | 请求中使用的参数
dataunknown | null
  • The response data | 响应数据

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

CodeMeaningNotes
200SuccessThe request completed and returned the standard response envelope.
401UnauthorizedThe token is missing, invalid, or no longer active.
429Rate limitedThe request exceeded token, user, or plan-level throughput limits.
502Service unavailableThe gateway could not obtain a healthy result. Retry in a moment.
Next steps

New to the API? Read the guide or explore examples