# Download a YouTube playlist's subtitles as SRT and VTT files

**Use case:** 

The English subtitles of the first 5 videos of a YouTube playlist (3Blue1Brown's Essence of linear algebra here), written as files to the run's storage: `<videoId>.txt`, `.srt` and `.vtt` for each video, with their links on the row (`files`), and the SRT and WebVTT text on the row as well. The files are free; each transcript is charged once.

## Input

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "channels": [],
  "playlists": [
    "https://www.youtube.com/playlist?list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab"
  ],
  "searchQueries": [],
  "maxVideosPerSource": 5,
  "channelContent": "all",
  "dateFrom": "",
  "dateTo": "",
  "minDurationSeconds": 0,
  "maxDurationSeconds": 0,
  "languages": [
    "en"
  ],
  "trackKind": "manual_first",
  "allTracks": false,
  "outputFormats": [
    "srt",
    "vtt"
  ],
  "chunkSize": 1000,
  "includeSegments": true,
  "saveFiles": true,
  "translateTo": "",
  "transcribeMissing": false,
  "maxComments": 0,
  "maxItems": 0,
  "onlyNew": false,
  "stateStoreName": ""
}
```

## Output

```json
{
  "status": {
    "label": "Status",
    "format": "string"
  },
  "reason": {
    "label": "Reason",
    "format": "string"
  },
  "video_id": {
    "label": "Video id",
    "format": "string"
  },
  "video_url": {
    "label": "Video URL",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "channel_name": {
    "label": "Channel",
    "format": "string"
  },
  "channel_id": {
    "label": "Channel id",
    "format": "string"
  },
  "channel_url": {
    "label": "Channel URL",
    "format": "string"
  },
  "channel_handle": {
    "label": "Channel handle",
    "format": "string"
  },
  "channel_subscribers": {
    "label": "Subscribers",
    "format": "string"
  },
  "publish_date": {
    "label": "Published",
    "format": "string"
  },
  "published_at": {
    "label": "Published at",
    "format": "string"
  },
  "duration_s": {
    "label": "Duration (s)",
    "format": "integer"
  },
  "view_count": {
    "label": "Views",
    "format": "integer"
  },
  "like_count": {
    "label": "Likes",
    "format": "integer"
  },
  "category": {
    "label": "Category",
    "format": "string"
  },
  "keywords": {
    "label": "Keywords",
    "format": "array"
  },
  "description": {
    "label": "Description",
    "format": "string"
  },
  "thumbnail_url": {
    "label": "Thumbnail",
    "format": "string"
  },
  "is_live_content": {
    "label": "Live content",
    "format": "boolean"
  },
  "language": {
    "label": "Language",
    "format": "string"
  },
  "language_name": {
    "label": "Language name",
    "format": "string"
  },
  "requested_language": {
    "label": "Requested language",
    "format": "string"
  },
  "language_note": {
    "label": "Language note",
    "format": "string"
  },
  "track_kind": {
    "label": "Track kind",
    "format": "string"
  },
  "is_auto_generated": {
    "label": "Auto-generated",
    "format": "boolean"
  },
  "transcript_source": {
    "label": "Transcript source",
    "format": "string"
  },
  "segment_count": {
    "label": "Segments",
    "format": "integer"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "word_count": {
    "label": "Words",
    "format": "integer"
  },
  "char_count": {
    "label": "Characters",
    "format": "integer"
  },
  "segments": {
    "label": "Segments (timed)",
    "format": "array"
  },
  "srt": {
    "label": "SRT",
    "format": "string"
  },
  "vtt": {
    "label": "WebVTT",
    "format": "string"
  },
  "paragraphs": {
    "label": "Paragraphs",
    "format": "array"
  },
  "chunks": {
    "label": "Chunks",
    "format": "array"
  },
  "markdown": {
    "label": "Markdown",
    "format": "string"
  },
  "chapters": {
    "label": "Chapters",
    "format": "array"
  },
  "tracks": {
    "label": "Tracks",
    "format": "array"
  },
  "translation_languages": {
    "label": "YouTube translation languages",
    "format": "array"
  },
  "other_tracks": {
    "label": "Other tracks",
    "format": "array"
  },
  "translation": {
    "label": "Translation",
    "format": "object"
  },
  "speech_to_text_seconds": {
    "label": "Speech-to-text seconds",
    "format": "number"
  },
  "comments": {
    "label": "Comments",
    "format": "array"
  },
  "files": {
    "label": "Files",
    "format": "object"
  },
  "notes": {
    "label": "Notes",
    "format": "array"
  },
  "source_type": {
    "label": "Source type",
    "format": "string"
  },
  "source": {
    "label": "Source",
    "format": "string"
  },
  "source_position": {
    "label": "Position",
    "format": "integer"
  },
  "scraped_at": {
    "label": "Scraped at",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [YouTube Video Transcript Scraper: Captions, Subtitles, SRT](https://apify.com/hyperbach/youtube-transcript-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/hyperbach/youtube-transcript-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/hyperbach/youtube-transcript-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
