GET /v1/tiktok/item_transcript
TikTok transcript API: get a video's captions as text by video URL
Returns the caption track TikTok already has for a video, as text, with its language. Send url as the full video URL and, if you want one, language as a two-letter code such as en. It does not transcribe audio, so a video with no caption track answers 502 and is not billed.
- Price
- $0.0005 per call
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl 'https://api.virev.ai/v1/tiktok/item_transcript?url=https%3A%2F%2Fwww.tiktok.com%2F%40khaby.lame%2Fvideo%2F7683944847840922911' \
-H "Authorization: Bearer $VIREV_API_KEY"import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/tiktok/item_transcript",
params={
"url": "https://www.tiktok.com/@khaby.lame/video/7683944847840922911",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
url required | query | string | TikTok video URL, https://www.tiktok.com/@handle/video/<id>. A bare video id is refused, because the read needs the author. |
language | query | string | Two-letter caption language such as en. Omitted, the video’s own caption language is returned. |
cached | query | auto | cache_only | live | auto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts TikTok (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. |
get_raw | query | boolean | Not available on this operation: the upstream document is an HTML page, and true answers 400. The default false returns the normalized type. |
Example response
The example response of the API reference, with lists cut to their first 3 items and long text shortened.
{
"data": {
"video_id": "7683944847840922911",
"language": "en",
"source_url": "https://v16-webapp.tiktokcdn-eu.com/82d66c139fa9f2fe803d93003e58d9ab/6acf7cbc/video/tos/alisg/tos-alisg-v-37c799-sg/eeaec5dbfa504b79bd8ce9b1d02129e9/?a=1988&bti=ODszNWYuMDE6&&bt=3049&ft=_sO_C~0xE12NvjR7yF7nRf6SYlcI6IxVvYjpiX&mime_type=video…",
"text": "is here look\nis the tile of competition\nit's here look it's the souza santos tile\nconstructions"
},
"meta": {
"source": "db",
"fetched_at": "2026-10-12T12:59:10.318343+00:00",
"cost": "$0.0005",
"balance": "$3.3627",
"request_id": "req_ef3fbbe432778194164201f84464b060"
}
}How it works
The video's native caption track as text. This reads captions TikTok already has; it does not transcribe. A video with no native caption answers 502 and is not billed. Returns Transcript under data; the upstream document is an HTML page, so get_raw is not available.
A field TikTok does not carry is null, a list it does not carry is [], and TikTok-only facts sit under extra. Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
404 | cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the TikTok account or item does not exist (not_found). You are not charged. |
429 | Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged. |
502 | The upstream fetch failed. You are not charged. |
503 | Billing could not be confirmed, so no upstream data was returned. |
504 | The upstream request timed out. You are not charged. |