- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
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.
Part of the TikTok Scraper API: 24 TikTok endpoints on one key.
Request
Send your key in the x-api-key header.
1curl -G "https://api.socialscrape.dev/v1/tiktok/video" \2 -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3 --data-urlencode 'url=https://www.tiktok.com/@khaby.lame/video/7137423965982592302'1import os2import requests34params = {5 "url": "https://www.tiktok.com/@khaby.lame/video/7137423965982592302",6}7res = requests.get(8 "https://api.socialscrape.dev/v1/tiktok/video",9 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},10 params=params,11 timeout=60,12)13body = res.json()1415if body["ok"]:16 print(body["data"])17else:18 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/tiktok/video");2url.search = new URLSearchParams({3 url: "https://www.tiktok.com/@khaby.lame/video/7137423965982592302",4}).toString();5const res = await fetch(url, {6 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },7});8const body = await res.json();910if (body.ok) {11 console.log(body.data);12} else {13 console.error(body.error.code, body.error.message);14}1{2 "nodes": [3 {4 "name": "SocialScrape TikTok video details",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/tiktok/video",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "url",19 "value": "https://www.tiktok.com/@khaby.lame/video/7137423965982592302"20 }21 ]22 },23 "sendHeaders": true,24 "headerParameters": {25 "parameters": [26 {27 "name": "x-api-key",28 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"29 }30 ]31 }32 }33 }34 ],35 "connections": {}36}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 examples, not your data.
1{2 "ok": true,3 "credits_charged": 1,4 "credits_remaining": 4999,5 "cached": false,6 "cached_at": null,7 "request_id": "req_3ab8d8ed45508298004ebe2e",8 "data": {9 "object": "post",10 "platform": "tiktok",11 "id": "7137423965982592302",12 "url": "https://www.tiktok.com/@charlidamelio/video/7137423965982592302",13 "type": "video",14 "author": {15 "id": "5831967",16 "handle": "charlidamelio",17 "name": "charli d’amelio",18 "url": "https://www.tiktok.com/@charlidamelio",19 "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=...",20 "verified": true21 },22 "title": null,23 "text": null,24 "published_at": "2022-08-29T22:10:18Z",25 "duration_seconds": 11,26 "language": null,27 "hashtags": null,28 "mentions": null,29 "stats": {30 "views": 22000000,31 "likes": 2100000,32 "comments": 19500,33 "shares": 17300,34 "saves": 83186,35 "dislikes": null36 },37 "media": {38 "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...",39 "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...",40 "audio_url": null,41 "image_urls": null,42 "width": 576,43 "height": 102444 },45 "song": {46 "id": "7090403288818584347",47 "title": "Streets x Kiss it better",48 "artist": ":p",49 "url": "https://www.tiktok.com/music/Streets-x-Kiss-it-better-7090403288818584347"50 },51 "location": null,52 "is_pinned": null,53 "is_sponsored": false,54 "extra": {55 "ai_label_shown": false,56 "author_followers": 160300000,57 "category_type": 113,58 "comments_disabled": false,59 "duet_enabled": true,60 "is_private": false61 }62 },63 "cursor": null,64 "has_more": null65}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 Python client has client.tiktok.video(...) and the TypeScript client client.tiktok.video(). Both return the same envelope as the HTTP API. Install them from PyPI (socialscrape-sdk) or npm (socialscrape); plain HTTP works in any language.
Can an AI agent call it?
Yes. The MCP server, which you run on your own machine, reaches every built endpoint, with the same prices.