YouTube Transcript Scraper — Text, Metadata & Chapters avatar

YouTube Transcript Scraper — Text, Metadata & Chapters

Pricing

$5.00 / 1,000 video transcript results

Go to Apify Store
YouTube Transcript Scraper — Text, Metadata & Chapters

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

T2 Solutions

Maintained by Community

Actor stats

1

Bookmarked

2

Total users

1

Monthly active users

19 hours ago

Last modified

Categories

Features

Limited permissions

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_SUMMARY record (complete, partial, timed_out, or zero_match) so you always know which videos succeeded and why any video was skipped or had no captions.
  • 🗂️ Optional chapters — enable includeChapters to 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_PERMISSIONS security 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:

FieldTypeDefaultDescription
videosarray 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.
preferredLanguagestring (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.
preferredLanguageCustomstringunsetUsed only when preferredLanguage is other (e.g. en-US, zh-Hans, pt-PT).
fallbackToAnyLanguagebooleantrueIf 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.
includeTimestampsbooleantrueInclude the timestamped segments array ([{start, duration, end, text}]) alongside transcriptText.
includeChaptersbooleanfalseAlso fetch creator-defined video chapters ([{title, startSeconds, timeText}]). Off by default.
maxVideosinteger100Maximum unique videos processed in one run (1–1,000). Extra videos beyond this cap are counted in videosSkippedOverCap.
concurrencyinteger4Videos 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.
pacingSecondsnumber1.5Delay between videos for each worker in seconds (0.5–30). Aggregate launch rate is concurrency / pacingSeconds; each connection keeps the same per-IP rate.
maxDurationMinutesnumber25Fail-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:

  • aircAruvnKk
  • https://www.youtube.com/watch?v=aircAruvnKk (extra query parameters are ignored)
  • https://youtu.be/aircAruvnKk
  • https://www.youtube.com/shorts/aircAruvnKk
  • https://www.youtube.com/embed/aircAruvnKk
  • https://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-video jobResults).

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.

ColumnNullableDescription
videoIdnoCanonical 11-character YouTube video ID.
urlnoCanonical https://www.youtube.com/watch?v=… URL.
titleyesVideo title.
authoryesChannel display name.
channelIdyesYouTube channel ID (UC…).
lengthSecondsyesVideo duration in seconds.
viewCountyesView count at fetch time.
isLiveContentnoWhether YouTube marks the video as live content.
keywordsnoArray of video keywords ([] when none).
shortDescriptionnoVideo description text ("" when empty).
thumbnailUrlnoHighest-resolution thumbnail URL available.
languagenoLanguage code of the returned caption track (e.g. en, vi).
languageNamenoDisplay name of the caption track, e.g. English, English (auto-generated).
isAutoGeneratednotrue when the track is auto-generated (asr), false for manual captions.
availableLanguagesnoAll caption language codes available on the video.
segmentCountnoNumber of caption segments parsed.
transcriptTextnoFull plain-text transcript (all segment texts joined with single spaces).
segmentsnoTimestamped cues [{start, duration, end, text}] in seconds ([] when includeTimestamps: false).
chaptersnoCreator chapters [{title, startSeconds, timeText}] ([] unless includeChapters: true and chapters exist on the video).
fetchedAtnoISO-8601 UTC timestamp when the transcript was fetched.
statusnook 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"
}
statusMeaningCharged
no_captionsThe video has no caption tracks.yes
unavailablePrivate, deleted, or unplayable.yes
no_requested_languageNo requested language and fallbackToAnyLanguage is false.yes
age_restrictedAge-gated and no signed-in, age-confirmed session was available.yes
login_requiredYouTube sign-in/bot gate that the configured session could not unlock.no
egress_unavailableTemporary network/route exhaustion.no
rate_limited / network_errorYouTube throttling or a transport failure.no
deadline / video_timeoutThe run or the per-video window ran out.no
not_runNever started because the run stopped (deadline, a sign-in/bot gate, or a spend cap).no
invalid_inputThe submitted entry was not a YouTube link (the rejected value is echoed in url).no
unknownAn 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)

FieldMeaning
statecomplete (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)
partialReasonnull 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.
rowsRequestedUnique valid videos selected (up to maxVideos).
rowsFetchedTranscript rows delivered to the dataset.
rowsPushFailedFetched rows that failed to write to the dataset (never billed).
chargedRowsRows charged: transcript rows plus billable content-outcome status rows.
noTranscriptRowsStatus rows written for videos without a transcript, including rejected invalid_input entries.
noTranscriptRowsPushFailedStatus rows that could not be written (never billed).
jobsTotal / jobsOk / jobsFailedTotal processed videos vs delivered (jobsOk) vs non-delivered (jobsFailed).
videosNoCaptionsVideos that have no caption tracks on YouTube.
videosUnavailablePrivate, deleted, or unplayable videos.
videosNoRequestedLanguageVideos without the requested language when fallbackToAnyLanguage is false.
videosLoginRequiredVideos gated by a YouTube sign-in/bot check that could not be unlocked with the configured session.
videosAgeRestrictedAge-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.
videosEgressUnavailableVideos that could not be fetched due to temporary network/route exhaustion.
videosNotRunVideos not started because maxDurationMinutes was reached or the run's spend cap stopped launches.
videosSkippedDuplicateDuplicate video IDs collapsed from the input.
videosSkippedInvalidInvalid URLs or malformed IDs rejected before any network request and returned as invalid_input status rows.
videosSkippedOverCapUnique videos beyond maxVideos.
chaptersUnavailable[{videoId, reason}] when includeChapters: true but chapter markers could not be retrieved; null otherwise.
jobResultsPer-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 / runFinishedAtISO-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.com to 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.state and RUN_SUMMARY.jobResults for agents to distinguish complete, zero_match, timed_out, and partial runs 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).

  • result event: $0.005 per charged row ($5.00 per 1,000 charged rows)
  • apify-actor-start event (optional): $0.00005 per run
  • Charged: delivered transcripts, plus status rows with no_captions, unavailable, no_requested_language, or age_restricted.
  • Free: infrastructure outcomes (egress_unavailable, login_required, rate_limited, network_error, deadline, video_timeout, unknown, not_run), skipped duplicates, rejected invalid_input rows, failed dataset pushes, and the RUN_SUMMARY / OUTPUT records.
Charged rowsEstimated 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.

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.