# Download YouTube subtitles as SRT and VTT files

**Use case:** 

Returns the English subtitles of Sir Ken Robinson's TED talk Do schools kill creativity? as ready-to-save SRT and VTT files, one cue per caption, with the caption language and whether a person wrote them. Swap in your own video. Not affiliated with YouTube, Google or TED.

## Input

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=iG9CE55wbtY"
  ],
  "playlists": [],
  "channels": [],
  "find": [],
  "findMode": "snippets",
  "findContextSeconds": 15,
  "maxMatches": 10,
  "maxChars": 0,
  "startSegment": 0,
  "formats": [
    "srt",
    "vtt"
  ],
  "languages": [
    "en"
  ],
  "preferManual": true,
  "includeSignals": true,
  "chunkSize": 1500,
  "maxItems": 1,
  "onlyNewItems": false,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "title": {
    "label": "Title",
    "format": "string"
  },
  "channelName": {
    "label": "Channel",
    "format": "string"
  },
  "publishedAt": {
    "label": "Published",
    "format": "string"
  },
  "language": {
    "label": "Language",
    "format": "string"
  },
  "captionKind": {
    "label": "Captions",
    "format": "string"
  },
  "translated": {
    "label": "Translated",
    "format": "boolean"
  },
  "chapterCount": {
    "label": "Chapters",
    "format": "integer"
  },
  "chars": {
    "label": "Characters",
    "format": "integer"
  },
  "error.type": {
    "label": "No transcript",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The YouTube Transcript Scraper: Subtitles, Chapters & MCP Actor is ready to run with the inputs already set for "Download YouTube subtitles as SRT and VTT files". [Sign up or log in](https://console.apify.com/create-task-from-example/75iX7zah2pJfAJw0q) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Download YouTube subtitles as SRT and VTT files" task

The YouTube Transcript Scraper: Subtitles, Chapters & MCP Actor will start running based on the input automatically. You can also change all the input fields, like videos, playlists, and more, to match your specific use case.

### 3. Receive the "Download YouTube subtitles as SRT and VTT files" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as title, channel, published, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Download YouTube subtitles as SRT and VTT files" task via API](https://apify.com/kizukidata/youtube-transcripts.md).

## FAQ

### What does the subtitles task return?

One row per video with srt and vtt: subtitle text with a timestamp on each cue (SRT cues are also numbered), plus the caption language and whether a person wrote the captions or YouTube generated them.

### Can I get subtitles in another language?

Put codes such as ja or es in "Caption languages", in order. The video's own caption tracks are used and never machine-translated; languageNote says when the track differs from your request.

### What if the video has no captions?

The row says why, holds no srt or vtt, and is not charged.

### How do I save the files?

Copy the srt or vtt value of a dataset item into a .srt or .vtt file, or read the field through the API. Name only srt or only vtt in "Transcript formats" to get one file type.

## About this Actor

This example demonstrates how to use [YouTube Transcript Scraper: Subtitles, Chapters & MCP](https://apify.com/kizukidata/youtube-transcripts.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/kizukidata/youtube-transcripts.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/kizukidata/youtube-transcripts.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`).
