# Extract a YouTube Video Transcript

**Use case:** 

Get timestamped transcript segments from a YouTube video URL or ID with automatic caption fallback.

## Input

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "language": "en",
  "includeAutoGenerated": true,
  "mergeSegments": false,
  "maxVideosPerChannel": 10
}
```

## Output

```json
{
  "videoId": {
    "label": "Video ID",
    "format": "text"
  },
  "videoTitle": {
    "label": "Title",
    "format": "text"
  },
  "videoUrl": {
    "label": "URL",
    "format": "link"
  },
  "channelName": {
    "label": "Channel",
    "format": "text"
  },
  "language": {
    "label": "Language",
    "format": "text"
  },
  "selectedLanguage": {
    "label": "Selected Language",
    "format": "text"
  },
  "isAutoGenerated": {
    "label": "Auto-generated",
    "format": "boolean"
  },
  "segmentCount": {
    "label": "Segments",
    "format": "number"
  },
  "durationSeconds": {
    "label": "Duration (s)",
    "format": "number"
  },
  "viewCount": {
    "label": "Views",
    "format": "number"
  },
  "likeCount": {
    "label": "Likes",
    "format": "number"
  },
  "commentCount": {
    "label": "Comments",
    "format": "number"
  },
  "subscriberCount": {
    "label": "Subscribers",
    "format": "text"
  },
  "publishDate": {
    "label": "Published",
    "format": "text"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

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