---
title: "TikTok transcript API, captions and comments as JSON"
description: "Get the transcript of any public TikTok video as text, JSON segments, SRT or VTT, plus its stats and comments. Code in curl, Python and JavaScript."
url: https://scrapecrate.com/blog/tiktok-transcript-api
markdown: https://scrapecrate.com/blog/tiktok-transcript-api.md
---

# TikTok transcript API, captions and comments in one call

Get the transcript of any public TikTok video as text, JSON segments, SRT or VTT, plus its stats and comments. Code in curl, Python and JavaScript.

Published November 25, 2026 · 6 min read

Short videos carry a lot of spoken information: product reviews, recipes, tutorials, news explainers, the hooks that make an ad work. If you want to search it, summarise it, translate it or feed it to a language model, you need the words as text, not the video file.

TikTok already captions most videos, either automatically or with captions the creator uploads. The hard part is getting them out: they are loaded by the app after the page renders, the format changes, and datacenter IPs get blocked quickly. This guide shows how to get them with one HTTP call, together with the video's metadata and its comments, using the [TikTok API](https://scrapecrate.com/tiktok-api.md) of ScrapeCrate.

## The endpoints you need

Everything lives under `https://api.scrapecrate.com/v1/tiktok`:

| Endpoint | What it returns |
| --- | --- |
| `GET /resolve?url=` | The `video_id` or `username` behind any TikTok link |
| `GET /videos/{video_id}` | Description, hashtags, author, sound, views, likes, comments, shares, saves, caption languages |
| `GET /videos/{video_id}/transcript` | The captions as text and timed segments |
| `GET /videos/{video_id}/comments` | Comments, page by page |
| `GET /users/{username}` | A public profile |
| `GET /users/{username}/videos` | A profile's videos, newest first |

Every call costs 2 credits when it succeeds, and nothing when it fails.

## Step 1: from link to video ID

People share TikTok links in many shapes: the full `tiktok.com/@user/video/...` URL, or short `vm.tiktok.com` and `vt.tiktok.com` links. The transcript endpoint needs the numeric ID, so resolve the link first (you can skip this when you already have the full URL: the ID is the long number at the end).

```bash
curl "https://api.scrapecrate.com/v1/tiktok/resolve?url=https://vm.tiktok.com/ZMexample/" \
  -H "X-API-Key: YOUR_API_KEY"
```

```python
# pip install scrapecrate
from scrapecrate import ScrapeCrate

client = ScrapeCrate(api_key="YOUR_API_KEY")
link = client.tiktok.resolve(url="https://vm.tiktok.com/ZMexample/")
print(link.data["type"], link.data["video_id"], link.data["username"])
```

```javascript
// npm install scrapecrate
import { ScrapeCrate } from 'scrapecrate';

const client = new ScrapeCrate({ apiKey: 'YOUR_API_KEY' });
const link = await client.tiktok.resolve({ url: 'https://vm.tiktok.com/ZMexample/' });
console.log(link.data.type, link.data.video_id, link.data.username);
```

`type` says whether the link points to a video or a profile; for a video you also get `video_id`, `username` and the canonical `url`.

## Step 2: get the transcript

```bash
curl "https://api.scrapecrate.com/v1/tiktok/videos/7707741942771191054/transcript?lang=en" \
  -H "X-API-Key: YOUR_API_KEY"
```

```python
transcript = client.tiktok.video_transcript(video_id="7707741942771191054", lang="en")
print(transcript.data["source"], transcript.data["language"])
print(transcript.data["text"])
for seg in transcript.data["segments"]:
    print(f'{seg["start"]:6.2f}s  {seg["text"]}')
```

```javascript
const transcript = await client.tiktok.videoTranscript({ video_id: '7707741942771191054', lang: 'en' });
console.log(transcript.data.source, transcript.data.language);
for (const seg of transcript.data.segments) console.log(seg.start.toFixed(2), seg.text);
```

The JSON answer has:

