# Get the transcript of a YouTube video as plain text

**Use case:** 

Paste a YouTube link and get the full transcript as clean text plus timestamped segments. Works with any video that has captions, including auto-generated ones.

## Input

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "languages": [
    "en"
  ],
  "fallbackToOriginal": true,
  "includeSegments": true,
  "includeSrt": false,
  "includeVtt": false,
  "maxVideos": 100
}
```

## Output

```json
{
  "videoId": {
    "label": "Video ID",
    "format": "text"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "channelName": {
    "label": "Channel",
    "format": "text"
  },
  "language": {
    "label": "Language",
    "format": "text"
  },
  "isGenerated": {
    "label": "Auto generated",
    "format": "boolean"
  },
  "matchedRequestedLanguage": {
    "label": "Requested language",
    "format": "boolean"
  },
  "segmentCount": {
    "label": "Segments",
    "format": "number"
  },
  "durationSeconds": {
    "label": "Video length (s)",
    "format": "number"
  },
  "text": {
    "label": "Transcript",
    "format": "text"
  },
  "url": {
    "label": "URL",
    "format": "link"
  },
  "scrapedAt": {
    "label": "Scraped at",
    "format": "date"
  }
}
```

## How it works

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

The YouTube Transcript API: Text, Timestamps, SRT & VTT Actor is ready to run with the inputs already set for "Get the transcript of a YouTube video as plain text". [Sign up or log in](https://console.apify.com/create-task-from-example/fpjmbgbsFeoRbFe6A) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Get the transcript of a YouTube video as plain text" task

The YouTube Transcript API: Text, Timestamps, SRT & VTT Actor will start running based on the input automatically. You can also change all the input fields, like video urls or ids, preferred languages, and more, to match your specific use case.

### 3. Receive the "Get the transcript of a YouTube video as plain text" 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, 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 "Get the transcript of a YouTube video as plain text" task via API](https://apify.com/apisamurai/youtube-transcript-api.md).

## FAQ

### Does the YouTube transcript task need a YouTube API key?

No. The YouTube transcript task reads the captions YouTube already shows, without an API key or login.

### How much does the YouTube transcript task cost?

The YouTube Transcript API charges $3.50 per 1,000 successful transcripts, on every plan. Videos without captions are not charged.

### What if a video has no captions?

The YouTube transcript task skips videos without captions and does not charge for them. It does not run speech recognition.

## About this Actor

This example demonstrates how to use [YouTube Transcript API: Text, Timestamps, SRT & VTT](https://apify.com/apisamurai/youtube-transcript-api.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/apisamurai/youtube-transcript-api.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/apisamurai/youtube-transcript-api.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`).
