YouTube Transcript Scraper — Subtitles, Chapters & RAG (MCP) avatar

YouTube Transcript Scraper — Subtitles, Chapters & RAG (MCP)

Pricing

from $1.90 / 1,000 transcript extracteds

Go to Apify Store
YouTube Transcript Scraper — Subtitles, Chapters & RAG (MCP)

YouTube Transcript Scraper — Subtitles, Chapters & RAG (MCP)

Fast, browser-free YouTube transcript and subtitles scraper API. Extract clean paragraphs, timestamps, chapters, rich metadata, and RAG chunks from videos, Shorts, playlists, channels, or search queries. MCP & AI-agent ready — $0 charged on failed videos.

Pricing

from $1.90 / 1,000 transcript extracteds

Rating

0.0

(0)

Developer

DataPipe Studio

DataPipe Studio

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

YouTube Transcript Scraper — Subtitles, Chapters & RAG API (MCP)

YouTube Transcript Scraper by DataPipe Studio is a fast, browser-free Apify Actor and MCP tool that extracts clean YouTube transcripts, subtitles, timestamps, official chapters, rich metadata, and RAG-ready token chunks from single videos, YouTube Shorts, playlists, entire channels, or YouTube search queries.

Built on a lightweight pure-HTTP engine (256 MB RAM, zero headless browser), it runs in ~2 seconds per video, includes all platform and proxy costs in transparent pay-per-event pricing (from $1.90 / 1,000 transcripts), and charges $0 on unavailable or captionless videos.


What does YouTube Transcript Scraper extract?

For every YouTube video, the scraper returns clean, structured JSON ready for LLMs, vector databases, spreadsheets, or automation workflows:

  • Clean Transcript Text (transcriptText): Automatically deduplicates YouTube auto-caption roll-ups, strips optional [Music] / [Applause] noise, and stitches readable paragraphs.
  • Timestamped Segments (segments): Exact {start, duration, text} array for every caption line (manual or auto-generated, with multi-language selection and automatic native-track fallback).
  • Rich Video Metadata (optional add-on): title, channelName, channelId, viewCount, likeCount, durationSeconds, publishDate, category, keywords, thumbnailUrl, description, and parsed official chapters.
  • Chapter-Aligned Markdown & RAG Chunks (optional add-on):
    • chapterMarkdown: Official YouTube chapters rendered as clean Markdown with clickable https://youtu.be/{id}?t={sec} deep links (automatically falls back to 3-minute sections when a video has no chapters).
    • ragChunks: Overlapping token-sized chunks (chunkIndex, startSec, endSec, timestamp, deepLinkUrl, chapterTitle, videoTitle, channelName, approxTokens, text) ready to embed directly into Pinecone, Qdrant, Weaviate, Supabase pgvector, LangChain, or LlamaIndex.

Why choose this YouTube Transcript Scraper?

CapabilityDataPipe Studio YouTube Transcript ScraperBasic Transcript Scrapers
Supported inputsVideos, Shorts, Playlists, Channels (@handle & UC...), Search QueriesSingle video URLs only
Output cleanlinessDeduplicated auto-captions, stitched paragraphs, optional [Music] removalRaw overlapping XML/JSON fragments
AI & RAG readinessBuilt-in chapter Markdown + overlapping RAG token chunks with deep linksRequires custom chunking & cleaning code
Multi-client resiliencePure-HTTP cascade (ANDROID → IOS → WEB) + automatic IP retry on empty responsesSingle endpoint breaks silently
Fair billing$0 charged on private, unavailable, or captionless videosFrequently charges on empty/failed items
MCP & Agentic PaymentsEnabled (Limited permissions) — works out of the box with https://mcp.apify.comOften requires full permissions or manual setup

How much does it cost to scrape YouTube transcripts?

All platform compute and residential proxy costs are included in the pay-per-event price. You only pay for videos that return a valid transcript:

EventFree PlanStarter (Bronze)Scale (Silver)Business (Gold)Included
Actor Start (apify-actor-start)$0.002$0.002$0.002$0.0015One-time run initialization
Transcript Extracted (transcript-extracted)$4.00 / 1k$3.00 / 1k$2.40 / 1k$1.90 / 1kClean transcript text, language info, timestamped segments
Rich Video Metadata (metadata-enriched, optional)+$3.00 / 1k+$2.00 / 1k+$1.80 / 1k+$1.50 / 1kStats, channel info, publish date, keywords, chapters, description
Chapter Markdown & RAG Chunks (rag-chunks-generated, optional)+$2.50 / 1k+$1.50 / 1k+$1.30 / 1k+$1.10 / 1kClickable chapter Markdown + overlapping RAG chunks
  • Free Apify tier: Includes $5 monthly credit (~1,250 test transcripts, capped at 15 videos per run).
  • Paid Apify plans: Up to 5,000 videos per run with automatic Starter/Scale/Business volume discounts.

How to scrape YouTube transcripts in bulk

1. Videos, Shorts, Playlists & Channels (JSON Input)

