# Download YouTube subtitles in a chosen language

**Use case:** 

Gets YouTube subtitles in the language you pick, with start times and durations for every line. The uploader's subtitles come first, then YouTube's automatic captions; each row lists every language the video has. The example asks for Spanish.

## Input

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=g6Die8gVFn0"
  ],
  "language": "es",
  "maxVideosPerChannel": 5,
  "onlyNewVideos": true,
  "includeTimestamps": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "isNew": {
    "label": "New",
    "format": "boolean"
  },
  "channelName": {
    "label": "Channel",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "publishedAt": {
    "label": "Published",
    "format": "string"
  },
  "durationSeconds": {
    "label": "Duration (s)",
    "format": "integer"
  },
  "viewCount": {
    "label": "Views",
    "format": "integer"
  },
  "availableLanguages": {
    "label": "Available languages",
    "format": "array"
  },
  "description": {
    "label": "Description",
    "format": "string"
  },
  "url": {
    "label": "URL",
    "format": "string"
  }
}
```

## How it works

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

The YouTube Transcript Scraper & New Videos Monitor Actor is ready to run with the inputs already set for "Download YouTube subtitles in a chosen language". [Sign up or log in](https://console.apify.com/create-task-from-example/0pQewPNmM8StccuJ5) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Download YouTube subtitles in a chosen language" task

The YouTube Transcript Scraper & New Videos Monitor Actor will start running based on the input automatically. You can also change all the input fields, like videos, channels or playlists, transcript language, and more, to match your specific use case.

### 3. Receive the "Download YouTube subtitles in a chosen language" 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 new, channel, title, 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 in a chosen language" task via API](https://apify.com/babymum7/youtube-transcript-monitor.md).

## FAQ

### What if the video has no subtitles in my language?

The subtitles by language task then returns the video's main language and lists every language it does have in availableLanguages, so you can run it again with one of them.

### Can I get SRT files?

The subtitles by language task returns each subtitle line with its start and duration in seconds in the segments field, which converts to SRT or VTT in a few lines of code.

### How much does this task cost to run?

The subtitles by language task is billed per transcript returned: 0.0015 USD per video, or 1.50 USD per 1,000. Videos without captions are listed for free.

### Can I run it on a schedule or through the API?

Yes. Save the subtitles by language task to your account, add a schedule in Apify Console, or start it from the Apify API, Make, Zapier or n8n with the same input.

## About this Actor

This example demonstrates how to use [YouTube Transcript Scraper & New Videos Monitor](https://apify.com/babymum7/youtube-transcript-monitor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/babymum7/youtube-transcript-monitor.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/babymum7/youtube-transcript-monitor.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`).
