# Download YouTube video transcripts as text and SRT

**Use case:** 

Downloads the transcript of each YouTube video as one plain text string and as an SRT subtitle file. Each row also has the title, channel, language, whether the captions are auto generated, word count and duration. Use the text for summaries and blog posts, and the SRT to edit or translate subtitles.

## Input

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=aircAruvnKk",
    "https://www.youtube.com/watch?v=UF8uR6Z6KLc"
  ],
  "searchQueries": [
    "how large language models work",
    "home espresso tutorial"
  ],
  "maxVideosPerSource": 20,
  "maxTranscripts": 0,
  "channelContentTypes": [
    "videos",
    "shorts",
    "streams"
  ],
  "searchSort": "relevance",
  "languages": [
    "en"
  ],
  "fallbackToAnyLanguage": true,
  "captionType": "any",
  "outputFormats": [
    "text",
    "srt"
  ],
  "includeWordTimestamps": false,
  "removeSoundTags": false,
  "includeDescription": false,
  "includeErrorItems": true,
  "oneRowPerChunk": false,
  "chunkSizeTokens": 400,
  "chunkOverlapTokens": 40,
  "onlyNewVideos": false,
  "monitorName": "default",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true,
  "maxConcurrency": 10,
  "maxRetries": 5
}
```

## Output

```json
{
  "title": {
    "label": "Title",
    "format": "string"
  },
  "language": {
    "label": "Language",
    "format": "string"
  },
  "isAutoGenerated": {
    "label": "Auto captions",
    "format": "boolean"
  },
  "text": {
    "label": "Transcript",
    "format": "string"
  },
  "url": {
    "label": "URL",
    "format": "string"
  }
}
```

## How it works

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

The YouTube Transcript Scraper: Subtitles, Channels, Search Actor is ready to run with the inputs already set for "Download YouTube video transcripts as text and SRT". [Sign up or log in](https://console.apify.com/create-task-from-example/ZuiaSmvKgtTAlNVKv) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Download YouTube video transcripts as text and SRT" task

The YouTube Transcript Scraper: Subtitles, Channels, Search Actor will start running based on the input automatically. You can also change all the input fields, like youtube urls or ids, search queries, and more, to match your specific use case.

### 3. Receive the "Download YouTube video transcripts as text and SRT" 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, language, auto captions, 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 video transcripts as text and SRT" task via API](https://apify.com/zhtech/youtube-transcript-scraper.md).

## FAQ

### What does the YouTube transcript to text and SRT task return?

The YouTube transcript to text and SRT task returns one row per video with the full transcript as plain text, an SRT subtitle string, title, channel, language, auto generated flag, word count and duration.

### How do I get other formats or languages?

Add markdown, VTT, segments or timestamped text to Transcript formats in the YouTube transcript to text and SRT task, and list language codes in Preferred transcript languages, for example es or de.

### Can I run the YouTube transcript to text and SRT task on a schedule or through the API?

Save the YouTube transcript to text and SRT task to your Apify account, then add it to an Apify Schedule (for example daily) or start it from the Apify API, webhooks, Zapier, Make, n8n or the Apify MCP server for AI agents.

### How much does the YouTube transcript to text and SRT task cost?

The YouTube transcript to text and SRT task is pay per event: a small start fee per run plus a fee per transcript saved. Videos without captions, private videos and blocked requests are free. Prices are on the Pricing tab.

## About this Actor

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