YouTube Transcript Scraper API: Subtitles, SRT & AI Markdown avatar

YouTube Transcript Scraper API: Subtitles, SRT & AI Markdown

Pricing

from $1.00 / 1,000 transcripts extracted

Go to Apify Store
YouTube Transcript Scraper API: Subtitles, SRT & AI Markdown

YouTube Transcript Scraper API: Subtitles, SRT & AI Markdown

YouTube transcript scraper for manual or auto-generated captions, timestamped segments, SRT subtitles & RAG Markdown chunks from video URLs, Shorts & IDs — no YouTube API key or browser. Export JSON, CSV or SRT. $0 start, $2/1K transcripts ($0.002 each); failed videos never charged.

Pricing

from $1.00 / 1,000 transcripts extracted

Rating

0.0

(0)

Developer

Max Lee

Max Lee

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

an hour ago

Last modified

Features

Limited permissions

Share

YouTube Transcript Scraper: Bulk Captions, SRT & AI Markdown

Extract clean YouTube transcripts, timestamped segments, SubRip (.srt) subtitles, and RAG-ready Markdown chunks from bulk video URLs or YouTube channel RSS feeds — no browser, proxy setup, or API key required.

  • $0 Start Pay-Per-Event Pricing: $0 Actor start fee + $0.002 per extracted transcript ($2.00 / 1,000 videos). The Apify $5/mo Free tier covers 2,500 transcripts/month. Videos with disabled captions or failed fetches are never charged.
  • Zero-Config First Run: Click Start with default inputs to inspect a full Dataset item in under 5 seconds at 256 MB RAM.
  • 4 Output Formats per Video: Clean fullText, timestamped segments, ready-to-import srt, and RAG-ready markdownChunks with clickable YouTube &t= timestamp links.
  • Bulk Videos + Channel RSS: Accepts watch URLs, youtu.be links, Shorts, embeds, live URLs, 11-character video IDs, and channel URLs / UC... IDs / RSS feeds (feeds/videos.xml?channel_id=...).

Common Use Cases

  • LLM & RAG Knowledge Bases: Chunk long-form talks, tutorials, and interviews into markdownChunks with clickable timestamp citations for Pinecone, Qdrant, or pgvector.
  • Automated Channel Monitoring: Schedule daily or weekly runs on channel RSS feeds to summarize new uploads into Slack, Notion, or n8n workflows.
  • Bulk Subtitle & SEO Repurposing: Download clean .srt captions and full-text transcripts for blog posts, newsletters, clips, and multilingual localization.

Input Example

{
"videoUrls": [
"https://www.youtube.com/watch?v=dQw4w9WgXcQ"
],
"channelUrls": [
"https://www.youtube.com/feeds/videos.xml?channel_id=UCuAXFkgsw1L7xaCfnd5JJOw"
],
"maxVideosPerChannel": 5,
"language": "en",
"preferManualCaptions": true,
"chunkMaxChars": 1500
}
FieldTypeDefaultDescription
videoUrlsstring[]["https://www.youtube.com/watch?v=dQw4w9WgXcQ"]YouTube watch/shorts/live/embed/youtu.be URLs or 11-char video IDs.
channelUrlsstring[][]Channel IDs (UC...), /channel/UC..., /@handle, or feeds/videos.xml?channel_id=... URLs.
maxVideosPerChannelinteger15Latest videos per channel RSS feed (1–15).
languagestring"en"Preferred BCP-47 caption language code (en, es, de, ja, etc.). Falls back cleanly if unavailable.
preferManualCaptionsbooleantruePrefer human-written captions over auto-generated ASR when both exist.
chunkMaxCharsinteger1500Target max character size per chunk in markdownChunks for RAG / LLM pipelines.
concurrencyinteger5Concurrent pure-HTTP video workers (1–15).
requestTimeoutMsinteger15000Per-request HTTP timeout in milliseconds.

Output Example (Dataset Item)

{
"videoId": "dQw4w9WgXcQ",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
"channel": "Rick Astley",
"language": "en",
"isAutoGenerated": false,
"durationSec": 213,
"fullText": "[♪♪♪] ♪ We're no strangers to love ♪ ...",
"segments": [
{ "startSec": 1.36, "durationSec": 1.68, "endSec": 3.04, "text": "[♪♪♪]" },
{ "startSec": 18.64, "durationSec": 3.24, "endSec": 21.88, "text": "♪ We're no strangers to love ♪" }
],
"srt": "1\n00:00:01,360 --> 00:00:03,040\n[♪♪♪]\n\n2\n00:00:18,640 --> 00:00:21,880\n♪ We're no strangers to love ♪\n",
"markdownChunks": [
{
"index": 0,
"startSec": 1.36,
"endSec": 211.0,
"timestampUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ&t=1s",
"wordCount": 360,
"markdown": "### [00:01](https://www.youtube.com/watch?v=dQw4w9WgXcQ&t=1s)\n\n[♪♪♪] ♪ We're no strangers to love ♪ ..."
}
],
"wordCount": 360
}

A compact run rollup (counts, skipped videos, duration, billing events) is also saved to the default Key-Value Store under OUTPUT.


How It Works

  1. Resolves video IDs from direct URLs, bare IDs, and YouTube channel Atom RSS feeds (feeds/videos.xml).
  2. Fetches caption track metadata via YouTube Innertube player API with automatic watch-page HTML fallback.
  3. Selects the best matching track (preferred language + manual captions over ASR, with automatic fallback).
  4. Downloads structured json3 captions with automatic timedtext XML fallback, normalizes entities/whitespace, and emits fullText, segments, srt, and markdownChunks.