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.
· 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 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).
curl "https://api.scrapecrate.com/v1/tiktok/resolve?url=https://vm.tiktok.com/ZMexample/" \
-H "X-API-Key: YOUR_API_KEY"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
curl "https://api.scrapecrate.com/v1/tiktok/videos/7707741942771191054/transcript?lang=en" \
-H "X-API-Key: YOUR_API_KEY"The JSON answer has:
video_idandlanguage, the caption track you got, for exampleen-USsource:asrfor TikTok's automatic captions,creatorfor captions the creator uploaded,translationfor a translated tracktext: the whole transcript as one stringsegments: a list of{text, start, duration}, times in secondsavailable_languages: every caption track of the video, each with itslanguageandsource
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:
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")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.
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:
curl "https://api.scrapecrate.com/v1/tiktok/videos/7707741942771191054/comments?limit=50" \
-H "X-API-Key: YOUR_API_KEY"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:
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 shows how to index the results.
Cross-platform comparison. The same account reads YouTube transcripts and YouTube comments, 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.
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 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, and the prices of all the APIs are on the pricing page.
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.