YouTube Transcript Scraper — Text, Metadata & Chapters
Pricing
$5.00 / 1,000 video transcript results
YouTube Transcript Scraper — Text, Metadata & Chapters
Fetch YouTube transcripts, timestamped segments, video metadata and chapters as clean JSON for RAG, LLMs, spreadsheets and AI agents. Built for fast, reliable bulk runs at scale.
Pricing
$5.00 / 1,000 video transcript results
Rating
5.0
(1)
Developer
T2 Solutions
Maintained by CommunityActor stats
1
Bookmarked
2
Total users
1
Monthly active users
19 hours ago
Last modified
Categories
Features
Share
Fetch YouTube transcripts (plain text plus timestamped segments), rich video metadata, and optional chapter markers as clean JSON — one row per video, ready for RAG pipelines, LLM prompts, spreadsheets, databases, or AI agents.
Get YouTube transcripts and subtitles without the official YouTube API: this YouTube transcript
scraper extracts captions, closed captions and auto-generated subtitles as plain text, plus
timestamped cues, chapters and video metadata (title, author, channel, views, thumbnail and
description). Just pass a watch URL, a youtu.be link, a /shorts/, /embed/ or /live/
link, or a bare video ID — no proxy setup and no YouTube account required. Results come back in
seconds.
Why use this actor
A no-code YouTube transcript scraper and API: turn any video URL or ID into structured JSON in one run. Here's what sets it apart:
- 🎯 The transcript YouTube actually serves — reads the creator's manual captions when available and falls back to auto-generated captions otherwise.
- 🧩 Rich metadata in the same row — title, author, channel ID, duration, view count, keywords, description, and thumbnail URL alongside the transcript, timestamped segments, and chapters. The Console Overview tab highlights the key columns; switch to the built-in All fields tab for full metadata.
- 🧾 Transparent run summary — every run writes a
RUN_SUMMARYrecord (complete,partial,timed_out, orzero_match) so you always know which videos succeeded and why any video was skipped or had no captions. - 🗂️ Optional chapters — enable
includeChaptersto extract creator-defined chapter titles and timestamps. - 🧮 Batch input — process up to 1,000 videos in a single run with shared language, pacing, concurrency and deadline settings.
- ⚡ Parallel workers —
concurrency(1–8, default 4) processes independent videos at the same time. Each worker keeps its own pacing gap, so the batch finishes about 4x faster while the aggregate request rate stays capped and each connection keeps a safe per-IP rate. - 🛡️ Fail-safe deadline - stops cleanly before the platform timeout, keeping every
transcript already delivered. A single stalled video is capped at 20 seconds and reported
as
video_timeout, so it cannot consume the rest of the run. - 🤖 Agent-ready — deterministic JSON output,
LIMITED_PERMISSIONSsecurity posture, and ready-to-use MCP / REST examples below.
Input
To get a YouTube transcript, pass one or more video URLs or IDs. Everything else has sensible defaults:
| Field | Type | Default | Description |
|---|---|---|---|
videos | array of strings (required) | — | Watch URLs, youtu.be links, /shorts/, /embed/, /live/ links, or bare 11-character video IDs (1–1,000 unique videos). Duplicates are collapsed in input order; an entry that is not a YouTube link is skipped without a network call and returned as its own free invalid_input row in the output, and the run still succeeds. |
preferredLanguage | string (dropdown) | "en" | Choose from 125 common YouTube/ISO languages and regional variants (each option shows its code, e.g. English (en), Vietnamese (vi)), or pick Other to enter a custom code below. Manual captions are preferred over auto-generated (asr) captions for the same language; regional (en-US) and base-language (en) matches are tried before falling back. |
preferredLanguageCustom | string | unset | Used only when preferredLanguage is other (e.g. en-US, zh-Hans, pt-PT). |
fallbackToAnyLanguage | boolean | true | If the preferred language is unavailable on a video, return the first available manual track (or first available track) instead of skipping the video as no_requested_language. |
includeTimestamps | boolean | true | Include the timestamped segments array ([{start, duration, end, text}]) alongside transcriptText. |
includeChapters | boolean | false | Also fetch creator-defined video chapters ([{title, startSeconds, timeText}]). Off by default. |
maxVideos | integer | 100 | Maximum unique videos processed in one run (1–1,000). Extra videos beyond this cap are counted in videosSkippedOverCap. |
concurrency | integer | 4 | Videos processed in parallel (1-8, clamped at run time). The effective value is capped by the available network capacity so the per-IP request rate never rises. An out-of-range or invalid value is clamped/defaulted and recorded in the run notes. 1 reproduces the sequential behavior. |
pacingSeconds | number | 1.5 | Delay between videos for each worker in seconds (0.5–30). Aggregate launch rate is concurrency / pacingSeconds; each connection keeps the same per-IP rate. |
maxDurationMinutes | number | 25 | Fail-safe wall-clock limit for the whole run (1–59 minutes). When reached, delivered rows are kept and remaining videos are marked not_run. |
Batch sizing tip: budget roughly maxVideos × (1.6 + pacingSeconds) / concurrency seconds,
plus headroom for a few slow videos (each one is capped at 20 seconds). At the defaults
(25 minutes, 1.5 s pacing, 4 workers), 1,000 videos fit comfortably; a single stalled video
occupies one worker, not the batch.
Example input:
{"videos": ["https://www.youtube.com/watch?v=aircAruvnKk","https://www.youtube.com/watch?v=dtp6b76pMak"],"preferredLanguage": "en","fallbackToAnyLanguage": true,"includeTimestamps": true,"includeChapters": false,"maxVideos": 100,"concurrency": 4,"pacingSeconds": 1.5,"maxDurationMinutes": 25}
Supported video URL formats
All of these resolve to aircAruvnKk:
aircAruvnKkhttps://www.youtube.com/watch?v=aircAruvnKk(extra query parameters are ignored)https://youtu.be/aircAruvnKkhttps://www.youtube.com/shorts/aircAruvnKkhttps://www.youtube.com/embed/aircAruvnKkhttps://www.youtube.com/live/aircAruvnKk
Playlist URLs, channel URLs, and non-YouTube links are rejected before any request is made, but
they do not fail the run: each one comes back as an invalid_input status row.
Output
The dataset contains one row per submitted entry: a delivered transcript row, or a status row
for a video that could not be delivered, or an invalid_input row for an entry that is not a
YouTube link. Run status and per-video counters are stored
in separate key-value records so summary data never pollutes your dataset items:
OUTPUT—{"rows": N, "chargedRows": C, "noTranscriptRows": M, "state": "…", "partialReason": …}: quick run status handle.RUN_SUMMARY— full run report (counts, skip reasons,chaptersUnavailable, and per-videojobResults).
Transcript row (Dataset)
Each delivered dataset item carries the full 20-field video and transcript payload plus
status: "ok". In the Apify Console, the Overview view displays the 9 primary columns
(status, url, title, author, language, isAutoGenerated, transcriptText, segments,
chapters); switch to the built-in All fields view to inspect every column.
| Column | Nullable | Description |
|---|---|---|
videoId | no | Canonical 11-character YouTube video ID. |
url | no | Canonical https://www.youtube.com/watch?v=… URL. |
title | yes | Video title. |
author | yes | Channel display name. |
channelId | yes | YouTube channel ID (UC…). |
lengthSeconds | yes | Video duration in seconds. |
viewCount | yes | View count at fetch time. |
isLiveContent | no | Whether YouTube marks the video as live content. |
keywords | no | Array of video keywords ([] when none). |
shortDescription | no | Video description text ("" when empty). |
thumbnailUrl | no | Highest-resolution thumbnail URL available. |
language | no | Language code of the returned caption track (e.g. en, vi). |
languageName | no | Display name of the caption track, e.g. English, English (auto-generated). |
isAutoGenerated | no | true when the track is auto-generated (asr), false for manual captions. |
availableLanguages | no | All caption language codes available on the video. |
segmentCount | no | Number of caption segments parsed. |
transcriptText | no | Full plain-text transcript (all segment texts joined with single spaces). |
segments | no | Timestamped cues [{start, duration, end, text}] in seconds ([] when includeTimestamps: false). |
chapters | no | Creator chapters [{title, startSeconds, timeText}] ([] unless includeChapters: true and chapters exist on the video). |
fetchedAt | no | ISO-8601 UTC timestamp when the transcript was fetched. |
status | no | ok for a delivered transcript. |
Status row (Dataset)
A video that could not be delivered still gets a row, so no requested video is a silent hole.
The row always carries videoId, url and status. When the player response proved the video
playable (no_captions, no_requested_language), the public video metadata is kept too —
title, author, channelId, lengthSeconds, viewCount, isLiveContent, keywords,
shortDescription, thumbnailUrl, availableLanguages, fetchedAt. Transport and gate
failures may only have the three base fields. Join on videoId with RUN_SUMMARY.jobResults:
{"videoId": "dtp6b76pMak", "url": "https://www.youtube.com/watch?v=dtp6b76pMak","status": "no_captions", "title": "Example video", "author": "Example channel","channelId": "UC0000000000000000000000", "lengthSeconds": 612,"viewCount": 123456, "isLiveContent": false, "keywords": ["example"],"shortDescription": "…", "thumbnailUrl": "https://i.ytimg.com/vi/…/maxresdefault.jpg","availableLanguages": [], "fetchedAt": "2026-11-21T00:00:00Z"}
status | Meaning | Charged |
|---|---|---|
no_captions | The video has no caption tracks. | yes |
unavailable | Private, deleted, or unplayable. | yes |
no_requested_language | No requested language and fallbackToAnyLanguage is false. | yes |
age_restricted | Age-gated and no signed-in, age-confirmed session was available. | yes |
login_required | YouTube sign-in/bot gate that the configured session could not unlock. | no |
egress_unavailable | Temporary network/route exhaustion. | no |
rate_limited / network_error | YouTube throttling or a transport failure. | no |
deadline / video_timeout | The run or the per-video window ran out. | no |
not_run | Never started because the run stopped (deadline, a sign-in/bot gate, or a spend cap). | no |
invalid_input | The submitted entry was not a YouTube link (the rejected value is echoed in url). | no |
unknown | An unexpected per-video failure; the reason is in the run log. | no |
Only the four content outcomes are charged: the video itself (or the requested language)
produced no transcript, so the row is a result. Infrastructure outcomes stay free. push_failed
is the one failure with no status row: the dataset write itself failed, so no second write is
attempted. A status-row write that fails is counted in RUN_SUMMARY.noTranscriptRowsPushFailed
and is never charged.
RUN_SUMMARY record (Key-Value Store)
| Field | Meaning |
|---|---|
state | complete (all requested videos delivered) · partial (some videos failed/skipped or chapter fetch had an error) · timed_out (hit maxDurationMinutes) · zero_match (videos were valid but none had captions) |
partialReason | null when complete/zero_match, or the primary reason for a partial/timed-out run (videos_missing, input_invalid, video_cap, deadline, video_timeout, rate_limited, network_error, login_required, age_restricted, unavailable, no_requested_language, no_captions, chapters_unavailable, push_failed), or a route/session-availability reason when the run could not open a network route. |
rowsRequested | Unique valid videos selected (up to maxVideos). |
rowsFetched | Transcript rows delivered to the dataset. |
rowsPushFailed | Fetched rows that failed to write to the dataset (never billed). |
chargedRows | Rows charged: transcript rows plus billable content-outcome status rows. |
noTranscriptRows | Status rows written for videos without a transcript, including rejected invalid_input entries. |
noTranscriptRowsPushFailed | Status rows that could not be written (never billed). |
jobsTotal / jobsOk / jobsFailed | Total processed videos vs delivered (jobsOk) vs non-delivered (jobsFailed). |
videosNoCaptions | Videos that have no caption tracks on YouTube. |
videosUnavailable | Private, deleted, or unplayable videos. |
videosNoRequestedLanguage | Videos without the requested language when fallbackToAnyLanguage is false. |
videosLoginRequired | Videos gated by a YouTube sign-in/bot check that could not be unlocked with the configured session. |
videosAgeRestricted | Age-restricted videos that no configured signed-in session could unlock. YouTube serves them only to a signed-in viewer whose account has confirmed its age; without such a session they are written as an age_restricted status row (no transcript row) and billed as a content outcome, instead of being reported as a generic failure. With a session, the actor reads them through the signed-in client — a delivered row if the video has captions, no_captions if it has none. |
videosEgressUnavailable | Videos that could not be fetched due to temporary network/route exhaustion. |
videosNotRun | Videos not started because maxDurationMinutes was reached or the run's spend cap stopped launches. |
videosSkippedDuplicate | Duplicate video IDs collapsed from the input. |
videosSkippedInvalid | Invalid URLs or malformed IDs rejected before any network request and returned as invalid_input status rows. |
videosSkippedOverCap | Unique videos beyond maxVideos. |
chaptersUnavailable | [{videoId, reason}] when includeChapters: true but chapter markers could not be retrieved; null otherwise. |
jobResults | Per-video outcome list: [{videoId, status, rows}], where rows is the number of transcript rows delivered for that video (1 for a delivered transcript, 0 otherwise). |
runStartedAt / runFinishedAt | ISO-8601 UTC timestamps for the run. |
Example RUN_SUMMARY (when requested videos have no captions):
{"recordType": "RUN_SUMMARY","state": "zero_match","partialReason": null,"rowsRequested": 2,"rowsFetched": 0,"rowsPushFailed": 0,"chargedRows": 2,"noTranscriptRows": 2,"noTranscriptRowsPushFailed": 0,"jobsTotal": 2,"jobsOk": 0,"jobsFailed": 2,"videosNoCaptions": 2,"videosUnavailable": 0,"videosNoRequestedLanguage": 0,"videosNotRun": 0,"chaptersUnavailable": null,"jobResults": [{"videoId": "aircAruvnKk", "status": "no_captions", "rows": 0},{"videoId": "dtp6b76pMak", "status": "no_captions", "rows": 0}]}
Use with AI agents (MCP)
-
Apify MCP server — add
https://mcp.apify.comto your MCP client (Claude Desktop, Cursor, custom agents) with your Apify API token to call this actor as a native tool. -
REST API — start a run and read the clean dataset items or summary records directly:
curl -X POST "https://api.apify.com/v2/acts/t2solutions~youtube-transcript-fetch/runs?token=YOUR_TOKEN" \-H "Content-Type: application/json" \-d '{"videos":["https://www.youtube.com/watch?v=aircAruvnKk"],"includeChapters":true}'# Transcript rows (dataset):# GET /v2/acts/t2solutions~youtube-transcript-fetch/runs/{runId}/dataset/items?token=YOUR_TOKEN# Quick status {"rows": N, "chargedRows": C, "noTranscriptRows": M, "state": "...", "partialReason": ...}:# GET /v2/acts/t2solutions~youtube-transcript-fetch/runs/{runId}/key-value-store/records/OUTPUT# Full per-video breakdown:# GET /v2/acts/t2solutions~youtube-transcript-fetch/runs/{runId}/key-value-store/records/RUN_SUMMARY -
Safe permissions — runs under Apify
LIMITED_PERMISSIONS, accessing only its own run storage. -
No silent failures — one dataset row per requested video (transcript or status), plus
OUTPUT.stateandRUN_SUMMARY.jobResultsfor agents to distinguishcomplete,zero_match,timed_out, andpartialruns without guessing.
Pricing
Pay-per-event pricing: you pay for processed videos — a delivered transcript, or a content outcome the video itself caused (no captions, unavailable, requested language missing, age gate).
resultevent: $0.005 per charged row ($5.00 per 1,000 charged rows)apify-actor-startevent (optional): $0.00005 per run- Charged: delivered transcripts, plus status rows with
no_captions,unavailable,no_requested_language, orage_restricted. - Free: infrastructure outcomes (
egress_unavailable,login_required,rate_limited,network_error,deadline,video_timeout,unknown,not_run), skipped duplicates, rejectedinvalid_inputrows, failed dataset pushes, and theRUN_SUMMARY/OUTPUTrecords.
| Charged rows | Estimated cost |
|---|---|
| 10 | ~$0.05 |
| 100 | ~$0.50 |
| 1,000 | ~$5.00 |
A charged row is one processed video: a delivered transcript or a content outcome
the video itself caused. A run that only hits infrastructure failures writes no
charged rows and fires zero result events.
FAQ
How do I get a YouTube transcript without the YouTube API? Just pass a video URL or ID and run the actor. It reads the caption track YouTube itself serves — manual captions when available, auto-generated subtitles otherwise — and returns the transcript as plain text plus timestamped segments, chapters and video metadata. No API key, proxy or YouTube account setup is required.
What happens when a video has no captions?
A status row is emitted with status: "no_captions" plus the video metadata already returned by
YouTube (title, author, channelId, lengthSeconds, viewCount, keywords,
shortDescription, thumbnailUrl, …). It is a charged content outcome (one result event), and
the video is counted in videosNoCaptions and recorded in RUN_SUMMARY.jobResults.
What happens with an age-restricted video?
YouTube only serves age-restricted videos to a signed-in viewer whose account has confirmed its
age. The actor tries these through a signed-in session when one is available — best-effort, not
guaranteed. When it works you get a normal transcript row (or no_captions if the video is
playable but has no caption track). When the session can't unlock it, the actor emits a status
row with "status": "age_restricted", counts it in videosAgeRestricted, and charges one
content-outcome result.
How does language selection work?
The actor looks for an exact match for preferredLanguage (preferring manual captions over
auto-generated tracks), then regional variants (e.g. en-US, en-GB), then the base language.
If fallbackToAnyLanguage is true (default), it falls back to the first available track when
the preferred language is absent.
Can I get chapters for any video?
Chapters are returned when includeChapters: true and the creator added chapter timestamps
to the video. Videos without creator chapters return chapters: [].
Are segment timestamps word-level?
segments are caption cues ({start, duration, end, text} in seconds) as served by YouTube's
caption track, while transcriptText joins all cues into a single space-separated string ready
for embeddings or LLM context windows.
Report issues & request features
Found a bug, a video type we don't handle yet, or a feature you'd love? Open an issue at Actor > Issues, email t2solutions.tech@gmail.com, or message @t2techsolutions on X. I actively monitor all three and respond — your reports directly shape what gets built next.
Legal note
This actor reads publicly available YouTube caption tracks and video metadata. You are responsible for complying with YouTube's Terms of Service and respecting the rights of content owners.
Related actors
- Google Ads Transparency Scraper — scrape ad creatives, landing pages and run dates from the Google Ads Transparency Center across ~46 markets.
- TikTok Creative Center Ads Fetch — top TikTok ads by market and period.
- Google Flights Price Fetcher — Google Flights fares and route search.
- Google Hotels Scraper — Google Hotels search results.
- YouTube Audio Downloader — extract YouTube audio (Shorts, Music) as M4A/AAC or WebM/Opus, no login or API key.
- YouTube Video Downloader — download YouTube videos as MP4 up to 4K, with per-video quality and timeframe cuts.