YouTube Transcript Scraper for AI Agents
Pricing
from $5.00 / 1,000 transcript extracteds
YouTube Transcript Scraper for AI Agents
Extract YouTube transcripts with metadata (title, channel, date, views, language) as LLM-ready text, timestamped segments and RAG chunks. Videos, Shorts, channels, playlists and search. Pay only for successful transcripts.
Pricing
from $5.00 / 1,000 transcript extracteds
Rating
0.0
(0)
Developer
Delfos Athletics
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
15 days ago
Last modified
Categories
Features
Share
Extract clean YouTube transcripts with rich metadata in a format that LLMs, AI agents and RAG pipelines can use straight away: full plain text, timestamped segments, ready-made chunks with token estimates, plus title, channel, publish date, views, likes, duration, category, tags and language info.
Works with videos, Shorts, youtu.be links, channels, playlists and YouTube search. Instagram Reels and TikTok support is coming next. The output format will stay the same, so your agents won't need changes.
Price: $5 per 1,000 transcripts. You only pay for videos that return a transcript. Private, deleted or caption-less videos are free.
What can this YouTube Transcript Scraper do?
- 📝 Get the full transcript of any public YouTube video as one clean string. Line breaks, HTML entities and caption markup are removed.
- ⏱️ Timestamped segments (
start,end,text) let you cite the exact second or deep-link to it. - 🧩 RAG-ready chunks. Choose a window, e.g. 60 s, and get chunks with start/end times and a token estimate each.
- 🌍 Pick your language. Set a preference order (e.g.
es,en), request YouTube's machine translation (best effort), or fall back to the original spoken language. - 🧑💻 Human captions first. Creator-uploaded captions are used when they exist; auto-generated captions are the fallback.
- 📊 Metadata for context: title, description, channel name/ID/URL, publish date, duration, views, likes, category, keywords, thumbnail, live/Shorts flags.
- 📺 Bulk input: paste a channel (
@handle) or playlist and get its latest N videos, or run search queries. - 🔁 Reliable: retries automatically on a new IP, escalates to residential proxies only when YouTube blocks a request, and has a second extraction engine as a fallback.
- 🤖 Built for agents: one predictable JSON object per video, with a
statusfield so your agent always knows what happened.
What data can I extract from YouTube videos?
| Field | Example |
|---|---|
text | Full transcript as plain text |
segments | [{ "start": 1.2, "end": 3.36, "text": "All right, so here we are" }] |
chunks | [{ "timestamp": "01:00", "start": 60.1, "end": 119.8, "text": "…", "estimatedTokens": 212 }] |
timestampedText | [00:00] Intro… \n[00:30] … |
title, description, keywords, category | Video info |
channelName, channelId, channelUrl | Creator |
publishedAt, durationSeconds, viewCount, likeCount | Stats |
transcriptLanguageCode, isAutoGenerated, isTranslated, availableLanguages | Caption info |
wordCount, characterCount, estimatedTokens | Size of the transcript, to budget your context window |
status, error | ok, no_transcript, unavailable, blocked, unsupported |
How to scrape YouTube transcripts
- Click Try for free.
- Paste one or more YouTube URLs (videos, Shorts, channels or playlists) or add search queries.
- Optionally set preferred languages, a translation target and chunk size.
- Click Start and download the results as JSON, CSV, Excel or via the API.
How much does it cost to scrape YouTube transcripts?
This Actor uses pay-per-event pricing: $0.005 per video with a transcript, i.e. $5 per 1,000 transcripts. Platform usage and proxies are included, and failed or caption-less videos cost nothing. On the free Apify plan ($5 of monthly credits) you can extract roughly 1,000 transcripts a month at no cost.
Set Max cost per run in the run options to cap your spend. The Actor stops cleanly when it reaches the limit.
Input example
{"urls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw","https://www.youtube.com/@mkbhd","https://www.youtube.com/playlist?list=PLxxxxxxxx"],"searchQueries": ["how transformers work"],"maxVideosPerSource": 10,"languages": ["en", "es"],"translateTo": "","chunkSeconds": 60,"includeSegments": true}
Output example
{"status": "ok","platform": "youtube","videoId": "jNQXAC9IVRw","url": "https://www.youtube.com/watch?v=jNQXAC9IVRw","title": "Me at the zoo","channelName": "jawed","channelId": "UC4QobU6STFB0P71PMvOGN5A","publishedAt": "2005-04-23T20:31:52-07:00","durationSeconds": 19,"viewCount": 380000000,"transcriptLanguageCode": "en","isAutoGenerated": false,"text": "All right, so here we are, in front of the elephants...","wordCount": 39,"estimatedTokens": 49,"segments": [{ "start": 1.2, "end": 3.36, "text": "All right, so here we are," }]}
Using it from AI agents (MCP, LangChain, n8n, Make, Zapier)
- MCP: add this Actor to the Apify MCP server and your agent (Claude, Cursor, ChatGPT…) can call it as a tool: "get the transcript of this video and summarise it".
- API: run it synchronously and get the items back in one call:
POST https://api.apify.com/v2/acts/perceptual_arboretum~video-transcripts-for-ai/run-sync-get-dataset-items?token=YOUR_TOKEN - LangChain / LlamaIndex: use the Apify dataset loader and map
text(or eachchunks[]) to documents, with the metadata fields as document metadata. - No-code: the official Apify integrations for n8n, Make and Zapier work out of the box.
Tips
- Leave Fall back to any available language on, so videos in other languages still return their original transcript.
- For RAG, set
chunkSecondsto 45–90 and indexchunks[]. Each chunk keeps its timestamp for citations. - Turn off
includeSegmentsif you only need the text. Items get much smaller.
FAQ
Does it work for videos without captions? No. The Actor reads YouTube's own captions (human or auto-generated). Videos with captions disabled return status: "no_transcript" and are not charged. Audio transcription (speech-to-text) for those videos is on the roadmap.
Does translation always work? It uses YouTube's own machine translation, which YouTube often rate-limits. When it is refused you still get the original transcript (and are charged normally), with an explanation in the warnings field.
Is scraping YouTube transcripts legal? The Actor only reads publicly available data and no personal data beyond what creators publish. Respect copyright when reusing transcripts and check the rules that apply to your use case. If unsure, ask a lawyer.
Something broke or you need a feature? Open an issue in the Issues tab. Instagram and TikTok are coming next, and requests help us prioritise.