apify-scrapers-plugin

How to scrape YouTube transcripts

Get the YouTube transcript of any public video: the full text, timestamped segments and chapters, in the caption language you pick. Paste video links, channel links or @handles, or playlist links, and the Actor returns one row per video. It reads the captions YouTube already publishes (made by the uploader or generated by YouTube), so there is no speech-to-text cost and runs are fast.

Tool: YouTube Transcript Scraper: Bulk Captions with Timestamps on Apify. Price: $1.80 per 1,000 transcript rows. No subscription.

Sample data

Example rows from the Actor’s output, trimmed to the main columns:

Title Video URL Language Auto-generated Duration (s) Words Transcript
5 developer tips for working with Gemini 4 https://www.youtube.com/watch?v=WN5O4vWCa54 en false 256 759 With Gemini 4, we’ve gone from prompting one turn at a time to hand…

What each row contains

Field What it is
videoId 11-character YouTube video ID
url Watch link of the video
title Video title
channelId ID of the channel that published the video (UC…)
durationSeconds Video length in seconds
viewCount View count when the transcript was fetched
language Language code of the returned captions
languageLabel Caption track name as YouTube shows it, for example English (auto-generated)
isAutoGenerated True when YouTube generated the captions, false when the uploader made them
availableLanguages Every caption language of the video; auto-generated ones end in -auto
transcript Full caption text in one string
wordCount Number of words in the transcript
segments Timestamped caption lines: start and duration in seconds, and text. Null when segments are turned off
chapters Chapters from the description: start in seconds and title. Empty when the video has none
source video, channel or playlist: which input field the video came from
sourceInput The input line the video came from
aiSummary Short summary by your LLM. Null when AI summary is off
aiKeyPoints Key points by your LLM. Null when AI summary is off
scrapedAt When the transcript was fetched (ISO 8601)

Run it in three ways

In the browser. Open the Actor page, keep the prefilled input, click Start, then export the dataset as CSV, JSON or Excel.

From the API. One call starts the run and returns the rows:

curl -X POST "https://api.apify.com/v2/acts/lavidarossi.bv~youtube-transcript-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"videos":["https://www.youtube.com/watch?v=WN5O4vWCa54"],"languages":["en"],"preferManualCaptions":true,"fallbackToAnyLanguage":true,"includeSegments":true,"aiSummary":false,"aiBaseUrl":"https://api.openai.com/v1","proxyConfiguration":{"useApifyProxy":true,"apifyProxyGroups":["RESIDENTIAL"]},"maxResults":10}'

From an AI agent (MCP). Add https://mcp.apify.com?tools=lavidarossi.bv/youtube-transcript-scraper as a remote MCP server in Claude, Cursor or another MCP client. The agent gets the tool lavidarossi-dot-bv--youtube-transcript-scraper.

Input used above:

{
  "videos": [
    "https://www.youtube.com/watch?v=WN5O4vWCa54"
  ],
  "languages": [
    "en"
  ],
  "preferManualCaptions": true,
  "fallbackToAnyLanguage": true,
  "includeSegments": true,
  "aiSummary": false,
  "aiBaseUrl": "https://api.openai.com/v1",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "maxResults": 10
}

Limits

Use cases