> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posttu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Transcript

> Extracts the transcript, captions, or subtitles from a TikTok video by URL. Returns `id`, `url`, and `transcript` as a WEBVTT-formatted string with timestamped text segments. Video must be under 2 minutes;

### Query Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `url` | `string` | Yes | TikTok video URL |
| `language` | `string` | No | Language of the transcript. 2 letter language code, ie 'en', 'es', 'fr', 'de', 'it', 'ja', 'ko', 'zh' |
| `use_ai_as_fallback` | `string` | No | Set to 'true' to use AI as a fallback to get the transcript if the transcript is not found. And only if the video is under 2 minutes. |

### Response Example

```json theme={null}
{
  "success": true,
  "data": {
  "id": "7499229683859426602",
  "url": "https://www.tiktok.com/@stoolpresidente/video/7499229683859426602",
  "transcript": "WEBVTT\n\n\n00:00:00.120 --> 00:00:01.840\nAlright, pizza review time.\n\n00:00:01.841 --> 00:00:03.761\nSal's Pizza Factory. Oh,\n\n00:00:03.762 --> 00:00:05.721\nit's Fucking Corn. We're in Charlotte.\n\n00:00:05.722 --> 00:00:07.861\nAlright man, any chance I can get a real quick picture?\n\n00:00:07.920 --> 00:00:10.040\nShaq or Dwight Howard? I gotta pick one.\\n"
}
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.