YouTube data

YouTube Transcript Scraper (bulk, fast & reliable)

Fetch transcripts/subtitles for up to 500 YouTube videos per run. Returns plain text, timestamped snippets and optional SRT, with language selection. Built for AI agents and bulk pipelines: strict output schema, only successful transcripts are charged.

$2.50per 1,000 · Transcript delivered

One successfully delivered transcript. Videos that fail or have no captions are never charged.

Call it from your code

curl
ACTOR=steadydata~youtube-transcript-bulk
URL="https://api.apify.com/v2/acts/$ACTOR/run-sync-get-dataset-items"

curl -X POST "$URL?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"videos": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"], "preferManualCaptions": true, "includeTimestampedSnippets": true}'
python
import os, requests

ACTOR = "steadydata~youtube-transcript-bulk"
URL = f"https://api.apify.com/v2/acts/{ACTOR}/run-sync-get-dataset-items"

rows = requests.post(
    URL,
    params={"token": os.environ["APIFY_TOKEN"]},
    json={'videos': ['https://www.youtube.com/watch?v=dQw4w9WgXcQ'], 'preferManualCaptions': True, 'includeTimestampedSnippets': True},
    timeout=900,
).json()

# every row carries a status; failures are records, not exceptions
ok = [r for r in rows if r.get("status") == "ok"]
print(len(ok), "rows delivered")
javascript
const ACTOR = "steadydata~youtube-transcript-bulk";
const url =
  `https://api.apify.com/v2/acts/${ACTOR}/run-sync-get-dataset-items` +
  `?token=${process.env.APIFY_TOKEN}`;

const rows = await fetch(url, {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"videos": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"], "preferManualCaptions": true, "includeTimestampedSnippets": true}),
}).then((r) => r.json());

// one object per delivered row, same shape every time
console.log(rows.filter((r) => r.status === "ok").length, "rows");

Use it in an agent

Point an MCP client at Apify's hosted server with this dataset in the tools list, or run our own server locally. The field explanations in the table below travel with the schema, so your agent reads them straight from the platform instead of from this page.

mcp url
https://mcp.apify.com?tools=steadydata/youtube-transcript-bulk

# the tool arrives in your agent as steadydata--youtube-transcript-bulk

Input

FieldTypeNameWhat it does
videos
required
array of stringVideo URLs or IDsYouTube video URLs (watch, shorts, youtu.be, embed) or bare 11-character video IDs. Max 500 per run.
languagesarray of stringPreferred languagesLanguage codes in order of preference, e.g. ["en", "nl"]. Leave empty to take the original-language track.
preferManualCaptionsbooleanPrefer manual captions over auto-generatedWhen both exist for the chosen language, take the human-made track.
includeTimestampedSnippetsbooleanInclude timestamped snippetsAdds a snippets array with start time and duration per line, next to the plain text field.
includeSrtbooleanInclude SRT subtitle formatAdds an srt field with a ready-to-use subtitle file per video.

What you get back

output schema, one object per delivered row
{
  "videoId": string,
  "status": string,
  "title": string,
  "channel": string,
  "durationSeconds": integer,
  "language": string,
  "languageName": string,
  "isAutoGenerated": boolean,
  "availableLanguages": array,
  "text": string,
  "snippets": array,
  "srt": string,
  "errorCode": string,
  "error": string,
  "input": string
}
FieldTypeWhen it is filled
videoIdstring
statusstringEither 'ok' or 'error'. An error row carries errorCode and error, and leaves the data fields empty; it is never charged.
titlestring
channelstring
durationSecondsinteger
languagestring
languageNamestring
isAutoGeneratedboolean
availableLanguagesarray
textstring
snippetsarrayFilled when includeTimestampedSnippets is on; empty otherwise.
srtstringFilled when includeSrt is on; empty otherwise.
errorCodestringFilled on an error row only; a delivered row leaves it empty.
errorstringFilled on an error row only; a delivered row leaves it empty.
inputstringThe input this row was built from, so a row can always be traced back.

Related datasets

Already using this one? Ratings are the first thing other buyers look at, and this dataset has none yet. If it does a job for you, a rating on its Apify page is the one thing that helps. It takes a minute and it is the only thing we ask for.

Open the Apify page