YouTube Transcript Scraper: Subtitles, Chapters & Key Moments
Get YouTube video transcripts and subtitles as text, Markdown, SRT, VTT, or segments, with chapters and most replayed moments. Search phrases or cap text for AI agents, RAG, and n8n. Caption-less videos are free. Not affiliated with YouTube or Google.
- Later runs return only the rows your previous run did not deliver.
- 10,000 transcripts cost USD 15.00 at the Free-tier price; the Starter, Scale and Business plans are cheaper.
What it does
- Agents that answer from videos. Send a video and a question’s keywords in
find; the row lists each place they are said with a timestamp link, so the answer can cite the second it came from. - Clips and highlights.
mostReplayedgives the moments viewers replay most, already joined with the words said in them, so you do not need a second tool or to match timestamps by hand. - Brand and topic monitoring. Name channels or playlists and a phrase; videos that mention it come back with the places, and videos that do not are not charged.
- RAG and vector search.
chunksare cut between paragraphs and sentences and carry their start second. - Subtitles.
srtandvttare ready-to-save subtitle files. - Channel research. Name a channel and get its recent uploads; with Only new videos, a schedule returns only what is new.
How to use it
- Put Videos, Playlists and/or Channels into the input. Any YouTube link works in Videos: a playlist or channel link placed there is read as what it is.
- To get only part of each transcript, set Find phrases, a time window or Maximum transcript characters. Leave them empty for whole transcripts.
- Pick the formats you need (default:
textandsegments) and the caption language order. - Run it and read the dataset.
An empty input ({}) returns the transcript of one sample video.
Input example: where is a phrase said?
{
"videos": ["https://www.youtube.com/watch?v=jGwO_UgTS7I"],
"find": ["supervised learning"],
"formats": ["text"],
"maxItems": 1
}
Input example: a channel’s new videos as Markdown and SRT
{
"channels": ["https://www.youtube.com/@TED"],
"formats": ["markdown", "srt"],
"onlyNewItems": true,
"maxItems": 10
}Inputs
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
Videos (videos) | array | No | [] | YouTube watch, youtu.be, Shorts, playlist, or channel URLs or 11-char IDs (up to 500). No-caption rows are free. Empty uses 1 sample video. |
Playlists (playlists) | array | No | [] | Playlist URLs (/playlist?list=) or IDs, up to 20. Reads first 100 videos per playlist (capped by maxItems, or 20 total without maxItems). |
Channels (channels) | array | No | [] | Channel URLs (/channel/, @handle, /c/, /user/) or IDs, up to 20. Reads newest videos first (capped by maxItems, or 20 total without maxItems). |
Find phrases (find) | array | No | [] | Up to 20 case-insensitive words or phrases to locate in transcripts. Text match, not semantic search: pass short keywords (pricing, open source), not a whole question. Fills matches; no-match videos are free. |
What to return for videos that match (findMode) | string | No | snippets | snippets (default): return only matched clips plus findContextSeconds. filter: return the full transcript of matching videos. Used with find. |
Seconds of speech around each match (findContextSeconds) | integer | No | 15 | How many seconds of speech to keep before and after each place a phrase is said, from 0 to 600. Used only when find is set. |
Maximum matches described per video (maxMatches) | integer | No | 10 | Max matches listed in matches per video (1-100, default 10). matchCount still counts all occurrences; raise this if matches equals maxMatches. |
Start of the time window (startAt) | integer | No | — | Start of time window in seconds from video start (e.g. 90 for 1:30). Includes any caption active at that second. |
End of the time window (endAt) | integer | No | — | Return only what is said up to this second (seconds from the start of the video), later than startAt. Leave empty to read to the end. |
Maximum transcript characters per video (maxChars) | integer | No | 0 | Cut caption text after this many chars (0 = full). Returns at least 1 caption, sets truncated: true and nextStartSegment for startSegment paging. |
Start at caption number (startSegment) | integer | No | 0 | Caption index to start from (0 = beginning). Pass a truncated row’s nextStartSegment with the same inputs and maxChars to continue reading. |
Transcript formats (formats) | array | No | text, segments | Output formats (default: text, segments): text, segments, markdown (chapters & timestamp links), chunks (RAG), srt, vtt. Unselected are null. |
Caption languages (in order of preference) (languages) | array | No | en | Up to 10 caption language codes in priority order (e.g. en, ja). Falls back to spoken auto-captions with languageNote; never machine-translated. |
Prefer human-written captions over auto-generated ones (preferManual) | boolean | No | true | When a video has both in the requested language, take the human-written track. Turn it off to prefer the auto-generated track. |
Most replayed moments, chapters, likes and comment count (includeSignals) | boolean | No | true | Include mostReplayed (with speech), heatmap, chapters, likeCount, and commentCount at no extra cost. Off = transcripts and description chapters only. |
Chunk size (characters) (chunkSize) | integer | No | 1500 | Target characters per RAG chunk, split on paragraphs/sentences (0 = single chunk, 0-20000, default 1500). Used when formats includes chunks. |
Maximum videos (maxItems) | integer | No | — | Max rows per run (1-500). No API default (Console prefills 3); omit for all named videos + 20 from playlists/channels. Only transcripts are charged. |
Only new videos (onlyNewItems) | boolean | No | false | Skip videos returned in earlier runs with the same input (state kept 90 days). Failed/no-caption rows retry; no-match find rows re-check later. |
Requests at once (maxConcurrency) | integer | No | 3 | Concurrent requests (1-3, default 3). Set 1 for sequential requests; rate limits still apply. Cached captions send no request. |
Advanced: proxyConfiguration is available for proxy settings and is not required.
Output
| Field | Type | Description |
|---|---|---|
id | string | Stable row ID: the 11-character YouTube video ID. Used for de-duplication and onlyNewItems. |
source | string | Data source: “YouTube captions”. |
videoId | string | The 11-character YouTube video ID. |
url | string | https://www.youtube.com/watch?v=<videoId>. |
title | string | null | Video title as YouTube reports it; null on a status row. |
channelId | string | null | Channel ID (UC..., 24 characters); null on a status row. |
channelName | string | null | Channel name; null on a status row. |
publishedAt | string | null | Publication date (YYYY-MM-DD, UTC) from the video’s own metadata; null when the video does not report one. |
durationSeconds | integer | null | Video length in seconds. |
viewCount | integer | null | Views when the caption was read, as the video’s metadata reports them: on a cached row that is the count at fetchedAt, not at this run. Null when the video does not report a count. |
description | string | null | The video description as the video reports it; null when it has none or on a status row. |
language | string | null | Language code of the caption track that was used, as YouTube lists it (for example en, ja, pt-BR); null on a status row. |
languageRequested | string | null | The first language of the input that this row answers (for example en; en when the input names none). On a status row, the first language the input asked for. |
languageReturned | string | null | The language of the text that was returned: the code of the caption track, as YouTube writes it. Same value as language. It can differ from languageRequested for the same language (pt and pt-BR; he and iw, YouTube’s older code), and it differs when the video has no track in any requested language, which languageNote says. Null on a status row. |
captionKind | string | null | manual (written by a person) or auto (auto-generated by YouTube); null on a status row. |
translated | boolean | Always false: the Actor returns the video’s own caption tracks and never a machine translation. To see whether the text is in a language you asked for, read languageNote (set only when it is not). |
languageNote | string | null | One sentence saying why the returned track is not in a requested language (the video has no track in it, so its auto-generated track in the spoken language is returned); null when the row answers the request. |
availableCaptions | array | Every caption track the video has, in the order YouTube lists them: language (the code), kind (manual or auto) and name (the name YouTube shows, null when it has none). When a video has several tracks in one language, all of them are listed here, and the transcript in this row is the first of them. Empty on a status row. |
likeCount | integer | null | Likes as YouTube reports them at signalsFetchedAt. null when the uploader hides the count, when includeSignals is off, when YouTube did not answer (see signalsNote) or on a status row. |
commentCount | integer | null | Comments as a number, read from commentCountText: exact below 1,000 and rounded by YouTube above (23K is 23000). null when comments are off or the count was not read. |
commentCountText | string | null | The comment count as YouTube shows it (for example 23K); null when comments are off or the count was not read. |
chapters | array | The video’s chapters in order: start (seconds) and title. They are the chapters YouTube shows on the progress bar when they were read (the uploader’s, or the ones YouTube generates), otherwise the timestamp lines of the description. Empty when the video has none or on a status row. |
chaptersSource | string | null | description (the uploader wrote the chapters) or auto (YouTube generated them); null when the video has no chapters. |
chapterCount | integer | Number of entries in chapters (0 when the video has none). |
mostReplayed | array | The most replayed moments of the video, most replayed first, up to 5: rank, start and end (seconds), timestamp, url (the video opened at the moment), intensity (0-1, the height of YouTube’s replay graph there), labeledByYouTube (true for a range YouTube itself marks “Most replayed”, false for a peak read off the graph) and text (what is said during the moment in this row’s caption track, at most 600 characters with … when longer; null when nothing is said). Empty when YouTube shows no replay graph for the video (new or little-watched videos), when includeSignals is off or when it was not read (see signalsNote). |
heatmap | object | null | YouTube’s replay graph for the whole video: intervalSeconds (the seconds one point covers) and values (the heights from 0 to 1 in time order, usually 100 points; the first point is 1 on most videos because every view starts there). null when YouTube shows no graph or it was not read. |
signalsFetchedAt | string | null | When likeCount, commentCount, the progress-bar chapters, mostReplayed and heatmap were read from YouTube (ISO 8601). On a cached row this is the time of the earlier read. null when they were not read. |
signalsNote | string | null | One sentence saying why the likes, comments, replay graph and progress-bar chapters are missing (YouTube did not answer for them, or the row holds no transcript); null when they were read or includeSignals is off. The transcript never depends on them. |
segmentCount | integer | Number of caption cues in this row’s transcript (the selection when find, a time window or maxChars is used). |
chars | integer | Characters of this row’s transcript text. |
totalSegmentCount | integer | Number of caption cues in the video’s whole caption track. |
totalChars | integer | Characters of the video’s whole caption track. |
partial | boolean | true when this row holds fewer captions than the video’s whole track (because of find, a time window, startSegment or maxChars); false for a whole transcript. |
truncated | boolean | true when maxChars cut the transcript short; nextStartSegment then says where to read on. |
nextStartSegment | integer | null | With truncated: the number of the first caption that was left out (captions are numbered from 0 over the video’s whole track). Run again with startSegment set to it to read on; no caption is returned twice. null otherwise. |
matchCount | integer | null | How many times the find phrases are said in the part of the video that was searched (from startSegment on, inside the time window when one is set), each phrase counted on its own. 0 means none is said: that row has no transcript and is not charged. null when find is empty. |
matches | array | The places the find phrases are said, in time order, up to maxMatches: phrase, start and end (seconds), timestamp, url (the video opened at that second) and text (the speech from findContextSeconds before to findContextSeconds after). A phrase said again inside a place already listed is counted in matchCount and not listed twice. Empty when find is empty or nothing matched. |
text | string | null | The transcript as plain text: the captions joined into paragraphs with a blank line between them, no timestamps, headings or links. null when formats does not name text and on a status row. |
srt | string | null | The transcript as a SubRip (.srt) subtitle file. null unless formats names srt. |
vtt | string | null | The transcript as a WebVTT (.vtt) subtitle file. null unless formats names vtt. |
segments | array | null | Caption cues: start (seconds), duration (seconds), text. null when formats does not name segments and on a status row. |
markdown | string | null | The transcript as Markdown: title, one metadata line, ## chapter headings, one paragraph per few seconds of speech with a timestamp link. null when formats does not name markdown and on status rows. |
chunks | array | RAG chunks of about chunkSize characters: index, start (seconds), chars, text. One chunk when chunkSize is 0; empty when formats does not name chunks and on a status row. |
error | object | null | null when YouTube returned the video’s caption track (also for a row that holds no text because no find phrase is said or nothing is said in the time window). Otherwise the fixed failure type and message, one of: login-required, no-captions, private, removed, live, region-restricted, age-restricted, members-only, paid, caption-unavailable, too-large, blocked, timeout, unavailable. A status row is never charged. Every video the run processes gets a row even when YouTube refused it; named videos beyond maxItems are not processed and are listed in OUTPUT as unchecked. |
cached | boolean | true when the caption came from the Actor’s caption cache: the same video and language was read in the last 90 days, so YouTube was not asked again, and the row is charged like any other. |
fetchedAt | string | null | When the caption was read from YouTube (ISO 8601). Earlier than this run when cached is true; null on a status row. |
isNew | boolean | Present only when onlyNewItems is on: true when this video is new since the previous run. |
Sources and limits
- What YouTube shows for a public video: captions and the information next to the player: The public caption track, the video’s public metadata, and the chapters, replay graph and like and comment counts shown next to the player; no video or audio download.
Limitations
- Unofficial and independent. This is an unofficial Actor: it is an independent tool, not affiliated with, endorsed by or sponsored by YouTube or Google. It needs no login, no API key and no browser, and it never downloads video or audio.
- No login, no cookies and no CAPTCHA workaround. A video that needs a sign-in returns
login-required. An age gate returnsage-restricted, a members-only video returnsmembers-only, a rental or purchase returnspaid, and the video’s own privacy setting returnsprivate; all are reported as uncharged status rows. - No video or audio download and no speech-to-text step: a video without a caption track returns
no-captions. A live stream with no usable track islive, a video you can no longer watch isremovedorunavailable, and a track that comes back empty iscaption-unavailable. - No machine translation. A video with no track in your language returns its own track in the spoken language, and
languageNotesays so. When a video has several tracks in one language, the first one YouTube lists is returned;availableCaptionsnames them all. - Playlists return their first 100 videos. Mixes generated per viewer are not playlists and are not read.
- Comment counts above 999 are rounded by YouTube (
23K). Like counts are exact unless the uploader hides them. - Region-restricted videos depend on the proxy country; set
apifyProxyCountryinproxyConfigurationwhen you know the video is available in one country. - A channel or playlist input is bounded by
maxItems(20 in total when it is left out, read one by one, so the first can fill the cap). - Descriptions and captions are YouTube’s own text; the Actor keeps the wording and only groups it into paragraphs and chunks.
Staging run
Sample output
One result of a run, cut to 14 of the 47 output fields; long text is shortened. Download the same rows as JSON or CSV.
{
"id": "jGwO_UgTS7I",
"videoId": "jGwO_UgTS7I",
"url": "https://www.youtube.com/watch?v=jGwO_UgTS7I",
"title": "Stanford CS229: Machine Learning Lecture 1 - Andrew Ng (Autumn 2018)",
"channelName": "Stanford Online",
"publishedAt": "2020-04-17",
"durationSeconds": 4520,
"language": "en",
"captionKind": "manual",
"chapterCount": 7,
"segmentCount": 1464,
"chars": 69876,
"likeCount": 63091,
"commentCountText": "1.3K"
}
The output schema above lists every field. These rows come from a staging run, not from a customer.
Pricing
USD 1.50 per 1,000 transcripts on Free; USD 1.40 on Starter, USD 1.35 on Scale, USD 1.30 on Business
Apify charges per result; the Store page is the commercial reference. Rows that only record a failure are not charged. Every run also carries a start fee of USD 0.00005 per GB of memory (USD 0.00005 at the default 0.5 GB), even a run that returns no results.
Verification
The facts on this page come from the Actor’s own documentation and input and output schemas, and the staging verification of 2026-11-05. No customer testimonials, ratings, or uptime numbers are shown.
The Store page is the commercial reference.