Transcript
The captions of a TikTok video as text, with timed segments and the language, plus the video's description, counts and author.
Try it in the dashboard 10 free credits when you sign up, no card.
GET/v1/tiktok/transcript
Costs 1 credit per request. Only requests that return data are charged.
Parameters
| Name | Type | Description |
|---|---|---|
urlrequired |
string | The video address, https://www.tiktok.com/@<user>/video/<id>. |
Example request
curl "https://pipefetch.com/v1/tiktok/transcript?url=https%3A%2F%2Fwww.tiktok.com%2F%40nasa%2Fvideo%2F7709957996436131086" \
-H "x-api-key: YOUR_API_KEY"const res = await fetch('https://pipefetch.com/v1/tiktok/transcript?url=https%3A%2F%2Fwww.tiktok.com%2F%40nasa%2Fvideo%2F7709957996436131086', {
headers: { 'x-api-key': process.env.PIPEFETCH_API_KEY },
});
const { data, credits } = await res.json();import os, requests
res = requests.get(
"https://pipefetch.com/v1/tiktok/transcript",
params={"url": "https://www.tiktok.com/@nasa/video/7709957996436131086"},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
)
data = res.json()["data"]Example response
A real answer to the request above. Long texts and lists are shortened here, and the people who wrote comments, reviews or posts are replaced by a stand-in.
{
"data": {
"videoId": "7709957996436131086",
"url": "https://www.tiktok.com/@nasa/video/7709957996436131086",
"transcript": "The mission is controlled at the Caltech Jet Propulsion Laboratory. The spacecraft carries instruments for 11 scientific investigations. Fixed to each…",
"language": "en",
"captionType": "auto",
"availableLanguages": [
"en"
],
"hook": "The mission is controlled at the Caltech Jet Propulsion Laboratory.",
"wordCount": 473,
"wordsPerMinute": 160,
"segments": [
{
"start": 1.62,
"end": 5.7,
"text": "The mission is controlled at the Caltech Jet Propulsion Laboratory."
},
{
"start": 5.701,
"end": 9.921,
"text": "The spacecraft carries instruments for 11 scientific investigations."
}
],
"description": "Voyager 1 is a light-day from Earth. Let’s rewind a few billion miles! ✨ From the NASA archives, see what it was like to get our first close-up views …",
"postedAt": "2026-11-19T18:54:56.000Z",
"durationSeconds": 177,
"plays": 139200,
"likes": 5910,
"comments": 334,
"shares": 161,
"saves": 594,
"account": {
"username": "nasa",
"name": "NASA",
"followers": 2300000,
"isVerified": true
}
},
"credits": {
"used": 1,
"remaining": 99
}
}Good to know
- The transcript is TikTok's own caption track: the one the creator added, or TikTok's automatic one (captionType says which). A video without captions answers 404 no_transcript and costs nothing.
- segments are the captions in timed phrases (start and end in seconds).
Errors
Every error has the same shape, and none of them is charged. The full list is in the error reference.
Looking for an overview and use cases? See the TikTok Transcript API page.