YouTube Transcript Scraper API
Pricing
from $1.00 / 1,000 transcripts
YouTube Transcript Scraper API
Get the transcript of any YouTube video: full text and timestamped segments, manual or auto captions, any language. $1 per 1,000 transcripts, pay-per-transcript, failed items never charged. No API key. Callable from any MCP client (Claude, Cursor, ChatGPT).
Pricing
from $1.00 / 1,000 transcripts
Rating
0.0
(0)
Developer
Api Harbor
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
10 days ago
Last modified
Features
Share
Extract the transcript of any YouTube video: the full text plus timestamped segments, from manual or auto-generated captions, in the language you choose. Built for LLM, RAG and AI agent pipelines, and callable from any MCP client (Claude, Cursor, ChatGPT). No YouTube API key, no login, no quota. Export to JSON, CSV or Excel, or call it as a YouTube transcript API.
Price promise: $1.00 per 1,000 transcripts, pay-per-transcript. Failed items and error rows are never charged. No proxy fees, no YouTube API key, no Google Cloud quota.
What does YouTube Transcript Scraper do?
Give it a list of YouTube videos. For each video, it returns one item with:
- Video ID and title
- Caption language and whether the captions are auto-generated
- The full transcript as one plain text string
- Timestamped segments (
start,endin seconds,text), ready for subtitles, chapters or citations
Accepted input: any YouTube URL (watch?v=, youtu.be/, shorts/, live/, embed/) or the 11-character video ID.
What you get back
| Field | Type | Description |
|---|---|---|
videoId | string | YouTube video ID |
title | string | Video title |
language | string | Caption language code, e.g. en |
autoGenerated | boolean | true if the captions are auto-generated by YouTube |
text | string | Full transcript as plain text, ready for an LLM prompt or embeddings |
segments | array | Timestamped segments: start and end in seconds, text |
input | string | Input that failed (error rows only) |
error | string | Error message (error rows only, never charged) |
Why this YouTube transcript API instead of the official one
- No API key, no quota. The YouTube Data API does not give transcripts of other people's videos. This Actor does.
- Pay only for what you get. $1 per 1,000 transcripts. A video without captions is reported but never charged.
- Language choice. Ask for
en,fr,es... Manual captions are preferred over auto-generated ones. - Agent-ready. Clean JSON, one item per video, structured errors, usable as an MCP tool.
Use cases for LLMs, RAG and AI agents
- RAG and knowledge bases: chunk
segmentsand embed them, with timestamps for citations back to the exact moment. - AI agents: let Claude or ChatGPT read a video on demand through MCP and answer questions about it.
- Summarization and Q&A: feed
textto an LLM for summaries, key takeaways or quizzes. - Content repurposing: turn videos into blog posts, newsletters, threads or show notes.
- SEO and research: analyze what competitors and creators say in their videos.
- Accessibility and translation: get a clean, timestamped text to translate or subtitle.
How much does it cost?
| What | Price |
|---|---|
| Run start | $0.00005 per run |
| Transcript | $1.00 per 1,000 transcripts |
Failed item (error row) | $0 |
| Proxies, API key | $0, included |
The Apify free plan includes $5 of monthly credit, enough for about 5,000 transcripts. Set a maximum cost per run in Apify Console and the run stops cleanly at that budget.
How to scrape a YouTube transcript
- Click Try for free.
- Paste YouTube video URLs or IDs, and optionally a language code.
- Click Start, then download your data as JSON, CSV, Excel or HTML.
Need to find videos first? Use YouTube Search Scraper. Want what viewers say? Use YouTube Comments Scraper.
Input
{"videos": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],"language": "en"}
Output example
Real item from a test run:
{"videoId": "jNQXAC9IVRw","title": "Me at the zoo","language": "en","autoGenerated": false,"text": "All right, so here we are, in front of the elephants the cool thing about these guys is that they have really... really really long trunks and that's cool (baaaaaaaaaaahhh!!) and that's pretty much all there is to say","segments": [{ "start": 1.2, "end": 3.36, "text": "All right, so here we are, in front of the elephants" },{ "start": 5.318, "end": 7.974, "text": "the cool thing about these guys is that they have really..." },{ "start": 7.974, "end": 12.616, "text": "really really long trunks" }]}
A video without captions returns {"videoId": "...", "title": "...", "error": "No transcript available for this video"} and is not charged.
Use it from AI agents (MCP)
This Actor is available as a tool through the Apify MCP server, so Claude, Cursor, ChatGPT or any MCP client can call it directly.
- MCP server URL:
https://mcp.apify.com/?actors=api_harbor/youtube-transcript-scraper - Token: Apify Console > Settings > Integrations (your Apify API token)
Claude Desktop (claude_desktop_config.json):
{"mcpServers": {"apify": {"url": "https://mcp.apify.com/?actors=api_harbor/youtube-transcript-scraper","headers": { "Authorization": "Bearer <APIFY_TOKEN>" }}}}
Claude Code:
$claude mcp add --transport http apify "https://mcp.apify.com/?actors=api_harbor/youtube-transcript-scraper" --header "Authorization: Bearer <APIFY_TOKEN>"
Cursor (.cursor/mcp.json) or VS Code (.vscode/mcp.json, use "servers" instead of "mcpServers"):
{"mcpServers": {"apify": {"url": "https://mcp.apify.com/?actors=api_harbor/youtube-transcript-scraper","headers": { "Authorization": "Bearer <APIFY_TOKEN>" }}}}
Example prompts:
- "Get the transcript of https://www.youtube.com/watch?v=jNQXAC9IVRw and summarize it in 5 bullet points."
- "Fetch the French transcripts of these 3 videos and list every tool they mention, with timestamps."
- "Read this conference talk and write a blog post draft quoting the key moments."
Use it from Python (YouTube API alternative)
$pip install apify-client
from apify_client import ApifyClientclient = ApifyClient("<APIFY_TOKEN>")run = client.actor("api_harbor/youtube-transcript-scraper").call(run_input={"videos": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"], "language": "en"})for item in client.dataset(run["defaultDatasetId"]).iterate_items():if item.get("error"):print("failed:", item.get("input"), item["error"]) # not chargedcontinueprint(item)
Fast cache and structured errors
- Cache: identical inputs are served from cache, so repeated requests come back in seconds.
- Structured errors: an item that cannot be fetched is returned as a row with an
errorfield (and the failedinput). These rows are never charged, and your agent or pipeline can branch on them without parsing logs.
FAQ
Do I need to log in or have a YouTube API key? No. No login, no Google account, no API key. Nothing to configure.
What if the video has no captions in my language?
The Actor falls back to the first available track and tells you which language it returned in language.
Does it work with Shorts and live replays? Yes, as long as YouTube has captions for them.
Is it legal to scrape YouTube transcripts? The Actor reads publicly available captions only. You are responsible for complying with copyright, your local laws and YouTube's terms for your use case.
Is there a YouTube transcript API?
Yes: this Actor is one. Call it through the Apify REST API (POST https://api.apify.com/v2/acts/api_harbor~youtube-transcript-scraper/run-sync-get-dataset-items), the Python or JavaScript client, or MCP. The official YouTube Data API does not cover this use case without quota limits.
Can I use it from Python?
Yes. See the Python example above with apify-client.
Can I schedule runs? Yes. Create a schedule in Apify Console (for example every morning on a list of new videos). Each run writes a new dataset you can export or send to a webhook.
Does it work with Make, Zapier or n8n? Yes. Use the official Apify integrations for Make, Zapier and n8n, or call the REST API from any HTTP node.
Can AI agents use it through MCP?
Yes. Add https://mcp.apify.com/?actors=api_harbor/youtube-transcript-scraper to Claude Desktop, Claude Code, Cursor, VS Code or any MCP client with your Apify token. See the MCP section above.
Something is missing or broken? Open an issue in the Issues tab.
Related Actors
- YouTube Search Scraper API: videos by keyword with views, duration and channel.
- YouTube Comments Scraper API: comments and replies with likes and authors.
- Website to Markdown: turn any website into clean Markdown for LLMs and RAG.