TikTok video transcript API

TikTok's own captions when the video has them (the English track first, else the first one).

GETapi.socialscrape.io/v1/tiktok/video/transcript
Cost
1 creditAI transcription is billed by the started minute after 2
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits
Status
Betashape may still gain fields

AI transcription of the audio when it does not. language steers the AI transcription only.

You send one of url or id.

Request

Send your key in the x-api-key header.

curl
curl -G "https://api.socialscrape.io/v1/tiktok/video/transcript" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode 'url=https://www.tiktok.com/@nasa/video/7665075736742530317'
Python
import os
import requests

params = {
    "url": "https://www.tiktok.com/@nasa/video/7665075736742530317",
}
res = requests.get(
    "https://api.socialscrape.io/v1/tiktok/video/transcript",
    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"])
TypeScript
const url = new URL("https://api.socialscrape.io/v1/tiktok/video/transcript");
url.search = new URLSearchParams({
  url: "https://www.tiktok.com/@nasa/video/7665075736742530317",
}).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);
}
n8n
{
  "nodes": [
    {
      "name": "SocialScrape TikTok video transcript",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/tiktok/video/transcript",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "url",
              "value": "https://www.tiktok.com/@nasa/video/7665075736742530317"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {}
}

Parameters

NameTypeRequiredDescription
urlurlone ofVideo URL (www.tiktok.com/@user/video/..., vm.tiktok.com/..., vt.tiktok.com/...).
idstringone ofNumeric video id. Also accepted as aweme_id, video_id.
languagestringPreferred caption language (2-letter code: en, es, fr, de, it, ja, ko, zh). Also accepted as lang.
ai_fallbackbooleanTranscribe the audio with AI when the video has no captions. Set false to get no transcript instead, and no AI charge. Also accepted as use_ai_as_fallback.

Every request also accepts trim, raw and max_age_days.

Response

Sample from a recorded response, shortened. Values are public data, not yours.

Status 200Sample
{
  "ok": true,
  "credits_charged": 1,
  "credits_remaining": 4999,
  "cached": false,
  "cached_at": null,
  "request_id": "req_caca6f86f02fab9fc66bda7f",
  "data": {
    "object": "transcript",
    "platform": "tiktok",
    "video_id": "7665075736742530317",
    "url": "https://www.tiktok.com/@nasa/video/7665075736742530317",
    "language": "en",
    "source": "ai",
    "duration_seconds": 25,
    "text": "Something big just landed on TikTok.",
    "segments": [
      {
        "start": 0,
        "end": 2.4,
        "text": "Something big just landed on TikTok."
      }
    ],
    "available_languages": null,
    "extra": null
  },
  "cursor": null,
  "has_more": null
}

Fields

One Transcript in data.

A field the platform does not give is null, never made up. Extra platform details are in extra.

FieldTypeAlwaysNotes
object"transcript"
platformPlatformyes
video_idstring or null
urlstring or null
languagestring or nullBCP 47, "en"
source"captions" or "auto_captions" or "ai"yes
duration_secondsnumber or null
textstringyes
segmentsTranscriptSegment[] or null
available_languagesstring[] or null
extraobject or null

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), transcript_unavailable (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_transcript(...) and the TypeScript client client.tiktok.videoTranscript(). 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.

Build on social data early.

Developers and agent builders get the first keys.

Get early access