- `video_id` and `language`, the caption track you got, for example `en-US`
- `source`: `asr` for TikTok's automatic captions, `creator` for captions the creator uploaded, `translation` for a translated track
- `text`: the whole transcript as one string
- `segments`: a list of `{text, start, duration}`, times in seconds
- `available_languages`: every caption track of the video, each with its `language` and `source`

`lang` accepts `en` or `en-US`; without it you get the video's first caption track. `format` changes the shape: `json` (the default), `text`, `srt` or `vtt`. With `srt` or `vtt` the subtitle file is in `text`, ready to save next to the video or load into an editor.

A video without captions answers `404`, and you are not charged for it. Handle it like any other missing resource:

```python
from scrapecrate import NotFoundError

try:
    transcript = client.tiktok.video_transcript(video_id="7707741942771191054", format="srt")
    open("video.srt", "w", encoding="utf-8").write(transcript.data["text"])
except NotFoundError:
    print("No captions on this video")
```

```javascript
import { NotFoundError } from 'scrapecrate';

try {
  const t = await client.tiktok.videoTranscript({ video_id: '7707741942771191054', format: 'vtt' });
  console.log(t.data.text);
} catch (err) {
  if (err instanceof NotFoundError) console.log('No captions on this video');
  else throw err;
}
```

## Step 3: add the video metadata

A transcript without context is hard to rank. The video endpoint returns what you need to decide which transcripts matter: `description`, `hashtags`, `created_at`, `duration`, the `author` (`username`, `nickname`, `verified`), the `music` used, and the counters `view_count`, `like_count`, `comment_count`, `share_count` and `save_count`.

Two fields save money: `has_captions` and `caption_languages`. When you process hundreds of videos, read the metadata first and only ask for transcripts of the videos that have captions in the language you want.

```python
video = client.tiktok.video(video_id="7707741942771191054")
v = video.data
if v["has_captions"]:
    print(v["author"]["username"], v["view_count"], v["caption_languages"])
```

## Step 4: the comments

Comments tell you how the audience reacted to what was said. The comments endpoint returns up to 50 per page (`limit`, default 20), each with `comment_id`, `text`, `author` (`username`, `nickname`), `like_count`, `reply_count`, `published_at`, `is_pinned` and `liked_by_creator`. `meta.total_comments` is TikTok's own count. Follow `pagination.next_cursor` for the next page, or let the SDK do it:

```bash
curl "https://api.scrapecrate.com/v1/tiktok/videos/7707741942771191054/comments?limit=50" \
  -H "X-API-Key: YOUR_API_KEY"
```

```python
for c in client.tiktok.iterate("video_comments", video_id="7707741942771191054", limit=50):
    print(c["like_count"], c["author"]["username"], c["text"])
```

```javascript
for await (const c of client.tiktok.iterate('videoComments', { video_id: '7707741942771191054', limit: 50 })) {
  console.log(c.like_count, c.author.username, c.text);
}
```

Each page is a call billed 2 credits, so a 1,000-comment export costs 40 credits. `liked_by_creator` is a nice signal: it marks the comments the creator agreed with.

## A complete pipeline: a creator's last videos, transcribed

The users endpoint lists a profile's public videos, newest first, up to 30 per page. Combined with the transcript endpoint you get a searchable archive of everything a creator said recently:

```python
import json

from scrapecrate import NotFoundError, ScrapeCrate

client = ScrapeCrate()  # reads SCRAPECRATE_API_KEY
archive = []
videos = client.tiktok.user_videos(username="examplecreator", limit=30)
for v in videos.data:
    if not v["has_captions"]:
        continue
    try:
        t = client.tiktok.video_transcript(video_id=v["video_id"], format="text")
    except NotFoundError:
        continue
    archive.append({"video_id": v["video_id"], "created_at": v["created_at"],
                    "views": v["view_count"], "text": t.data["text"]})
json.dump(archive, open("archive.json", "w"), indent=2)
```

That is 2 credits for the list plus 2 per transcript: 30 videos cost at most 62 credits. Private accounts answer 404 on the list.

What people build on top of it:

