YouTube Transcript Scraper & API: Subtitles, Captions, SRT avatar

YouTube Transcript Scraper & API: Subtitles, Captions, SRT

Pricing

from $4.50 / 1,000 transcripts

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

YouTube Transcript Scraper & API: Subtitles, Captions, SRT

Get the transcript of any YouTube video, Short or playlist: plain text, timestamps, SRT/VTT subtitles or RAG chunks, with publish date, views and likes. Any language, no API key. A video without captions gets a row that says why and is never billed. First 50 per run free, then $0.0075 each.

Pricing

from $4.50 / 1,000 transcripts

Rating

0.0

(0)

Developer

Jaime Martinez

Jaime Martinez

Maintained by Community

Actor stats

0

Bookmarked

11

Total users

2

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

YouTube Transcript Scraper & API: transcripts, subtitles and captions

Paste YouTube video links and get each video's transcript: plain text, timestamped lines, SRT or VTT subtitles, or chunks ready for RAG. Every row also carries the title, channel, exact publish date, length, views and likes. It works on videos, Shorts and past live streams, with captions written by people or made by YouTube, in any language YouTube has them. No YouTube API key and no login.

Three things it does that are easy to check:

  • A row for every video you put in. A video with no captions, a private or removed video, or a link that is not a video gets a row with ok: false and the reason. Nothing goes missing without a word.
  • You pay only for transcripts you receive. The first 50 in every run are free. Rows without a transcript are never billed.
  • It says which language you got. If the language you asked for is missing, you get English, then the language spoken in the video, and the row says so. You can also insist on your languages only.

Already used it? A short honest review helps other people find this Actor and tells me what to fix next: leave a review.

Quick start

Paste this into the Input tab (JSON view) and press Start:

{
"videoUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"]
}

You get one row:

{
"ok": true,
"videoId": "jNQXAC9IVRw",
"url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"title": "Me at the zoo",
"channelName": "jawed",
"channelId": "UC4QobU6STFB0P71PMvOGN5A",
"channelHandle": "@jawed",
"publishedAt": "2005-04-23T20:31:52-07:00",
"durationSeconds": 19,
"viewCount": 449436464,
"likeCount": 20151681,
"category": "Film & Animation",
"videoType": "video",
"thumbnailUrl": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg",
"language": "en",
"captionKind": "manual",
"availableLanguages": [
{ "languageCode": "en", "kind": "manual", "name": "English" },
{ "languageCode": "de", "kind": "manual", "name": "German" }
],
"segmentCount": 6,
"text": "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 cool. And that's pretty much all there is to say.",
"segments": [
{ "start": 1.2, "duration": 2.16, "text": "All right, so here we are, in front of the elephants" }
]
}

From code, one call starts the run and returns the rows:

POST https://api.apify.com/v2/acts/jamhimself~youtube-transcript-extractor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN
Content-Type: application/json
{ "videoUrls": ["https://youtu.be/jNQXAC9IVRw"], "includeSegments": false }

What you can paste

Everything goes into videoUrls, one per line, mixed as you like.

You pasteYou get
A video link in any form: youtube.com/watch?v=…, youtu.be/…, /shorts/…, /embed/…, /live/…, mobile and YouTube Music links, with or without extra parts like &t=42sThat video's transcript
An 11-character video ID, for example jNQXAC9IVRwThat video's transcript
A playlist link, youtube.com/playlist?list=…Every video in the playlist, up to the limit you set
A channel link or @handleThe channel's newest videos, up to the limit you set. A link ending in /shorts or /streams takes that tab

A video listed twice is read and billed once. A watch link that also names a playlist is read as the one video.

For whole channels with date filters, most-viewed order, Shorts and streams together, or a schedule that only brings new videos, use YouTube Channel Transcripts.

Languages

languages is a list of caption language codes, best first. The default is ["en"].

  • The video has one of your languages: you get the first one on your list that it has. Captions written by people are preferred over YouTube's automatic ones (preferManual).
  • It has none of them: you get English, and if there is no English, the language spoken in the video. The row's language field says what you got, and availableLanguages lists everything the video has.
  • Not sure which language a video is in? Write "languages": ["original"]. You get the language spoken in each video.
  • You want your languages or nothing: set "onlyRequestedLanguages": true. A video without them is skipped and not billed, and its row lists the languages it does have.

captionKind is manual for captions someone wrote and auto-generated for YouTube's speech recognition.

Output formats

InputField in the rowWhat it is
includePlainText (on)textThe whole transcript as one string
includeSegments (on)segmentsEach caption line with start and duration in seconds
includeSrtsrtA SubRip subtitle file
includeVttvttA WebVTT subtitle file
ragChunkingchunksOverlapping chunks, each with startSeconds, endSeconds and a deepLink that opens the video at that moment. Size and overlap are set with chunkMaxChars (1500) and chunkOverlapChars (200)
includeVideoDetailsdescription, keywordsThe video's full description and keywords

The dataset has three views: Transcripts, RAG chunks (one row per chunk) and Subtitles. Export any of them as JSON, CSV, Excel or XML.

Videos without a transcript

A video that cannot be delivered gets a row like this instead of being dropped:

