# YouTube Transcript Extraction

**Use case:** 

Effortlessly extract transcripts from YouTube videos, playlists, or channels in English. Receive clean, timestamped captions in structured JSON, CSV, Excel making it ideal for content analysis, research, and AI applications. This configuration supports both manual and auto-generated captions with a fallback for multi-language support.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    },
    {
      "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    },
    {
      "url": "https://www.youtube.com/watch?v=9bZkp7q19f0"
    }
  ],
  "language": "en",
  "languageFallback": true,
  "preferManualCaptions": true,
  "includeAutoGenerated": true,
  "includeTimestampedSegments": false,
  "includeRagChunks": false,
  "chunkSizeChars": 2000,
  "chunkOverlapChars": 200,
  "maxVideosPerChannel": 50,
  "maxVideosPerPlaylist": 200,
  "maxTotalVideos": 500,
  "maxConcurrency": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "status": {
    "label": "Status",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "channelName": {
    "label": "Channel",
    "format": "string"
  },
  "language": {
    "label": "Language",
    "format": "string"
  },
  "isAutoGenerated": {
    "label": "Auto-generated",
    "format": "boolean"
  },
  "isTranslated": {
    "label": "Translated",
    "format": "boolean"
  },
  "transcriptDurationSeconds": {
    "label": "Duration (s)",
    "format": "number"
  },
  "wordCount": {
    "label": "Words",
    "format": "number"
  },
  "characterCount": {
    "label": "Chars",
    "format": "number"
  },
  "url": {
    "label": "URL",
    "format": "string"
  },
  "errorCode": {
    "label": "Error",
    "format": "string"
  }
}
```

## How it works

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

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

### 2. Start the "YouTube Transcript Extraction" task

The YouTube Transcript Scraper Actor will start running based on the input automatically. You can also change all the input fields, like youtube urls, preferred transcript language, and more, to match your specific use case.

### 3. Receive the "YouTube Transcript Extraction" 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 status, title, channel, 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 "YouTube Transcript Extraction" task via API](https://apify.com/upadhyay.labs/youtube-transcript-scraper.md).

## FAQ

### What output fields does the YouTube Transcript Extraction task provide?

The YouTube Transcript Extraction task provides fields such as status, title, channel name, language, auto-generated status, translated status, transcript duration, word count, character count, URL, and any error code.

### How does the YouTube Transcript Extraction task handle different languages?

The task supports transcripts in multiple languages with automatic fallback options, providing transcripts in the requested language or a supported alternative.

### What types of captions can I extract using the YouTube Transcript Extraction task?

The task allows for extraction of both manual captions and auto-generated captions, with a preference for manual captions if available.

### Can I schedule the YouTube Transcript Extraction task to run automatically?

The YouTube Transcript Extraction task can be scheduled to run automatically in the Apify Console.

### What use cases are suitable for the YouTube Transcript Extraction task?

The task is suitable for content analysis, AI training data formation, market research, accessibility improvements, and turning video content into text-based resources.

### What is the maximum number of videos the YouTube Transcript Extraction task can process per run?

The task can process a maximum of 500 videos across all sources in a single run.

### What is the output format of transcripts from the YouTube Transcript Extraction task?

The output is structured in JSON or any other standard format on apify platform, providing clean and timestamped caption data.

## About this Actor

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