TikTok video details API
Metadata and engagement stats of one video or photo slideshow.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
get_transcript=true adds the native captions in extra.transcript; for AI transcription use /v1/tiktok/video/transcript.
You send one of url or id.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/tiktok/video" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'url=https://www.tiktok.com/@khaby.lame/video/7137423965982592302'import os
import requests
params = {
"url": "https://www.tiktok.com/@khaby.lame/video/7137423965982592302",
}
res = requests.get(
"https://api.socialscrape.io/v1/tiktok/video",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/tiktok/video");
url.search = new URLSearchParams({
url: "https://www.tiktok.com/@khaby.lame/video/7137423965982592302",
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape TikTok video details",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/tiktok/video",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "url",
"value": "https://www.tiktok.com/@khaby.lame/video/7137423965982592302"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | url | one of | Video URL (www.tiktok.com/@user/video/..., vm.tiktok.com/..., vt.tiktok.com/...). |
id | string | one of | Numeric video id. Also accepted as aweme_id, video_id. |
get_transcript | boolean | Include the video's native captions when it has them. | |
region | string | Two-letter country code (ISO 3166-1) for results that vary by country. Also accepted as country, geo. |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_3ab8d8ed45508298004ebe2e",
"data": {
"object": "post",
"platform": "tiktok",
"id": "7137423965982592302",
"url": "https://www.tiktok.com/@charlidamelio/video/7137423965982592302",
"type": "video",
"author": {
"id": "5831967",
"handle": "charlidamelio",
"name": "charli d’amelio",
"url": "https://www.tiktok.com/@charlidamelio",
"avatar_url": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ee31de49ddf64b45c5b2e3c55fbd0ea4~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9640&refresh_token=...",
"verified": true
},
"title": null,
"text": null,
"published_at": "2022-08-29T22:10:18Z",
"duration_seconds": 11,
"language": null,
"hashtags": null,
"mentions": null,
"stats": {
"views": 22000000,
"likes": 2100000,
"comments": 19500,
"shares": 17300,
"saves": 83186,
"dislikes": null
},
"media": {
"thumbnail_url": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/c1844bce7c5a4b07b0e4ae2301a1996a~tplv-tiktokx-origin.image?dr=9636&x-expires=1793498400&x-sign...",
"video_url": "https://v16-webapp-prime.us.tiktok.com/video/tos/useast5/tos-useast5-ve-0068c001-tx/0641e3a6387a49e4a2c8c4de2c457fe8/?a=1988&bti=ODszNWYuMDE6&&bt=1991&ft=4KJ...",
"audio_url": null,
"image_urls": null,
"width": 576,
"height": 1024
},
"song": {
"id": "7090403288818584347",
"title": "Streets x Kiss it better",
"artist": ":p",
"url": "https://www.tiktok.com/music/Streets-x-Kiss-it-better-7090403288818584347"
},
"location": null,
"is_pinned": null,
"is_sponsored": false,
"extra": {
"ai_label_shown": false,
"author_followers": 160300000,
"category_type": 113,
"comments_disabled": false,
"duet_enabled": true,
"is_private": false
}
},
"cursor": null,
"has_more": null
}Fields
One Post in data.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "post" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
type | "video" or "short" or "reel" or "image" or "carousel" or "story" or "live" or "clip" or "text" or "link" or "tweet" or "pin" or "community_post" or "episode" or "unknown" | ||
author | Author or null | ||
title | string or null | ||
text | string or null | ||
published_at | string (ISO 8601 date-time) or null | ||
duration_seconds | number or null | ||
language | string or null | ||
hashtags | string[] or null | ||
mentions | string[] or null | ||
stats | Stats |
Show the other 6 fields
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
Is there an SDK call for it?
The preview Python client has client.tiktok.video(...) and the TypeScript client client.tiktok.video(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.