# YouTube Transcript Scraper - Subtitles & Captions

> Get YouTube transcripts (captions/subtitles) in bulk for videos, Shorts, channels, playlists or search results. Plain text, timestamped segments, SRT, VTT or RAG-ready chunks, with language fallback and video metadata. No browser, no API key. Pay only for transcripts found.

- Category: Jobs & content
- Price: $4 per 1,000 × transcript result, billed per result by Apify (no subscription); any other billed events are listed on the Store page. Cap any run with `maxTotalChargeUsd`.
- Store page: https://apify.com/wrenfield-data/youtube-transcript-scraper?fpr=qx6tzs
- Human page: https://wrenfielddata.com/tools/youtube-transcript-scraper/
- OpenAPI 3 spec: https://api.apify.com/v2/acts/wrenfield-data~youtube-transcript-scraper/builds/default/openapi.json
- MCP tool: https://mcp.apify.com?tools=wrenfield-data/youtube-transcript-scraper (appears as `wrenfield-data--youtube-transcript-scraper`)

## Call it

Synchronous run that returns the dataset rows as JSON (use `/runs` for long jobs and poll; see the OpenAPI spec):

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/wrenfield-data~youtube-transcript-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"], "maxVideos": 1, "channelContentType": "videos", "maxTotalVideos": 1000, "languages": ["en"], "fallbackToAnyLanguage": true, "autoTranslate": false, "preferManualCaptions": true, "skipAutoGenerated": false, "outputFormats": ["text", "segments"], "chunkSize": 2000, "chunkOverlap": 200, "includeDescription": true, "proxyConfiguration": {"useApifyProxy": true}, "residentialFallback": true, "maxConcurrency": 20, "maxRetries": 6}'
```

## Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `urls` | array |  |  | One per line, mixed freely: video URLs (watch?v=, youtu.be/, /shorts/, /live/, /embed/), 11-character video IDs, channel URLs or @handles (/@name, /channel/UC…, /c/, /user/; add /shorts or /streams to pick that tab) and playlist URLs (playlist?list=). The type is detected automatically. |
| `searchQueries` | array |  |  | Search YouTube and get transcripts of the top Max videos results (videos only) for each query, e.g. how transformers work. |
| `maxVideos` | integer |  | `10` | How many videos to take from each channel, playlist or search query (newest first for channels). Single video URLs are always included. |
| `channelContentType` | string |  | `"videos"` | Which uploads to take from a channel. A tab in the channel URL (e.g. /@name/shorts) overrides this. |
| `maxTotalVideos` | integer |  | `1000` | Upper limit for the whole run, after removing duplicates. |
| `languages` | array |  | `["en"]` | Language codes in order of preference, e.g. en, es, pt-BR. en also matches en-US/en-GB. Leave empty to always get the video's original (spoken) language. |
| `fallbackToAnyLanguage` | boolean |  | `true` | If none of the preferred languages exists, return the transcript in the video's original language (manual captions first, then auto-generated). Turn off to get a free no_transcript row instead. |
| `autoTranslate` | boolean |  | `false` | If no transcript exists in your preferred languages, ask YouTube to machine-translate the original transcript into the first preferred language. If YouTube refuses the translation, the original language is returned and translationError is set. |
| `preferManualCaptions` | boolean |  | `true` | Pick creator-uploaded captions over auto-generated (ASR) ones in the same language. |
| `skipAutoGenerated` | boolean |  | `false` | Ignore auto-generated captions. Videos with only auto-generated captions get a free no_transcript row. |
| `outputFormats` | array |  | `["text", "segments"]` | Which transcript formats to include in each row. Every format is included in the same price. |
| `chunkSize` | integer |  | `2000` | Only for the RAG chunks format. Chunks follow caption boundaries (no cut words). 2,000 characters ≈ 400-500 tokens. |
| `chunkOverlap` | integer |  | `200` | Text repeated from the end of one chunk at the start of the next. |
| `includeDescription` | boolean |  | `true` | Add the video description and chapters (parsed from description timestamps). |
| `proxyConfiguration` | object |  | `{"useApifyProxy": true}` | Defaults to Apify datacenter proxy. Choose the RESIDENTIAL group to use residential IPs for the whole run. The Actor stays on the proxy you choose: if YouTube blocks it, it backs off and, after repeated blocks, stops early (videos it can't load go to the reliability fallback when that is on). It never switches proxies to get around a block. |
| `reliabilityFallback` | boolean |  | `true` | If YouTube blocks or rate-limits a video (bot check, HTTP 429, empty caption file), fetch its subtitles from a licensed backup source instead of returning an error. Charged at the normal transcript price; no extra cost to you. |
| `maxConcurrency` | integer |  | `20` | Videos processed in parallel. |
| `maxRetries` | integer |  | `6` | Each blocked request is retried on a new IP, with backoff. |
| `videoUrl` | string |  |  | Single video URL, same as videoUrl in pintostudio/youtube-transcript-scraper. Added to the URL list. |
| `targetLanguage` | string |  |  | Same as targetLanguage in pintostudio/youtube-transcript-scraper (e.g. en, es). Overrides Languages and turns on auto-translate. |
| `youtube_url` | string |  |  | Same as youtube_url in starvibe/youtube-video-transcript. Added to the URL list. |
| `channel_url` | string |  |  | Same as channel_url in starvibe/youtube-video-transcript. Added to the URL list. |
| `language` | string |  |  | Same as language in starvibe/youtube-video-transcript. Overrides Languages. |
| `max_videos` | integer |  |  | Same as max_videos in starvibe/youtube-video-transcript. Overrides Max videos per channel / playlist / search. |
| `start_date` | string |  |  | YYYY-MM-DD. Only videos published on or after this date are returned (others are skipped and not charged). |
| `end_date` | string |  |  | YYYY-MM-DD. Only videos published on or before this date are returned (others are skipped and not charged). |
| `include_transcript_text` | boolean |  |  | Accepted so starvibe/youtube-video-transcript inputs work unchanged. Use Output formats to choose what is returned. |

## Example input

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "maxVideos": 1,
  "channelContentType": "videos",
  "maxTotalVideos": 1000,
  "languages": [
    "en"
  ],
  "fallbackToAnyLanguage": true,
  "autoTranslate": false,
  "preferManualCaptions": true,
  "skipAutoGenerated": false,
  "outputFormats": [
    "text",
    "segments"
  ],
  "chunkSize": 2000,
  "chunkOverlap": 200,
  "includeDescription": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true,
  "maxConcurrency": 20,
  "maxRetries": 6
}
```

