YouTube Transcript Scraper & API: captions and subtitles
YouTube Transcript Scraper is an Apify Actor that returns the transcript of any YouTube video as plain text and timestamped segments, in any caption language, with the title, channel, views and duration. It accepts video, Shorts, channel and playlist URLs, costs $1.50 per 1,000 transcripts and charges nothing for videos without captions.
Run it on Apify $1.50 per 1,000 transcripts ($1.20 on Gold and above)
Quick facts
- One row per video: transcript text, timestamped segments, language, auto-generated flag, all caption languages, title, channel, views, duration, description and tags.
- Using youtube-transcript-api? The open-source youtube-transcript-cloud package (github.com/retracn/youtube-transcript-cloud) keeps its interface and runs on this Actor, so it works from AWS, GCP and other servers without RequestBlocked errors.
- Videos, Shorts, channels and playlists (latest 15 videos).
- Manual captions first, then auto-generated; best-effort translation.
- Price: $1.50 per 1,000 transcripts; videos without captions are free.
- Channels on autopilot: with Only new videos on, a scheduled run transcribes each new upload from a channel or playlist once. Guide: https://retracn.github.io/automationnation-actors/guides/auto-transcribe-youtube-channel/
- Node.js on Vercel, Lambda or Render? The open-source youtube-transcript-cloud package (github.com/retracn/youtube-transcript-cloud-js) keeps the youtube-transcript npm API and errors and runs on this Actor, so transcripts work in production.
Example input
{
"videos": [
"https://www.youtube.com/watch?v=UF8uR6Z6KLc"
],
"language": "en"
}
Run it from code
REST API (cURL)
curl -X POST "https://api.apify.com/v2/acts/automationnation~youtube-transcript-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"videos": ["https://www.youtube.com/watch?v=UF8uR6Z6KLc"], "language": "en"}'
Python
# pip install apify-client
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("automationnation/youtube-transcript-scraper").call(run_input={
"videos": [
"https://www.youtube.com/watch?v=UF8uR6Z6KLc"
],
"language": "en"
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item.get("title"), item.get("channel"), item.get("wordCount"), item.get("transcriptLanguage"))JavaScript / Node.js
// npm install apify-client
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('automationnation/youtube-transcript-scraper').call({
"videos": [
"https://www.youtube.com/watch?v=UF8uR6Z6KLc"
],
"language": "en"
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) console.log(item.title, item.channel, item.wordCount, item.transcriptLanguage);
Use it with AI agents (MCP)
Connect AI assistants such as Claude, ChatGPT or Cursor through Apify's MCP server. Hosted URL:
https://mcp.apify.com?tools=automationnation/youtube-transcript-scraper
Or run it locally in Claude Desktop / Cursor:
{
"mcpServers": {
"youtube-transcript-scraper": {
"command": "npx",
"args": [
"-y",
"@apify/actors-mcp-server",
"--tools",
"automationnation/youtube-transcript-scraper"
],
"env": {
"APIFY_TOKEN": "YOUR_APIFY_TOKEN"
}
}
}
}
FAQ
Is there an official YouTube transcript API?
The YouTube Data API only downloads captions for videos you own. YouTube Transcript Scraper returns public captions of any video.
Does it transcribe audio?
No, it returns captions YouTube already has (manual or auto-generated); videos without captions come back as no_transcript and aren't charged.
Can it transcribe every new video from a channel automatically?
Yes. Add the channel URL, turn on Only new videos and schedule it daily: each run transcribes only new uploads, and videos without captions yet are tried again next time.
Step-by-step guide: How to get YouTube transcripts in 2026 (any video, channel or playlist)
Step-by-step guide: youtube-transcript-api RequestBlocked or IpBlocked on a server? Get YouTube transcripts without proxies
Step-by-step guide: yt-dlp "Sign in to confirm you're not a bot" on a server? Get YouTube transcripts without cookies
Step-by-step guide: youtube-transcript (npm) not working in production? Fix it on Vercel, AWS Lambda and Render
Step-by-step guide: Open WebUI tools for YouTube transcripts (that work on servers), Google Flights, Hotels, News and Search
Step-by-step guide: Automatically transcribe every new video from a YouTube channel (for RAG or notes)