One public video or post URL in, its transcript out, for YouTube, TikTok, Facebook, Instagram, X / Twitter, LinkedIn; billed only when a transcript is found.
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/video.transcript" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-H "Prefer: wait=30" \
-d '{"url":"https://www.youtube.com/watch?v=kX92bT4aQ7c"}'{
"output": {
"found": true,
"data": {
"transcript": "<any>",
"language": "<string | null>",
"url": "<string | null>"
}
},
"credits": 2
}Input and output
1 field
https://www.youtube.com/watch?v=kX92bT4….3 fields
Good to know
Long-running. A call can outlast the default 10-second wait. You then get 202 Accepted with a requestId: poll GET /v1/requests/{id}, or send Prefer: wait=N to hold the connection for up to 90 seconds.
Calls the matching API for the link's site. youtube.video_transcript, tiktok.video_transcript, facebook.post_transcript, instagram.media_transcript, twitter.tweet_transcript (X / Twitter), linkedin.post_transcript and returns that API's output unchanged.
Instagram reels go to instagram.media_transcript (flat price). The per-minute instagram.reel_transcript.
The platform API decides what counts as "no transcript". Misses are not billed.
Terms of use. Transcripts are third-party content: callers are responsible for copyright and fair use, and for each platform’s terms.
The same key and credits work for every API.