{
"ok": false,
"videoId": "aaaaaaaaaaa",
"url": "https://www.youtube.com/watch?v=aaaaaaaaaaa",
"input": "https://www.youtube.com/watch?v=aaaaaaaaaaa",
"errorType": "UNPLAYABLE",
"error": "YouTube will not play this video: \"This video is unavailable\". Not billed."
}
errorTypeMeaning
NO_CAPTIONSThe video has no captions: none were written and YouTube has made no automatic ones (new uploads can take a few hours)
UNPLAYABLEYouTube will not play it without a signed-in viewer or at all: removed, private, members-only, age-restricted, blocked in the country read from, or a stream that has not started. The error field quotes YouTube's own wording
LIVE_NOWThe stream is on air; its transcript exists once it has ended
LANGUAGE_NOT_AVAILABLEOnly with onlyRequestedLanguages: the video has none of your languages. availableLanguages lists what it has
BAD_INPUTThe line is not a YouTube video, playlist or channel
NOT_FOUNDThe playlist or channel does not exist
FETCH_FAILED, RATE_LIMITEDYouTube refused our requests on every connection tried. Run those videos again in a few minutes

Filter on ok to keep transcripts only, or set "includeVideosWithoutTranscript": false and the dataset holds transcripts only. Either way the run's key-value store has three records: SKIPPED (every video without a transcript, with the reason), STATUS (counts per playlist or channel) and SUMMARY (totals, and what was free and what was billed).

If YouTube refuses every video of a run, the run ends as failed instead of looking like a success with no data.

What you pay

The first 50 transcripts of every run are free. After that it is $0.0075 per transcript delivered. There is no start fee, no monthly fee and no charge for proxies or compute.

Transcripts delivered in one runYou pay
50 or fewer$0.00
100$0.38
1,000$7.13

Apify plan discounts apply by themselves: Bronze 10% off, Silver 20% off, Gold and above 40% off (the "from" price on this page). The Pricing tab always shows the current rate.

Billing you can check

  • A transcript is written to the dataset first and billed second. A run that stops in between has billed nothing it did not deliver.
  • Rows with ok: false are never billed. Listing a playlist or channel is not billed.
  • Set a maximum cost for the run and it is respected to the cent: once it is reached, the remaining videos are not fetched at all. The status message tells you how many are left, and the SKIPPED record lists them.
  • A run that is restarted (resurrected after a timeout or an abort, or moved by Apify to another server) continues where it stopped. Videos that already have a row are not fetched, delivered or billed again, and the free transcripts are not handed out twice.
  • The SUMMARY record of every run states how many transcripts were free and how many were billed. It matches the charge Apify shows for the run.

Use it with AI agents (MCP)

The Actor is available as a tool through Apify's MCP server:

{
"mcpServers": {
"youtube-transcripts": {
"url": "https://mcp.apify.com/?tools=jamhimself/youtube-transcript-extractor",
"headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
}
}
}

Claude, Cursor, VS Code and other MCP clients can then ask for a transcript by link. Because every video gets a row, an agent can tell a video without captions from a failure and say so.

Coming from another transcript Actor?

An input written for another YouTube transcript Actor usually works here as it is. Besides videoUrls, the links are also read from urls, startUrls, videoUrl, youtube_url, url, videoIds, channels, channel, channel_url and playlists, as a list or as one string. The language is also read from language, lang and targetLanguage, and the subtitle format from outputFormat, format or subtitleFormats (srt, vtt).

How it gets transcripts where others return nothing

YouTube answers a plain request for captions with an empty page unless the request proves it comes from a real player, and it refuses most requests from data-center addresses. This Actor reads each video the way YouTube's own app does, through residential addresses, and falls back to the full watch page with a freshly made player token when that is refused. Before a video is reported as having no captions or as unavailable, the second way is asked too.

An automated run checks the Actor every day and counts transcripts actually delivered, not just "run succeeded".

Limits

  • No translation. YouTube refuses most requests for its machine-translated captions, so the Actor does not offer them. You get captions in the languages the video has.
  • No speech-to-text. A video without captions has no transcript here; the Actor does not listen to the audio.
  • Signed-in content. Private, members-only and age-restricted videos need a signed-in viewer and are reported as UNPLAYABLE.
  • Live streams get a transcript after they end, once YouTube has made the captions.
  • publishedAt, likeCount and category come from a separate small request. On the rare occasion YouTube withholds them they are null; the transcript is not affected.

FAQ

Does it work with auto-generated captions? Yes. captionKind tells you whether a transcript was written by a person or made by YouTube.

Can I get subtitles as a file? Switch on includeSrt or includeVtt and save the field's content as a .srt or .vtt file.

How many videos can one run take? Tens of thousands. Videos are read ten at a time by default (concurrency, up to 20). When measured on 2026-11-26, a run of 1,680 videos took 2 minutes 40 seconds.

Why did a video come back without a transcript? The row's error field says why, in YouTube's own words where it gave a reason.

Do I need a YouTube API key or cookies? No.

Is it legal? The Actor reads captions that YouTube shows to every visitor. You are responsible for how you use them, including YouTube's Terms of Service and copyright law.

What changed

  • 2026-11-26: Every video now gets a row, also those without a transcript (ok: false with the reason; switch off with includeVideosWithoutTranscript). Playlist and channel links are accepted. New fields: publishedAt, likeCount, category, channelHandle, videoType, thumbnailUrl. New options: onlyRequestedLanguages, includeVideoDetails, "original" as a language. A missing language now falls back to English before any other language. A restarted run no longer delivers or bills a video twice, and a run stops fetching at your maximum cost. Runs are several times faster (1,680 videos in 2 minutes 40 seconds when measured).

Questions, or a format you need? Open an issue on the Issues tab.

YouTube is a trademark of Google LLC. This Actor is not affiliated with or endorsed by Google or YouTube. Built and maintained by Jamhimself LLC.