API · TikTok
GET /tiktok/videos/{id}/transcript
What is said in a TikTok video, from its caption track: WebVTT, text and timed segments.
| |
|---|
| Request | GET /v1/tiktok/videos/{id}/transcript |
| Operation id | tiktok.video.transcript |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
What is said in a TikTok video, from its caption track: WebVTT, text and timed segments.
| Name | Type | Required | Description |
|---|
id | string | yes | A video (or photo post) id, or its URL (www.tiktok.com/@user/video/<id>). Example: 7707446852798549279. |
| Name | Type | Required | Description |
|---|
language | string | no | Language code, e.g. en, es, pt-BR. |
| Status | Meaning | Schema |
|---|
200 | The transcript. | TikTokTranscriptResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The account, video, comment, hashtag or sound does not exist on TikTok, or was removed. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | TikTok is temporarily unavailable. Retryable; nothing was charged. | Error |
| Field | Type | Description |
|---|
itemId | string | Video id, as a decimal string. |
language | string | The track’s language code, e.g. eng-US. |
source | string | Who made the track: ASR (TikTok’s auto captions), MT (machine translation) or the creator. |
webvtt | string | The track as TikTok serves it (WebVTT). |
text | string | The cues joined into plain text. |
segments | object[] | |
subtitleInfos | object[] | Every track TikTok lists for the video (languages, formats). |
Errors use one shape everywhere; see Errors for every code and what to do.