## Output fields

One flat row per result:

| Field | Type | Description |
|---|---|---|
| `videoId` | string | YouTube video ID |
| `url` | string | Video URL |
| `status` | string | ok, no_transcript, no_videos or error (only ok rows are charged) |
| `noTranscriptReason` | string | no_captions, language_not_available, only_auto_generated, video_unavailable, private_video, age_restricted, members_only, geo_restricted, live_not_started, login_required |
| `error` | string | Error or YouTube message |
| `title` | string | Video title |
| `channelName` | string | Channel name |
| `channelId` | string | Channel ID (UC...) |
| `channelUrl` | string | Channel URL |
| `publishDate` | string | Publish date (ISO 8601 with offset) |
| `durationSeconds` | integer | Duration in seconds |
| `duration` | string | Duration (m:ss or h:mm:ss) |
| `viewCount` | integer | View count |
| `category` | string | YouTube category |
| `isLive` | boolean | Live stream / was live |
| `isUnlisted` | boolean | Unlisted video |
| `description` | string | Video description |
| `chapters` | array | Chapters from description timestamps [{start, title}] |
| `language` | string | Transcript language code |
| `languageName` | string | Transcript language name |
| `originalLanguage` | string | Spoken (original) language |
| `languageMatch` | string | preferred = one of your languages, original = fallback to the original language |
| `isAutoGenerated` | boolean | Auto-generated (ASR) captions |
| `isTranslated` | boolean | Machine-translated by YouTube (autoTranslate) |
| `translatedFrom` | string | Source language of a translation |
| `translationError` | string | Why auto-translation failed (original returned) |
| `transcriptAvailable` | boolean | A transcript was returned |
| `text` | string | Full transcript as plain text |
| `wordCount` | integer | Words in the transcript |
| `segmentCount` | integer | Number of caption segments |
| `segments` | array | [{start, end, text}] in seconds |
| `timestampedText` | string | Transcript as [m:ss] lines |
| `srt` | string | SRT subtitles |
| `vtt` | string | WebVTT subtitles |
| `chunks` | array | RAG chunks [{index, text, start, end, url, chars}] |
| `availableLanguages` | array | All caption tracks [{code, name, isAutoGenerated}] |
| `source` | string | Input this video came from |
| `sourceType` | string | video, channel, playlist or search |
| `scrapedAt` | string | Scrape time (UTC) |

## Notes

- Auth: an Apify API token as `Authorization: Bearer <token>`; the MCP server also supports OAuth sign-in.
- Failed or empty results are not charged on most tools; check the pricing on the Store page.
- Questions: hello@wrenfielddata.com
- Apify Store links on this page are referral links. They may earn us a commission, at no extra cost to you.
