# Extract a YouTube Video Transcript

**Use case:** 

Extract a YouTube transcript with title, language, caption segments, timestamps, full text, word count, and the canonical video URL.

## Input

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "preferredLanguages": [
    "en"
  ],
  "includeAutoGenerated": true,
  "outputFormat": "text",
  "includeVideoMetadata": true,
  "maxVideos": 1
}
```

## Output

```json
{
  "duration_seconds": {
    "label": "Duration Seconds",
    "format": "text"
  },
  "word_count": {
    "label": "Word Count",
    "format": "number"
  },
  "character_count": {
    "label": "Character Count",
    "format": "number"
  },
  "segment_count": {
    "label": "Segment Count",
    "format": "number"
  }
}
```

## About this Actor

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