YouTube Transcript REST API and Apify actor
YouTube transcripts for your LLM, without IP blocks.
Send video links, get clean text with timestamps. Up to 25 videos per API call, or a whole channel on Apify.
2 USD per 1,000 transcripts. 5 USD free credits, no card. Credit packs.
curl -G "https://api.vakitek.co.uk/v1/youtube/transcript" \ -H "X-API-Key: $VAKITEK_API_KEY" \ --data-urlencode "video=L_Guz73e6fw" \ --data-urlencode "format=json"
import os, requests r = requests.get("https://api.vakitek.co.uk/v1/youtube/transcript", headers={"X-API-Key": os.environ["VAKITEK_API_KEY"]}, params={"video": "L_Guz73e6fw", "format": "json"}, timeout=120) for row in r.json()["data"]: print(row["title"], row["wordCount"])
{
"videoId": "L_Guz73e6fw",
"title": "Sam Altman: OpenAI CEO on GPT-4, ChatGPT, and the Future of AI | Lex Fridman Podcast #367",
"channelName": "Lex Fridman",
"language": "en",
"isAutoGenerated": false,
"transcript": [
{"start": 0.0, "dur": 1.8, "text": "- We have been a misunderstood"},
{"start": 1.8, "dur": 2.28, "text": "and badly mocked org for a long time."},
{"start": 4.08, "dur": 4.5, "text": "Like, when we started, we, like, announced the org"},
...
],
"wordCount": 24224,
...
}
What you get
Text and timestamps
transcript segments {start, dur, text}, plus the joined text and a wordCount. Or set format to srt, vtt or txt.
25 videos per call
Send ids or links in videos. On Apify, give a channel @handle or a playlist and set maxVideos, up to 5,000.
No proxy to manage
Direct request first, residential IPs when YouTube blocks it, up to 3 per video. Included in the price.
Clear failure rows
No captions returns NO_CAPTIONS, a missing language LANGUAGE_NOT_AVAILABLE. isAutoGenerated says which track you got.
Not included: speech-to-text for videos without captions, translation, private, members-only or age-restricted videos. Limits and error codes.
Pay per transcript returned
Videos without captions and error rows are free. Proxy traffic included. No monthly plan.
One wallet for all 10 YouTube APIs. Credits never expire. Credit packs from 10 USD. Runs on Apify are billed by Apify.
Against the most used transcript scraper on Apify
| Criterion | Vakitek | pintostudio |
|---|---|---|
| Price per 1,000 transcripts | 2 USD | $10.00 |
| Videos per call or run | Up to 25 per API call, a channel per Apify run | One video per run |
| Formats | JSON, SRT, VTT, TXT | JSON segments |
| Success rate, last 30 days | 97.3% of 72 results | 82.0% of runs |
Source: its Apify Store page and the public Apify API, 23 Oct 2026. Our rate counts results, theirs counts runs.
Questions
youtube-transcript-api is blocked on my cloud server. Will this work?
Yes. That block is YouTube refusing cloud IPs. We switch to residential IPs when it happens, at no extra cost. You replace the library call with one HTTP request.
Can I get every transcript of a channel?
Yes. On Apify, put the @handle in urls and set maxVideos. With the API, list the videos with YouTube Channel Scraper and send the ids here, 25 per call.
I use pintostudio's scraper on Apify. What do I change?
The actor id. We accept videoUrl and targetLanguage, and segments are {start, dur, text} like theirs.
Can I use the transcripts with GPT or a RAG index?
That is the main use. The words belong to the creators and YouTube's Terms restrict automated access, so check your use, especially model training, with your own counsel.
Do I need Apify?
No. The REST API is separate: sign up with your email, copy your key, call it. Apify is the no-code option, billed by Apify on your Apify account at the same unit price plus its 0.00005 USD start event per run.
Try it on the videos you care about.
API reference: endpoints, limits and error codes
Base URL https://api.vakitek.co.uk. Send your key in the X-API-Key header. Every response is JSON with data (one row per item), meta (request id, count, latency, paging cursor) and billing (what was charged).
POST /v1/youtube/transcript
Up to 25 videos per call. One row per video, in the order you sent them.
videos | Video ids or links | required, 1 to 25 |
format | json, srt, vtt or txt | default json |
target_language | Language code, e.g. fr | optional |
prefer_manual | Creator captions before auto ones | default true |
list_languages | Add availableLanguages | default false |
GET /v1/youtube/transcript
One video. The same options as query parameters.
video | Video id or link | required |
Channels and playlists are not on the API. Use the Apify actor (urls + maxVideos), or list a channel with GET /v1/youtube/channel-videos and send the ids here, 25 per call.
Limits
- Rate limit
- 120 requests per minute per API key (default). Over that you get 429. Need more? Write to support.
- Batch
- Transcript and Channel email take up to 25 videos or channels per
POST. More returns 422. - Page size
- Search up to 100 rows, Shorts and channel videos up to 200 rows per call, then follow
meta.next_cursor. - Concurrency
- No per-key cap. The service runs a limited number of scrapes at the same time and queues the rest, so very parallel clients wait longer. Start with 4 calls in flight.
- Latency
- 1 to 9 seconds per call in our checks on 23 Oct 2026 (one call per endpoint). Set your client timeout to 120 seconds.
- Wallet
- Checked before each call. When it is empty you get 402 and nothing runs. Runs on Apify are billed by Apify, not from this wallet.
- Data
- We keep request metadata (route, status, counts, timing) for billing and support. We do not keep a copy of the rows we return.
HTTP status codes
| Status | Body | Meaning | What to do |
|---|---|---|---|
| 200 | {data, meta, billing} | Done. Some rows may carry an error code (free). | Retry only rows whose code says retry later. |
| 401 | UNAUTHORIZED | Missing or wrong X-API-Key. | Fix the key. Do not retry. |
| 402 | INSUFFICIENT_CREDITS | Your wallet is empty. | Buy a pack, then retry. |
| 422 | INVALID_INPUT | A parameter is wrong, or more than 25 items in a batch. | Fix the request. Do not retry. |
| 429 | RATE_LIMITED | Over 120 requests per minute. | Wait, then retry with backoff: 1 s, 2 s, 4 s. |
| 502 | UPSTREAM_ERROR | YouTube or our service failed for the whole call. Not billed. | Retry once after a few seconds. |
| Row code | What happened | Retry | You pay |
|---|---|---|---|
transcript | A transcript came back. The only billed row. | n/a | 2 USD / 1,000 |
| NO_CAPTIONS | The video has no captions at all | no retry | free |
| LANGUAGE_NOT_AVAILABLE | No caption track in the language you asked for | no retry | free |
| NOT_FOUND | The video, channel or playlist was removed or never existed | no retry | free |
| AGE_RESTRICTED | Needs a signed-in account | no retry | free |
| PRIVATE | The video is private | no retry | free |
| MEMBERS_ONLY | Members-only video, nobody can fetch it without a membership, not charged | no retry | free |
| NO_RESULTS | The channel or playlist has no videos | no retry | free |
| INVALID_URL | The line isn't a YouTube video, channel or playlist | no retry | free |
| INVALID_INPUT | An option value is invalid | no retry | free |
| PARSE_ERROR | YouTube changed its page and we could not read it. We get alerted and fix it | no retry | free |
| BLOCKED | YouTube refused us for now, even after trying every proxy tier | retry later | free |
| UPSTREAM_ERROR | Something went wrong on YouTube's side or ours | retry later | free |
| UPSTREAM_UNAVAILABLE | Our API was unreachable | retry later | free |
| TIME_BUDGET_EXCEEDED | The time budget ran out before this video, channel or playlist finished | retry later | free |
