YouTube Transcript Scraper avatar

YouTube Transcript Scraper

Pricing

from $2.00 / 1,000 results

Go to Apify Store
YouTube Transcript Scraper

YouTube Transcript Scraper

Ultra-fast, lightweight YouTube transcript & subtitle scraper with AI/LLM-ready export, SRT, WebVTT, clean text filtering, and chapter segmentation.

Pricing

from $2.00 / 1,000 results

Rating

0.0

(0)

Developer

REXREUS D.O

REXREUS D.O

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 months ago

Last modified

Categories

Features

Limited permissions

Share

YouTube Transcript Scraper

Fast direct HTTP YouTube transcript and subtitle scraper with AI/LLM export

Ultra-fast, lightweight YouTube transcript & subtitle scraper with AI/LLM-ready export, SRT, WebVTT, clean text filtering, and chapter segmentation.

Direct HTTP Innertube & TimedText API · Zero Browser Overhead · 128 MB RAM Target

Quick Start Apify Node.js

Why this Actor?

FeatureWhat you get
Zero Browser OverheadExecutes in 200–400ms per video using 128 MB – 256 MB RAM. 10x–50x cheaper than browser scrapers.
Full Subtitle SuiteGenerates plain text, noise-cleaned prose, JSON timestamped segments, SRT, and WebVTT strings.
Dual Storage ArchitectureSubtitles are saved to default Dataset AND uploaded as .srt and .vtt files in Key-Value Store with instant download links.
AI/LLM-Ready MarkdownStructures transcripts into chapter-divided Markdown blocks with estimated token counts for Claude & ChatGPT.
Acoustic Noise FilterAutomatically strips audio noise markers ([Music], [Applause], laughter) for clean LLM ingestion.
Multi-Source IngestionIngest direct Video URLs, Shorts, Playlist URLs, Channel URLs, or YouTube Search Queries in bulk.
Smart Language FallbackTries preferred language, then any manual subtitle track, then auto-generated (ASR) captions.
In-Transcript Keyword SearchFilter videos or extract specific dialogue excerpts matching target keywords and phrases.

