YouTube Transcript API
One call per video returns the transcript as timed segments, ready for search, summaries or an LLM. Works from servers where youtube-transcript-api gets IP-blocked.
Video
Endpoint
curl "https://api.toolzerhub.com/v2/youtube/transcript?video_reference=jNQXAC9IVRw" \
-H "x-api-key: $TOOLZERHUB_API_KEY"{
"data": {
"id": "jNQXAC9IVRw",
"selected": {
"title": "English",
"languageCode": "en"
},
"transcript": [
{
"startMs": "1200",
"endMs": "3360",
"startTime": "0:01",
"text": "All right, so here we are, in front of the\nelephants"
},
{
"startMs": "5318",
"endMs": "7974",
"startTime": "0:05",
"text": "the cool thing about these guys is that they\nhave really..."
},
{
"startMs": "7974",
"endMs": "12616",
"startTime": "0:07",
"text": "really really long trunks"
},
{
"startMs": "12616",
"endMs": "14367",
"startTime": "0:12",
"text": "and that's cool"
},
{
"startMs": "14421",
"endMs": "15733",
"startTime": "0:14",
"text": "(baaaaaaaaaaahhh!!)"
},
{
"startMs": "16881",
"endMs": "18881",
"startTime": "0:16",
"text": "and that's pretty much all there is to\nsay"
}
]
}
}- 1
- 1
- $1.67
- $0.90
Inputs
What you send
GET /v2/youtube/transcript with your key in the x-api-key header.
| Parameter | Example | Notes |
|---|---|---|
| video_referencerequired | jNQXAC9IVRw | Video ID or any YouTube URL. |
| language_code | en | Pick a caption language from languageMenu. |
Limits
Good to know
- Videos with no captions, manual or automatic, have no transcript.
How it works
From key to JSON
- 01x-api-key••••••••••Get a key
- 02GET/v2/youtube/transcriptSend a request
- 03{ data, status }200Get JSON
Pricing
1,000 transcripts cost $1.67
1,000 calls at 1 credit each is 1,000 credits: $1.67 on the $5 3K pack, down to $0.90 on the largest plan. The free 100 credits a month cover about 100 transcripts, and failed calls are not charged.
FAQ
Questions
- Why not the youtube-transcript-api Python package?
- Can I get other languages?
- What does 1,000 transcripts cost?
Related
Often used with it
Same key, same credits. Every YouTube endpoint is on the YouTube API page.
Try the YouTube Transcript API free
Every new workspace gets 100 credits a month. Buy credits only when you need more.
Get free API key(opens in new tab)