YouTube transcripts for AI, search and research
Get the captions of YouTube videos and Shorts, the newest videos of whole channels, and playlists: one plain text ready for an LLM, plus timed segments with start and end times. No YouTube API key, no login, no proxies to set up.
What you get
Text and timing
One plain text for LLMs and search, plus timed segments in seconds.
Whole channels and playlists
Paste a channel or playlist and read its newest videos, up to 10,000 each.
Any caption language
Ask for es, de, pt-BR or any language the video has; see every language it offers.
Human or automatic
isAutoGenerated tells captions people wrote from YouTube's automatic ones.
Missing is free
A video without captions is skipped and listed with the reason, at no charge.
Spreadsheet ready
Every row has every column, so CSV and Excel exports line up.
Who it is for
AI and LLM apps
Feed transcripts to ChatGPT, Claude or your RAG pipeline; summarize videos and podcasts.
Content and SEO
See what a channel or niche talks about, find quotes, turn videos into articles.
Research and datasets
Collect the spoken text of a channel or playlist at scale.
Subtitles and accessibility
Get the timed captions of a video.
How to use it
- Open the Actor on Apify and sign in (a free Apify account works).
- Paste YouTube links, one per line: videos, Shorts, channels, @handles or playlists.
- Optional: set videos per channel or playlist, and a language.
- Click Start, then download JSON, CSV or Excel, or send the rows to n8n, Make or Zapier.
Call it from code
curl -X POST "https://api.apify.com/v2/acts/ttechx~youtube-transcript-scraper/run-sync-get-dataset-items" \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"links": ["https://www.youtube.com/@TED"], "maxVideos": 200, "language": "es"}'from apify_client import ApifyClient # pip install apify-client
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("ttechx/youtube-transcript-scraper").call(run_input={
"links": [
"https://www.youtube.com/@TED"
],
"maxVideos": 200,
"language": "es"
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)Get your token in Apify Console > Settings > API & Integrations. In n8n, Make or Zapier, use the Apify app and pick this Actor.
Input
| Field | Type | What it does | |
|---|---|---|---|
links | array of strings | Required | Videos, Shorts, channels or playlists, one per line: video links or ids, youtube.com/shorts/ links, channel links or @handles (a channel's /shorts or /streams link reads its Shorts or live streams), playlist links. |
maxVideos | integer, 1-10,000 | Videos to read from each channel (newest first) or playlist. Default 50. Video links are always read. | |
language | string | A caption language such as en, es, de or pt-BR. Empty: each video's own default captions. |
{
"links": [
"https://www.youtube.com/@TED"
],
"maxVideos": 200,
"language": "es"
}Output
One row per video:
| Field | What it is |
|---|---|
text | The whole transcript as one text |
segments | Timed captions: {start, end, text}, times in seconds |
language, languageName | The captions' language (en, English) |
isAutoGenerated | true for YouTube's automatic captions |
availableLanguages | Every caption language the video has |
videoId, url, title | The video |
channelId, channelTitle | Its channel |
lengthSeconds | The video's length |
source | The link the row came from |
{
"videoId": "arj7oStGLkU",
"url": "https://www.youtube.com/watch?v=arj7oStGLkU",
"title": "Inside the Mind of a Master Procrastinator | Tim Urban | TED",
"channelId": "UCAuUUnT6oDeKwE6v1NGQxug",
"channelTitle": "TED",
"lengthSeconds": 844,
"language": "en",
"languageName": "English",
"isAutoGenerated": false,
"availableLanguages": [
"ar",
"bg",
"en",
"es",
"..."
],
"text": "So in college, I was a government major, which means ...",
"segments": [
{
"start": 12.645,
"end": 14.015,
"text": "So in college,"
},
"..."
],
"source": "https://www.youtube.com/watch?v=arj7oStGLkU"
}Use it with AI agents
Through Apify the Actor is one tool, ttechx/youtube-transcript-scraper. Pick your assistant:
Run this, then type /mcp in Claude Code and sign in to Apify.
claude mcp add --transport http ttech-transcript "https://mcp.apify.com/?tools=ttechx/youtube-transcript-scraper"No browser sign-in? Add --header "Authorization: Bearer YOUR_APIFY_TOKEN".
- Open Settings > Connectors in claude.ai or Claude Desktop.
- Choose Add custom connector, name it, and paste this URL:
https://mcp.apify.com/?tools=ttechx/youtube-transcript-scraper- Connect and sign in with your Apify account.
Add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project), then sign in when Cursor asks.
{
"mcpServers": {
"ttech-transcript": {
"url": "https://mcp.apify.com/?tools=ttechx/youtube-transcript-scraper"
}
}
}Add to ~/.codex/config.toml and set APIFY_TOKEN in your environment.
[mcp_servers.ttech_transcript]
url = "https://mcp.apify.com/?tools=ttechx/youtube-transcript-scraper"
bearer_token_env_var = "APIFY_TOKEN"- In ChatGPT on the web, open Plugins, select + and Add custom MCP server (available on plans that allow custom MCP servers).
- Paste this URL and choose OAuth:
https://mcp.apify.com/?tools=ttechx/youtube-transcript-scraper- Sign in with your Apify account and review the tools.
Add to .vscode/mcp.json, then start the server and sign in.
{
"servers": {
"ttech-transcript": {
"type": "http",
"url": "https://mcp.apify.com/?tools=ttechx/youtube-transcript-scraper"
}
}
}Brief for any LLM
Endpoints, inputs, outputs, examples and MCP setup in one Markdown text. Paste it into ChatGPT, Claude or Gemini and ask for the code you need. Also at /youtube-transcript-scraper.md.
Good to know
- About 2 seconds per video, several videos at a time.
- Only captions YouTube really has: no machine translation, and no speech-to-text for videos without captions (planned).
- Videos without captions, private or deleted videos are skipped and listed in the run's ERRORS record, free.
FAQ
Why is a video missing from my results?
It has no captions, or none in the language you asked for, or it is private or deleted. Each one is listed with its reason, free.
Can it translate captions?
No. You get the languages a video really has, listed in availableLanguages.
Is there a REST endpoint instead of an Actor?
Yes: the YouTube Data API has GET /get_transcript for one video at a time.