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_metricsPrice: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
- item_id: Video ID, required parameter, can be obtained from video sharing links or TikTok Studio
| Name | Location / type | Required | Notes | Example |
|---|---|---|---|---|
| item_id | query / string | Yes |
| 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
| Field | Type | Notes | Example |
|---|---|---|---|
| item_id | unknown |
| |
| video_views | unknown |
| |
| value | unknown |
| |
| video_views_14_days | unknown |
| |
| interval | unknown |
| |
| likes | unknown |
| |
| likes_14_days | unknown |
| |
| comments | unknown |
| |
| comments_14_days | unknown |
| |
| favorites | unknown |
| |
| favorites_14_days | unknown |
| |
| video_summary | unknown |
| |
| title | unknown |
| |
| content | unknown |
| |
| summary_type | 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