Developer docs / Content data
Video data sync
Fetch public video views and engagement metrics from TikTok, Instagram, Douyin, Xiaohongshu, WeChat Channels, and YouTube.
POST
/v1/material/fetch- Authentication:
- Request header x-api-key: <YOUR_API_KEY>; keep the key on the server and never expose it in client code, logs or shared files.
- Success criteria:
- HTTP 2xx with code=0; for asynchronous tasks, also query the final status.
Request body fields
| Field | Type | Required | Description |
|---|---|---|---|
videoUrl | string(uri) | Yes | Public http/https URL of the content |
Request body
{
"videoUrl": "https://www.tiktok.com/@creator/video/7123456789012345678"
}Success response
{
"code": 0,
"data": {
"videoId": "7624922739500993822",
"uniqueId": "creator",
"playCount": 2109422,
"diggCount": 143027,
"commentCount": 1320,
"shareCount": 36150,
"collectCount": 17710,
"coverUrl": "https://cdn.example.com/cover.jpg",
"videoDesc": "caption #tag",
"releaseAt": 1775315687
},
"message": "success"
}Response and errors
Main response fields come from the published contract; see the JSON Schema. Required refers to the constraint in the containing object.
| Field | Type | Required | Description |
|---|---|---|---|
code | integer | Yes | Fixed value: 0 |
message | string | No | — |
data | object | Yes | Normalized fields plus platform-specific public content fields. |
data.videoId | string | No | — |
data.uniqueId | string | No | — |
data.playCount | integer | No | — |
data.diggCount | integer | No | — |
data.commentCount | integer | No | — |
data.shareCount | integer | No | — |
data.collectCount | integer | No | — |
data.coverUrl | string | No | — |
data.videoDesc | string | No | — |
data.releaseAt | integer | No | — |
HTTP 400The request parameters or body are invalid. Fix them and retry.HTTP 401The API key is missing or invalid. Check x-api-key.HTTP 403The API key has no permission to call this endpoint.HTTP 404The public post does not exist or has been deleted.HTTP 429Too many requests. Retry with exponential backoff.HTTP 500The server failed. Retry transient failures with exponential backoff.
Fix parameter, permission or authorization errors before retrying. If task creation times out, query existing tasks first and do not submit duplicates after an interrupted poll.
Last updated · 2026-11-16