- **Content research.** Search the transcripts of the top creators in a niche for the phrases that open their most viewed videos.
- **Ad and brand monitoring.** Find which videos mention your product and what exactly was said, with timestamps to jump to.
- **Summaries for an LLM.** Send each transcript to a model with the description and hashtags; our guide on [web scraping for LLM and RAG](https://scrapecrate.com/blog/web-scraping-for-llm-rag.md) shows how to index the results.
- **Cross-platform comparison.** The same account reads YouTube transcripts and [YouTube comments](https://scrapecrate.com/blog/how-to-scrape-youtube-comments.md), so you can compare what a creator says on both platforms.

## Using it from an AI agent

Every endpoint is also a tool of the ScrapeCrate MCP server (`tiktok_video_transcript`, `tiktok_video`, `tiktok_video_comments` and so on). Connect it to Claude, Cursor or another MCP client and ask "summarise the last five videos of this creator": the agent resolves the link, lists the videos and reads the transcripts by itself. The setup is in the guide to [using an MCP server for web scraping](https://scrapecrate.com/blog/mcp-server-web-scraping.md).

## Limits worth knowing

- Only public videos and public accounts. Private or deleted content answers 404, unbilled.
- The transcript is TikTok's captions, not a new transcription: automatic captions can miss words in noisy videos or songs.
- Rate limit is 300 requests a minute per key, and the number of requests in flight depends on your plan (2 on the free tier). Run large jobs with a small pool of workers, not hundreds of parallel calls.

## Start transcribing

[Create a free account](https://scrapecrate.com/auth/sign-up) and the first 100 credits of every month are on us, enough for 50 transcripts. Every parameter and field is in the [TikTok API reference](https://scrapecrate.com/docs/api/tiktok.md), and the prices of all the APIs are on the [pricing page](https://scrapecrate.com/pricing.md).

## Frequently asked questions

**Is there an official TikTok API for transcripts?**

TikTok's official APIs are aimed at approved partners and researchers, and none of them simply returns the captions of any public video. The ScrapeCrate TikTok API reads the captions TikTok itself shows on the video page and returns them as JSON, text, SRT or VTT.

**What happens when a video has no captions?**

The transcript endpoint answers 404 and the call is not billed. Check has_captions and caption_languages of the video endpoint first if you want to skip those videos before asking for the transcript.

**Are the transcripts generated by speech recognition?**

The API returns the captions TikTok already has, and source tells you where they come from - asr for TikTok's automatic captions, creator for captions the creator uploaded, translation for a translated track. It does not run its own speech recognition.

**How much does a TikTok transcript cost?**

Every TikTok endpoint costs 2 credits per successful call, so a transcript costs $0.002 at the list price. The 100 free credits of every month cover 50 transcripts. Failed calls are never billed.

**Can I use a vm.tiktok.com short link?**

Yes. Pass any TikTok link to the resolve endpoint and it returns the numeric video_id (or the username for a profile link) that the other endpoints take.

## Try it with free credits every month

One API key for every source in this guide. No card needed, and only successful calls are billed.

[Create a free account](https://scrapecrate.com/auth/sign-up) [Read the docs](https://scrapecrate.com/docs.md)

## Related guides

- [How to scrape YouTube comments, replies included Download every comment and reply of a YouTube video as JSON with one API call per page. Python, JavaScript and curl code, costs and pitfalls.](https://scrapecrate.com/blog/how-to-scrape-youtube-comments.md)
- [Web scraping for LLMs, from web pages to a RAG index Turn web pages into clean Markdown and YouTube videos into timestamped chunks, then embed them for retrieval. A full RAG ingestion pipeline in Python.](https://scrapecrate.com/blog/web-scraping-for-llm-rag.md)
- [An MCP server for web scraping, set up in five minutes Give Claude, Cursor or any MCP client live web data: YouTube, Google Maps, reviews, ads, Reddit and web pages through one MCP server, local or remote.](https://scrapecrate.com/blog/mcp-server-web-scraping.md)

[← All guides](https://scrapecrate.com/blog.md)
