TikTok for Developers · Schema
TikTok Video
Schema for a TikTok video object returned by the Display API and Research API
AdvertisingAnalyticsAuthenticationContentSocial MediaVideo
Properties
| Name | Type | Description |
|---|---|---|
| id | string | Unique identifier for the video |
| create_time | integer | Unix timestamp when the video was created |
| cover_image_url | string | URL of the video cover image |
| share_url | string | Shareable URL for the video |
| video_description | string | Caption or description of the video |
| duration | integer | Video duration in seconds |
| height | integer | Video height in pixels |
| width | integer | Video width in pixels |
| title | string | Video title |
| embed_html | string | HTML embed code for the video |
| embed_link | string | Embed link URL |
| like_count | integer | Number of likes |
| comment_count | integer | Number of comments |
| share_count | integer | Number of shares |
| view_count | integer | Number of views |
| hashtag_names | array | Hashtags used in the video |
| username | string | Username of the video creator |
| region_code | string | ISO 3166-1 alpha-2 region code |
| music_id | string | ID of the background music used |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/tiktok-for-developers/main/json-schema/tiktok-for-developers-video-schema.json",
"title": "TikTok Video",
"description": "Schema for a TikTok video object returned by the Display API and Research API",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the video"
},
"create_time": {
"type": "integer",
"description": "Unix timestamp when the video was created"
},
"cover_image_url": {
"type": "string",
"format": "uri",
"description": "URL of the video cover image"
},
"share_url": {
"type": "string",
"format": "uri",
"description": "Shareable URL for the video"
},
"video_description": {
"type": "string",
"description": "Caption or description of the video"
},
"duration": {
"type": "integer",
"description": "Video duration in seconds"
},
"height": {
"type": "integer",
"description": "Video height in pixels"
},
"width": {
"type": "integer",
"description": "Video width in pixels"
},
"title": {
"type": "string",
"description": "Video title"
},
"embed_html": {
"type": "string",
"description": "HTML embed code for the video"
},
"embed_link": {
"type": "string",
"format": "uri",
"description": "Embed link URL"
},
"like_count": {
"type": "integer",
"minimum": 0,
"description": "Number of likes"
},
"comment_count": {
"type": "integer",
"minimum": 0,
"description": "Number of comments"
},
"share_count": {
"type": "integer",
"minimum": 0,
"description": "Number of shares"
},
"view_count": {
"type": "integer",
"minimum": 0,
"description": "Number of views"
},
"hashtag_names": {
"type": "array",
"items": {
"type": "string"
},
"description": "Hashtags used in the video"
},
"username": {
"type": "string",
"description": "Username of the video creator"
},
"region_code": {
"type": "string",
"description": "ISO 3166-1 alpha-2 region code"
},
"music_id": {
"type": "string",
"description": "ID of the background music used"
}
},
"required": ["id"]
}