# TikTok Transcript

Get the transcript of a public TikTok video from its captions. Pass a video URL, a short link (vm.tiktok.com, vt.tiktok.com) or a video ID. The response has the full text, timed segments in seconds and every available caption language. Without a language you get the original language. About 30 to 55 percent of videos have no captions; those answer 404 no_captions. Costs 1 credit per request. Failed requests are free.

- **Documentation:** [https://scrappa.co/docs/tiktok/tiktok_transcript](https://scrappa.co/docs/tiktok/tiktok_transcript)
- **API group:** TikTok API
- **Endpoint:** `GET https://scrappa.co/api/tiktok/transcript`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | No | TikTok video URL or short link. Use either url or video_id. |
| `video_id` | string | No | TikTok video ID (digits only). Use either url or video_id. |
| `language` | string | No | Caption language code such as en, de or en-US. Defaults to the original language of the video. An unavailable language answers 404 language_not_available. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/tiktok/transcript?video_id=7555711155436604702&language=en"
```

## Example response

```json
{
    "code": 0,
    "video_id": "7555711155436604702",
    "language": "en",
    "text": "Welcome back to the channel. Today we cook pasta.",
    "segments": [
        {
            "start": 0,
            "end": 2.661,
            "text": "Welcome back to the channel."
        },
        {
            "start": 2.661,
            "end": 4.421,
            "text": "Today we cook pasta."
        }
    ],
    "available_languages": [
        {
            "code": "en",
            "name": "English",
            "source": "ASR",
            "is_auto_generated": true,
            "is_original": true
        },
        {
            "code": "de",
            "name": "German",
            "source": "MT",
            "is_auto_generated": true,
            "is_original": false
        }
    ],
    "video": {
        "author": "tiktok",
        "description": "Pasta night #cooking",
        "duration": 65
    }
}
```

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
