The caption track TikTok already has for a public video, flattened to plain text with timed segments when available.
2 credits/ call
Never more than 3 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/tiktok.video_transcript" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.tiktok.com/@foxfamilyguy/video/7587841579029679392"}'{
"output": {
"found": true,
"data": {
"language": "<string | null>",
"transcript": "<string>",
"segments": [
{
"startSeconds": "<number | null>",
"endSeconds": "<number | null>",
"text": "<string>"
}
],
"id": "<string | null>", …
}
},
"credits": 2
}Input and output
2 fields
https://www.tiktok.com/@foxfamilyguy/vi….5 fields
Good to know
Captions only, as TikTok wrote them.
For speech-to-text use tiktok.video_transcript_full.
Unknown URL? It comes back as not found, not as an error.
The same key and credits work for every API.