Get video metrics

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

API DocstiktokContentGet video metrics

Get video metrics

What this API is for

  • Retrieve detailed analytics data for TikTok videos, including views, likes, comments, and favorites
  • Provide total statistics and daily trends for 14 days since the release date, facilitating video performance analysis
  • Help creators analyze content effectiveness, evaluate user engagement, and optimize content strategy
GET/openapi/api/v1/tiktok/analytics/fetch_video_metrics

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

  • item_id: Video ID, required parameter, can be obtained from video sharing links or TikTok Studio
NameLocation / typeRequiredNotesExample
item_idquery / stringYes
  • Video id
7502551047378832671

Request examples

curl -X GET "https://api.trmesh.com/openapi/api/v1/tiktok/analytics/fetch_video_metrics" \
  -H "Authorization: Bearer sdc_your_project_token" \
  -H "Accept: application/json"

Response fields

  • item_id: The requested video ID
  • video_views: Total number of video views
    • value: View count value
  • video_views_14_days: Daily view trends for the past 14 days
    • interval: Data interval type
    • value: List of daily data
  • likes: Total number of likes on the video
    • value: Like count value
  • likes_14_days: Daily like trends for the past 14 days
  • comments: Total number of comments on the video
    • value: Comment count value
  • comments_14_days: Daily comment trends for the past 14 days
  • favorites: Total number of times the video was favorited
    • value: Favorite count value
  • favorites_14_days: Daily favorite trends for the past 14 days
  • video_summary: Overview analysis of video performance
    • title: Overview title
    • content: Overview content
    • summary_type: Overview type
FieldTypeNotesExample
item_idunknown
  • The requested video ID
video_viewsunknown
  • Total number of video views
valueunknown
  • Favorite count value
video_views_14_daysunknown
  • Daily view trends for the past 14 days
intervalunknown
  • Data interval type
likesunknown
  • Total number of likes on the video
likes_14_daysunknown
  • Daily like trends for the past 14 days
commentsunknown
  • Total number of comments on the video
comments_14_daysunknown
  • Daily comment trends for the past 14 days
favoritesunknown
  • Total number of times the video was favorited
favorites_14_daysunknown
  • Daily favorite trends for the past 14 days
video_summaryunknown
  • Overview analysis of video performance
titleunknown
  • Overview title
contentunknown
  • Overview content
summary_typeunknown
  • Overview type

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 | 响应数据

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