# YouTube transcripts for a list of videos (with timestamps)

**Use case:** 

Paste a list of YouTube video URLs and get one transcript per video: the full text, every segment with its start time and duration in seconds, and the caption languages the video has. This example reads five videos in five languages: English, Spanish, German, Portuguese and French. You pay per transcript, and videos without captions are never charged.

## Input

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=arj7oStGLkU",
    "https://www.youtube.com/watch?v=GkPFYufZ2oo",
    "https://www.youtube.com/watch?v=3IpcM5gqRM4",
    "https://www.youtube.com/watch?v=6aolLKTHo-I",
    "https://www.youtube.com/watch?v=xfP0a_Sli0Y"
  ],
  "language": null,
  "maxItems": 10
}
```

## Output

```json
{
  "url": {
    "label": "Video URL",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "language": {
    "label": "Language",
    "format": "string"
  },
  "isAutoGenerated": {
    "label": "Auto-generated",
    "format": "boolean"
  },
  "text": {
    "label": "Transcript",
    "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 transcripts for a list of videos (with timestamps)". [Sign up or log in](https://console.apify.com/create-task-from-example/6NQSAg1JzPvIcuRKh) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "YouTube transcripts for a list of videos (with timestamps)" task

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

### 3. Receive the "YouTube transcripts for a list of videos (with timestamps)" 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 url, title, language, 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 transcripts for a list of videos (with timestamps)" task via API](https://apify.com/xanthic_polygon/youtube-transcript-scraper.md).

## FAQ

### What does the output of this YouTube transcript task contain?

The YouTube transcripts for a list of videos task returns one row per video: the video URL, title, transcript language, whether the captions are auto-generated, the full text, and segments with start time and duration in seconds.

### What input does the task need?

The YouTube transcripts for a list of videos task needs only YouTube video URLs, one per line. Watch links, short links, Shorts, embed and live links are accepted. No API key and no login are needed.

### Which language are the transcripts in?

The YouTube transcripts for a list of videos task returns each transcript in the language spoken in the video. To get one language only, set Transcript language, for example en or es. A video without captions in it is reported and not charged.

### What happens when a video has no captions?

The YouTube transcripts for a list of videos task reports a video without captions in its own row with the error code NO_DATA. Failed videos are never charged: you pay only for transcripts that were saved.

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

Yes. Select Try for free to copy the YouTube transcripts for a list of videos task to your account. Then start it from Apify Console, on a schedule or with the Apify API, and export the transcripts as JSON, CSV or a spreadsheet file.

## About this Actor

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