YouTube Transcript API

Fetch YouTube transcripts at scale — by URL, video ID, or search keyword.

Pull the transcript of any YouTube video that has captions (manual or auto-generated) — by URL, video ID, or even search keyword. Results come back as structured JSON with timing data and video metadata.

Priced per result at $0.01/video — flat, regardless of video length — which makes it the cheapest option in this suite for long YouTube content.

Languages: All languages YouTube captions support

Call it from code

The API runs on Apify's platform — one HTTP call starts a run and returns the dataset. Get a free API token by signing up (includes $5/month free usage).

# curl — synchronous run, returns transcript items directly
curl -X POST \
  "https://api.apify.com/v2/acts/ethereal_wool~youtube-transcript-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"videoUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"]}'
# Python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("ethereal_wool~youtube-transcript-scraper").call(run_input={
    "videoUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["transcript"])
    for s in item["sentences"]:
        print(s["beginTime"], s["text"])

Pricing

$0.01per video, flat

No subscription, no minimum. Runs that return nothing are never billed.

Frequently asked questions

How is this different from the speech-recognition APIs?

YouTube already carries caption tracks for most videos, so this API fetches those directly — faster and cheaper ($0.01 flat per video) than re-transcribing audio.

What if a video has no captions?

Videos with captions disabled return no transcript. For guaranteed transcription of any video, run it through the Any-URL Transcript API instead.

Can I search instead of passing URLs?

Yes — pass a keyword and it fetches transcripts for the top matching videos.

Is auto-generated caption quality OK?

For English it's generally strong. The API returns whatever track YouTube serves, preferring manual captions when available.

What does it cost at scale?

$0.01 per video, flat. 1,000 videos = $10.

Other platforms