# Extract an English transcript from a YouTube video

**Use case:** 

Fetch available English captions for one public YouTube video, including auto-generated captions when available. The dataset groups timestamped caption segments by language.

## Input

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=prG9xFkvlNg"
  ],
  "languageMode": "specific",
  "language": "en",
  "fetchAutoGenerated": true,
  "maxRetries": 1,
  "proxyConfig": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  },
  "proxyRotationScope": "onError",
  "maxProxyRotations": 2
}
```

## Output

```json
{
  "video_id": {
    "label": "Video ID",
    "format": "string"
  },
  "url": {
    "label": "Video URL",
    "format": "string"
  },
  "supported_languages": {
    "label": "Supported languages",
    "format": "array"
  },
  "transcripts": {
    "label": "Transcripts",
    "format": "object"
  }
}
```

## How it works

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

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

### 2. Start the "Extract an English transcript from a YouTube video" task

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

### 3. Receive the "Extract an English transcript from a YouTube video" 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 video id, video url, supported languages, 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 "Extract an English transcript from a YouTube video" task via API](https://apify.com/fetchcraftlabs/youtube-subtitles-scraper.md).

## FAQ

### How do I extract English captions from a different YouTube video?

Replace the example with the public YouTube video URL. Set Language mode to Get by code and enter en to request English. Leave auto-generated captions enabled if you want YouTube’s automatic track when available.

### Does the YouTube transcript include timestamps?

Yes. The YouTube transcript task returns one dataset item per processed video. Each caption segment includes its text, start time, and duration in seconds, grouped by language.

### What if the video has no English captions?

Check which caption tracks are available on the video. Use Get all available to try the available languages. The task uses existing YouTube caption tracks, so it cannot transcribe audio when captions are unavailable.

## About this Actor

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