Quick start

  1. Open YouTube Transcript Scraper on Apify Console and click Start.
  2. Paste YouTube video URLs, a playlist link, channel URL, or search query.
  3. Select your preferred subtitle languages and export options.
  4. Download the dataset as JSON, CSV, or Excel, or copy direct .srt/.vtt file download links.
{
"startUrls": [
{ "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }
],
"preferredLanguages": ["en"],
"cleanNoise": true,
"formatMarkdown": true,
"saveSubtitlesToKvs": true
}

How it works

[Input URLs / Playlists / Search]
│
▼
[Batch URL Normalizer]
│
▼
[Innertube Android Player API] ──► [Select Best Caption Track]
│ │
▼ ▼
[Extract Metadata] [TimedText JSON3 Fetcher]
│ │
▼ ▼
[Video Title & Chapters] [Segments & Noise Cleaner]
│ │
└───────────────┬────────────────┘
▼
[Formatters: Raw, Clean, SRT, VTT, Markdown]
│
▼
[Apify Dataset & Key-Value Store]

Input

FieldTypeRequiredDefaultDescription
startUrlsArrayNo[]YouTube video, playlist, or channel URLs.
videoUrlsArrayNo["jNQXAC9IVRw"]Direct list of video URLs or 11-char video IDs.
searchQueriesArrayNo[]Search terms to query on YouTube and extract transcripts from results.
preferredLanguagesArrayNo["en"]Priority order of language codes (e.g. ["en", "es", "id"]).
fallbackToAnyLanguageBooleanNotrueFallback to any available language if preferred ones are missing.
includeAutoGeneratedBooleanNotrueInclude auto-generated (ASR) captions when manual captions are absent.
cleanNoiseBooleanNotrueStrip noise tags like [Music] and [Applause].
formatMarkdownBooleanNotrueGenerate chapter-divided Markdown and estimated token counts.
saveSubtitlesToKvsBooleanNotrueSave .srt and .vtt files directly to Key-Value Store.
searchKeywordsArrayNo[]Filter or slice segments matching target dialogue keywords.
maxResultsIntegerNo50Maximum number of videos to process (1 to 10,000).
proxyConfigurationObjectNo{ "useApifyProxy": true }Apify Proxy settings. Recommended for large playlist scraping.

Output

Every scraped video produces a comprehensive dataset record:

{
"videoId": "jNQXAC9IVRw",
"videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"title": "Me at the zoo",
"channelTitle": "jawed",
"channelId": "UC4QobU6STFB0P71PMvOGN5A",
"duration": 19,
"uploadDate": null,
"viewCount": 440159594,
"language": "English",
"languageCode": "en",
"isAutoGenerated": false,
"transcript": "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, that's cool. And that's pretty much all there is to say.",
"cleanTranscript": "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, that's cool. And that's pretty much all there is to say.",
"srtUrl": "https://api.apify.com/v2/key-value-stores/.../records/jNQXAC9IVRw_en.srt",
"vttUrl": "https://api.apify.com/v2/key-value-stores/.../records/jNQXAC9IVRw_en.vtt",
"tokenCountEstimate": 68,
"segments": [
{ "start": 1.2, "duration": 2.16, "text": "All right, so here we are, in front of the elephants" },
{ "start": 5.318, "duration": 2.656, "text": "the cool thing about these guys is that they have really..." }
],
"chapters": null,
"status": "SUCCESS"
}
FieldTypeDescription
videoIdStringCanonical 11-character YouTube video ID.
videoUrlStringFull canonical watch URL.
titleStringVideo title extracted from player metadata.
channelTitleStringAuthor or channel display name.
durationIntegerTotal length of the video in seconds.
languageStringName of the extracted subtitle track.
languageCodeStringISO language code of the extracted track.
isAutoGeneratedBooleanTrue if speech recognition (ASR) caption, false if manual creator caption.
transcriptStringContinuous raw transcript text.
cleanTranscriptStringProse transcript with acoustic noise markers stripped.
srtStringFull SubRip (.srt) subtitle string.
vttStringFull WebVTT (.vtt) subtitle string.
srtUrlStringDirect Key-Value Store download URL for the .srt file.
vttUrlStringDirect Key-Value Store download URL for the .vtt file.
markdownStringStructured Markdown formatted by chapters with <transcript> boundaries.
tokenCountEstimateIntegerEstimated token count for LLM context window planning.
segmentsArrayTimestamped cues with start, duration, and text.
statusStringExecution result: "SUCCESS", "NO_TRANSCRIPT", or "ERROR".

Cost, limits, proxy

  • Memory Target: 128 MB – 256 MB RAM.
  • Concurrency: 5 concurrent worker requests.
  • Throughput: ~250–400ms per video. 1,000 videos take less than 45 seconds total wall time.
  • Compute Unit (CU) Consumption: ~0.003 to 0.005 CU per 1,000 videos (<$0.0015 compute cost).
  • Proxy: Direct HTTP works for moderate volumes. For thousands of videos or playlist scraping, enable Apify Proxy (useApifyProxy: true).

Recipes

Recipe 1: Single Video with SRT/VTT Subtitle Download

Extract English subtitles and get direct .srt download links:

{
"startUrls": [{ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }],
"preferredLanguages": ["en"],
"saveSubtitlesToKvs": true
}

Recipe 2: AI/RAG Ingestion from Entire YouTube Playlist

Scrape up to 100 videos from a course or webinar playlist with clean noise filtering and token counts:

{
"startUrls": [{ "url": "https://www.youtube.com/playlist?list=PLrAXtmErZgOdP_8GztsuKi9nrraNbKKp4" }],
"maxResults": 100,
"cleanNoise": true,
"formatMarkdown": true
}

Search YouTube for a topic and find which videos mention specific keywords in their dialogue:

{
"searchQueries": ["artificial intelligence tutorial"],
"searchKeywords": ["neural network", "transformer", "deep learning"],
"maxResults": 25
}

Troubleshooting

SymptomCauseFix
status: "NO_TRANSCRIPT"The video does not have subtitles enabled or no captions exist in the requested language.Set fallbackToAnyLanguage: true and includeAutoGenerated: true to capture ASR subtitles.
status: "ERROR" / UnavailableThe video is private, deleted, or region-restricted.Verify the video is publicly playable in an incognito window.
Rate Limit (HTTP 429)Target IP sent too many consecutive requests without pause.Enable Apify Proxy (useApifyProxy: true) with residential groups.

FAQ

Q: How does this Actor scrape transcripts so fast without browsers?
A: Instead of launching heavy Chromium instances to click the YouTube UI, this Actor interacts directly with YouTube's internal Innertube Player API and native TimedText endpoints via HTTP. It uses only 128–256 MB of RAM and takes ~300ms per video.

Q: What is the difference between manual and auto-generated captions?
A: Manual captions are uploaded directly by the video creator with accurate grammar and punctuation. Auto-generated captions are transcribed by YouTube's speech recognition (ASR). This Actor prioritizes manual tracks first, automatically falling back to ASR if needed.

Q: Can I download .srt and .vtt subtitle files directly?
A: Yes! When saveSubtitlesToKvs is enabled (default), the Actor stores formatted .srt and .vtt files in the Apify Key-Value Store and outputs public download URLs (srtUrl, vttUrl).

Q: Can this Actor process YouTube Shorts and Playlists?
A: Yes. It natively normalizes standard watch URLs, Shorts (/shorts/...), embed links, playlist URLs (list=...), channel handles (/@handle), and search queries.

Q: Can I copy or republish this Actor?
A: No. This Actor is proprietary software. You may run it on Apify under your account. You may not rebrand, republish, or claim authorship. See ./LICENSE.

Limitations

  • Only public YouTube videos and captions are accessible. Private, unlisted restricted, or member-only videos requiring account login cannot be scraped.
  • YouTube may rate-limit high-volume scraping from single datacenter IPs; use Apify Residential Proxy for large-scale operations.

Run it

Open YouTube Transcript Scraper on Apify Console and click Start.

License

Proprietary. All rights reserved. Copyright (c) 2026 REXREUS.

You may run this Actor on Apify. You may not copy, rebrand, republish, or claim this Actor as your own. See ./LICENSE.