# YouTube Transcript API for AI Agents

**Use case:** 

A YouTube transcript API for AI agents and MCP. Returns structured JSON transcripts with metadata, ready for LLM pipelines and automation.

## Input

```json
{
  "urls": [
    {
      "url": "https://www.youtube.com/watch?v=pKgup8tsPv8"
    }
  ],
  "outputFormat": "json",
  "language": "en",
  "includeAutoGenerated": true,
  "includeMetadata": true,
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "videoId": {
    "label": "Video ID",
    "format": "text"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "channel": {
    "label": "Channel",
    "format": "text"
  },
  "language": {
    "label": "Language",
    "format": "text"
  },
  "segmentCount": {
    "label": "Segments",
    "format": "number"
  },
  "transcriptText": {
    "label": "Text Preview",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [YouTube Transcript API & Bulk Subtitle Downloader](https://apify.com/tugelbay/youtube-transcript) with a specific input configuration. Visit the [Actor detail page](https://apify.com/tugelbay/youtube-transcript) to learn more, explore other use cases, and run it yourself.