TikTok Post
POST /api/v1/tiktok/post
Get details of a public TikTok post/video: caption, creator, video download links, music, views, likes, shares and bookmarks.
Overview
Get details of a public TikTok post/video: caption, creator, video download links, music, views, likes, shares and bookmarks.
POST /api/v1/tiktok/post
Method: POST Path: /api/v1/tiktok/post Category: Social Media
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| post_url | string | Required | Public TikTok post or video URL, e.g. https://www.tiktok.com/@tiktok/video/7299103344556677 |
Request Example
TikTok Post Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/tiktok/post" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"post_url": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "id": "1234567890", "canonical_url": "https://example.com/...", "description": "string", "created_at": "2026-01-01T12:00:00Z", "created_at_unix": 0, "schedule_time": 0, "location_created": "string", "index_enabled": false, "text_language": "string", "is_advertisement": false, "is_ai_generated_content": false, "ai_generated_content_description": "string", "secret": false, "private_item": false, "for_friend": false, "original_item": false, "official_item": false, "take_down": 0, "digged": false, "collected": false, "duet_enabled": false, "stitch_enabled": false, "item_comment_status": 0, "backend_type": "string", "content_desc": "string", "is_content_classified": false, "content_classification_reason": "string", "stats": { "likes": 0, "comments": 0, "shares": 0, "plays": 0, "bookmarks": 0, "reposts": 0 }, "author": { "id": "1234567890", "username": "string", "nickname": "string", "signature": "string", "avatar": "string", "verified": false, "secret": false, "private_account": false, "open_favorite": false, "comment_setting": 0, "duet_setting": 0, "stitch_setting": 0, "room_id": "1234567890", "unique_id_modify_time": 0, "nickname_modify_time": 0, "created_at": "2026-01-01T12:00:00Z", "created_at_unix": 0, "stats": { "followers": 0, "following": 0, "likes": 0, "videos": 0, "digg_count": 0, "friends": 0 } }, "videos_and_audio": { "video_id": "1234567890", "video_url": "https://example.com/...", "music_id": "1234567890", "music_title": "string", "music_author": "string", "music_url": "https://example.com/...", "duration": 0, "cover_image_url": "https://example.com/...", "dynamic_cover_url": "https://example.com/...", "download_url": "https://example.com/...", "play_url": "https://example.com/..." }, "video": { "id": "1234567890", "height": 0, "width": 0, "duration": 0, "ratio": "string", "cover": "string", "origin_cover": "string", "dynamic_cover": "string", "play_url": "https://example.com/...", "download_url": "https://example.com/...", "format": "string", "bitrate": 0, "codec_type": "string", "definition": "string", "volume_info": { "loudness": 0.0, "peak": 0.0 } }, "music": { "id": "1234567890", "title": "string", "author": "string", "album": "string", "duration": 0, "cover": "string", "play_url": "https://example.com/...", "original": false, "precise_duration": { "precise_duration": 0.0, "precise_shoot_duration": 0.0, "precise_audition_duration": 0.0, "precise_video_duration": 0.0 } }, "repost": { "can_repost": false }, "hashtags": [ { "id": "1234567890", "title": "string", "url": "https://example.com/..." } ], "mentions": [ { "id": "1234567890", "username": "string", "security_user_id": "1234567890" } ], "stickers_on_item": [ { "stickerText": [ "string" ], "stickerType": 0 } ], "effect_stickers": [ "string" ], "anchors": [ "string" ], "warn_info": [ "string" ], "app_context": { "language": "string", "region": "string", "request_id": "1234567890", "cluster_region": "string" }, "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "TikTok Post", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Unique numeric TikTok video ID. |
| canonical_url | string | Yes | Canonical TikTok video URL. |
| description | string | Yes | Post caption / title text. |
| created_at | string | Yes | Publication timestamp in UTC ISO-8601 format. |
| created_at_unix | integer | Yes | Publication timestamp in Unix seconds. |
| schedule_time | integer | null | No | Scheduled post timestamp if applicable. |
| location_created | string | No | Country / region code where video was created. |
| index_enabled | boolean | No | True if search engine indexing is allowed. |
| text_language | string | No | Detected language code of video caption. |
| is_advertisement | boolean | No | True if marked as sponsored or advertisement. |
| is_ai_generated_content | boolean | No | True if creator or system flagged content as AI-generated. |
| ai_generated_content_description | string | null | No | Details regarding AI generation disclosure. |
| secret | boolean | No | True if post is private or secret. |
| private_item | boolean | No | True if item is private. |
| for_friend | boolean | No | True if post is shared with friends only. |
| original_item | boolean | No | True if post is original content. |
| official_item | boolean | No | True if official item. |
| take_down | integer | No | Takedown status code. |
| digged | boolean | No | True if viewer liked this post. |
| collected | boolean | No | True if viewer bookmarked / favorited this post. |
| duet_enabled | boolean | No | True if duets are permitted. |
| stitch_enabled | boolean | No | True if stitches are permitted. |
| item_comment_status | integer | No | Comment permission status code. |
| backend_type | string | integer | null | No | Internal backend classification type. |
| content_desc | string | No | Content description or transcript summary. |
| is_content_classified | boolean | No | True if content is age-restricted or sensitive. |
| content_classification_reason | string | null | No | Reason for content restriction if classified. |
| stats | object | Yes | Post engagement metrics and play counts. |
| stats.likes | integer | Yes | Total like / digg count. |
| stats.comments | integer | Yes | Total comment count. |
| stats.shares | integer | Yes | Total share count. |
| stats.plays | integer | Yes | Total video view count. |
| stats.bookmarks | integer | Yes | Total bookmarks / favorites count. |
| stats.reposts | integer | Yes | Total reposts count. |
| author | object | Yes | Creator account metadata. |
| author.id | string | Yes | Creator user ID. |
| author.username | string | Yes | Creator username handle. |
| author.nickname | string | Yes | Creator display nickname. |
| author.signature | string | No | Creator bio signature. |
| author.avatar | string | Yes | Creator avatar image URL. |
| author.verified | boolean | Yes | Whether creator is verified. |
| author.secret | boolean | No | True if the author's account is secret. |
| author.private_account | boolean | No | True if the author's account is private. |
| author.open_favorite | boolean | No | True if the author's favourites are public. |
| author.comment_setting | integer | No | Who can comment on the author's posts (TikTok setting code). |
| author.duet_setting | integer | No | Who can duet the author's posts (TikTok setting code). |
| author.stitch_setting | integer | No | Who can stitch the author's posts (TikTok setting code). |
| author.room_id | string | null | No | Live room ID when the author is live, otherwise null. |
| author.unique_id_modify_time | integer | No | Unix time the username was last changed (0 when never or unknown). |
| author.nickname_modify_time | integer | No | Unix time the display name was last changed (0 when never or unknown). |
| author.created_at | string | null | No | Account creation time in UTC ISO-8601. |
| author.created_at_unix | integer | No | Account creation time in Unix seconds (0 when unknown). |
| author.stats | object | Yes | |
| author.stats.followers | integer | No | |
| author.stats.following | integer | No | |
| author.stats.likes | integer | No | |
| author.stats.videos | integer | No | |
| author.stats.digg_count | integer | No | |
| author.stats.friends | integer | No | |
| videos_and_audio | object | Yes | Consolidated audio and video media download/streaming URLs. |
| videos_and_audio.video_id | string | Yes | |
| videos_and_audio.video_url | string | Yes | |
| videos_and_audio.music_id | string | Yes | |
| videos_and_audio.music_title | string | Yes | |
| videos_and_audio.music_author | string | Yes | |
| videos_and_audio.music_url | string | No | |
| videos_and_audio.duration | integer | Yes | |
| videos_and_audio.cover_image_url | string | Yes | |
| videos_and_audio.dynamic_cover_url | string | No | |
| videos_and_audio.download_url | string | Yes | |
| videos_and_audio.play_url | string | Yes | |
| video | object | Yes | Technical video stream specifications and dimensional data. |
| video.id | string | Yes | |
| video.height | integer | Yes | |
| video.width | integer | Yes | |
| video.duration | integer | Yes | |
| video.ratio | string | No | |
| video.cover | string | No | |
| video.origin_cover | string | No | |
| video.dynamic_cover | string | No | |
| video.play_url | string | Yes | |
| video.download_url | string | Yes | |
| video.format | string | No | |
| video.bitrate | integer | No | |
| video.codec_type | string | No | |
| video.definition | string | No | |
| video.volume_info | object | No | |
| video.volume_info.loudness | number | null | No | Integrated loudness of the audio track (LUFS). |
| video.volume_info.peak | number | null | No | Peak audio level. |
| music | object | Yes | Background music track details and audio streams. |
| music.id | string | Yes | |
| music.title | string | Yes | |
| music.author | string | Yes | |
| music.album | string | No | |
| music.duration | integer | Yes | |
| music.cover | string | No | |
| music.play_url | string | Yes | |
| music.original | boolean | No | |
| music.precise_duration | object | No | |
| music.precise_duration.precise_duration | number | null | No | Exact sound duration in seconds. |
| music.precise_duration.precise_shoot_duration | number | null | No | Sound duration used when recording, in seconds. |
| music.precise_duration.precise_audition_duration | number | null | No | Preview duration in seconds. |
| music.precise_duration.precise_video_duration | number | null | No | Duration of the video using the sound, in seconds. |
| repost | object | No | |
| repost.can_repost | boolean | No | |
| hashtags | array<object> | Yes | Hashtags referenced in video caption. |
| hashtags[].id | string | No | |
| hashtags[].title | string | Yes | |
| hashtags[].url | string | Yes | |
| mentions | array<object> | Yes | Tagged user mentions in video caption. |
| mentions[].id | string | No | |
| mentions[].username | string | No | |
| mentions[].security_user_id | string | No | |
| stickers_on_item | array<object> | No | Text stickers shown on the video. |
| stickers_on_item[].stickerText | array<string> | No | Text of the sticker. |
| stickers_on_item[].stickerType | integer | No | TikTok sticker type code. |
| effect_stickers | array | No | |
| anchors | array | No | |
| warn_info | array | No | |
| app_context | object | No | |
| app_context.language | string | No | Page language. |
| app_context.region | string | No | Region TikTok served the page for. |
| app_context.request_id | string | No | TikTok request ID. Empty string when unknown. |
| app_context.cluster_region | string | No | TikTok server cluster region. |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/tiktok/post?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
post_url example
Pricing & Rate Limits
Endpoint Pricing
$0.0009 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |