# Extract YouTube transcripts for AI search

**Use case:** 

Pull YouTube transcripts and captions from selected videos for AI search, summaries, and content analysis.

## Input

```json
{
  "mode": "transcript",
  "channelUrls": [
    "https://www.youtube.com/@MrBeast"
  ],
  "searchQuery": "AI tutorials",
  "videoUrls": [
    "https://www.youtube.com/watch?v=aircAruvnKk"
  ],
  "maxVideos": 1,
  "includeComments": false,
  "maxCommentsPerVideo": 10,
  "includeTranscripts": true,
  "transcriptLanguages": [
    "en"
  ],
  "generateChapters": false,
  "sortVideosBy": "popular",
  "enableAiAnalysis": false,
  "llmProvider": "openrouter",
  "ollamaBaseUrl": "http://localhost:11434",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "title": {
    "label": "Title",
    "format": "string"
  },
  "channel_name": {
    "label": "Channel Name",
    "format": "string"
  },
  "view_count": {
    "label": "View Count",
    "format": "integer"
  },
  "like_count": {
    "label": "Like Count",
    "format": "integer"
  },
  "comment_count": {
    "label": "Comment Count",
    "format": "integer"
  },
  "duration_text": {
    "label": "Duration (text)",
    "format": "string"
  },
  "published_date": {
    "label": "Published Date",
    "format": "string"
  },
  "engagement_rate": {
    "label": "Engagement Rate (%)",
    "format": "number"
  },
  "url": {
    "label": "URL",
    "format": "string"
  }
}
```

## About this Actor

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