{
"urls": [
"https://www.youtube.com/watch?v=aircAruvnKk",
"https://youtu.be/kqtD5dpn9C8",
"https://www.youtube.com/shorts/aircAruvnKk",
"https://www.youtube.com/@3blue1brown",
"https://www.youtube.com/playlist?list=PLZHQObOWTQDNU6R1_67000Dx_ZCJB-3pi"
],
"maxVideos": 25,
"languages": ["en"],
"includeTimestamps": true,
"includeMetadata": true,
"includeRagChunks": true,
"ragChunkTokens": 400,
"ragChunkOverlapTokens": 50
}

2. YouTube Search to RAG Chunks

{
"searchQueries": ["python asyncio tutorial", "retrieval augmented generation"],
"maxVideos": 10,
"languages": ["en"],
"includeTimestamps": false,
"includeMetadata": true,
"includeRagChunks": true
}

How to use with Python, Node.js, cURL, n8n & MCP (Claude / Cursor / ChatGPT)

Apify MCP Server (Claude Desktop, Cursor, AI Agents)

Because this Actor uses Limited permissions and Pay-Per-Event pricing, it is automatically compatible with https://mcp.apify.com and autonomous agentic payments:

  1. Connect your AI client (Claude, Cursor, ChatGPT, or LangGraph) to https://mcp.apify.com.
  2. Call datapipestudio/youtube-transcript-rag with urls or searchQueries. For minimal LLM context bloat, set includeTimestamps: false and includeRagChunks: true.

Python API Example (apify-client)

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_API_TOKEN")
run = client.actor("datapipestudio/youtube-transcript-rag").call(run_input={
"urls": ["https://www.youtube.com/watch?v=aircAruvnKk"],
"languages": ["en"],
"includeMetadata": True,
"includeRagChunks": True,
"ragChunkTokens": 400,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item["title"], "->", item["ragChunkCount"], "RAG chunks")

n8n / Make / Webhook Automation

Add the official Apify node in n8n or Make, select datapipestudio/youtube-transcript-rag, pass any YouTube channel URL on a weekly schedule, and send ragChunks directly to your vector store or summarization node.


Example Output Item

{
"videoId": "aircAruvnKk",
"url": "https://www.youtube.com/watch?v=aircAruvnKk",
"status": "ok",
"source": "url",
"language": "en",
"sourceLanguage": "en",
"isAutoGenerated": false,
"isTranslated": false,
"availableLanguages": ["ar", "de", "en", "es", "fr", "ja"],
"segmentCount": 312,
"wordCount": 3357,
"title": "But what is a neural network? | Deep learning chapter 1",
"channelName": "3Blue1Brown",
"channelId": "UCYO_jab_esuFRV4b17AJtAw",
"viewCount": 19500000,
"durationSeconds": 1153,
"publishDate": "2017-10-05",
"chapters": [
{ "startSec": 0, "timestamp": "00:00", "title": "Introduction example" },
{ "startSec": 127, "timestamp": "02:07", "title": "Series preview" }
],
"transcriptText": "This is a three. It's sloppily written and rendered at an extremely low resolution...",
"chapterMarkdown": "# But what is a neural network?...\n\n## [00:00](https://youtu.be/aircAruvnKk?t=0) Introduction example\n...",
"ragChunkCount": 14,
"ragChunks": [
{
"chunkIndex": 0,
"startSec": 0,
"endSec": 148,
"durationSec": 148,
"timestamp": "00:00",
"deepLinkUrl": "https://youtu.be/aircAruvnKk?t=0",
"chapterTitle": "Introduction example",
"videoTitle": "But what is a neural network? | Deep learning chapter 1",
"channelName": "3Blue1Brown",
"approxTokens": 392,
"text": "..."
}
]
}

Frequently Asked Questions (FAQ)

Can I scrape transcripts from an entire YouTube channel or playlist?

Yes. Pass any channel URL (https://www.youtube.com/@handle or /channel/UC...) or playlist URL (?list=PL...) in urls and set maxVideos (up to 5,000 on paid plans). The Actor automatically resolves video IDs, deduplicates them, and extracts transcripts in parallel.

Does it work on YouTube Shorts and live stream replays?

Yes. Pass any youtube.com/shorts/..., youtube.com/live/..., youtu.be/..., youtube.com/embed/..., or bare 11-character video ID.

How does it handle multiple languages and auto-generated captions?

Provide an ordered languages list (for example ["en", "es", "ar"]). The Actor prioritizes human-written manual captions first, then auto-generated (asr) captions, then YouTube auto-translation (allowAutoTranslation: true), and automatically falls back to the video's native caption track if YouTube blocks translation on a signed URL.

Can I export YouTube transcripts as RAG chunks for LangChain, Pinecone, or Supabase?

Yes. Enable includeRagChunks: true and set ragChunkTokens (default 400) and ragChunkOverlapTokens (default 50). Every chunk includes deepLinkUrl, startSec, endSec, chapterTitle, videoTitle, and approxTokens.

Do I get charged for private, deleted, or captionless videos?

No. Unavailable or captionless videos are logged cleanly in the dataset (status: "unavailable" or "no_captions") and trigger $0 in per-video charges.

Does this Actor use a headless browser?

No. It runs on a lightweight pure-HTTP Python engine using only ~65 MB of RAM (256 MB container), making it faster and far more reliable than browser-based YouTube scrapers.