YouTube Transcript Extractor: Caption JSON for AI avatar

YouTube Transcript Extractor: Caption JSON for AI

Pricing

$11.00 / 1,000 transcript extracteds

Go to Apify Store
YouTube Transcript Extractor: Caption JSON for AI

YouTube Transcript Extractor: Caption JSON for AI

Get YouTube video transcripts as clean JSON with timestamps, ready for AI and RAG. Paste video URLs or IDs. $0.011 per transcript; videos without captions are free.

Pricing

$11.00 / 1,000 transcript extracteds

Rating

0.0

(0)

Developer

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

YouTube Transcript Extractor

YouTube video URLs in, timestamped transcript JSON out.

Which YouTube transcript Actor should I use?

Use this one for caption-only bulk extraction when the video already has captions (creator-uploaded or YouTube auto-generated) and you want predictable JSON for an agent or RAG pipeline. It does not transcribe audio. For videos without captions, use an Actor with AI/Whisper fallback instead.

SourceYouTube's published caption tracks
AI transcriptionNo
BrowserNo
OutputOne dataset record per video: videoId, url, languageCode, languageName, isAutoGenerated, segments[{text,start,duration}], fullText, segmentCount
Failed videoStructured status: "error" record; the batch continues
Price$0.011 per successful transcript ($11.00 / 1,000). Error records are not billed.
Run summaryrun-summary key-value record: requested, succeeded, failed, billed

Who it's for / not for

  • For: AI agents, RAG ingestion, research batches over many captioned videos, and pipelines that need one record per input.
  • Not for: videos with no caption track, private or age-restricted videos, speaker labels, or translation.

Call it from an agent

  • REST: POST https://api.apify.com/v2/acts/skilled_glee~youtube-transcript-extractor/run-sync-get-dataset-items
  • MCP: https://mcp.apify.com/?tools=skilled_glee/youtube-transcript-extractor

Pairs with (same publisher, same record style)

Input

{
"videoUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],
"language": "en",
"includeAutoGenerated": true
}
  • videoUrls accepts watch, youtu.be, embed, and shorts URLs or bare 11-character video IDs.
  • language is the preferred caption language code and defaults to en.
  • includeAutoGenerated defaults to true.

Output

The default dataset contains one record per requested video. Successful records include videoId, url, languageCode, languageName, isAutoGenerated, segments (an array of {text, start, duration}), fullText, segmentCount, actorVersion, and contractId. Failed items have status: "error" and a human-readable error value.

The key-value store record run-summary contains requested, succeeded, failed, and billed counts plus the input settings and version identity.

Chaining into Subtitle RAG Chunker

To turn these transcripts into cue-preserving RAG chunks, pass this run's default dataset ID to SRT & WebVTT to JSON Subtitle Chunker for RAG (skilled_glee/subtitle-rag-chunker, Actor ID NzbvKBTYMFZTdWM36) as datasetId.

That Actor maps each successful item from videoId / url and the timed segments array (start in seconds, duration, text). If segments is missing, it falls back to fullText. Error records in this dataset are skipped there and are not billed as document-converted events.

Example input for the chunker:

{
"datasetId": "THIS_RUN_DEFAULT_DATASET_ID",
"chunkMode": "time",
"windowSeconds": 60
}

Pricing

Pay per event: $0.011 per successful transcript (transcript-extracted). The event is charged only after a useful transcript record is saved. Error records are not billed.

Limits

  • Only videos with a published caption track can return a transcript.
  • Age-restricted, private, deleted, or region-blocked videos may return a structured error.
  • Caption text is an external, mutable YouTube source and may change upstream.