# YouTube Video Metadata Extractor

**Use case:** 

Extract metadata and comments from specific YouTube video URLs or IDs, including views, likes, channel, thumbnails, and publish date.

## Input

```json
{
  "searchQueries": [
    "javascript tutorial"
  ],
  "videoUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "maxResults": 10,
  "maxComments": 20,
  "sortBy": "relevance",
  "language": "en",
  "country": "US"
}
```

## Output

```json
{
  "thumbnailUrl": {
    "label": "Thumbnail",
    "format": "image"
  },
  "title": {
    "label": "Title"
  },
  "url": {
    "label": "URL",
    "format": "link"
  },
  "channelName": {
    "label": "Channel"
  },
  "viewCount": {
    "label": "Views",
    "format": "number"
  },
  "likeCount": {
    "label": "Likes",
    "format": "number"
  },
  "duration": {
    "label": "Duration"
  },
  "publishedAt": {
    "label": "Published"
  },
  "category": {
    "label": "Category"
  }
}
```

## About this Actor

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