# Scrape comments from a YouTube video

**Use case:** 

Extract YouTube comments with text, author, likes, replies, and video metadata for any public video URL.

## Input

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "maxCommentsPerVideo": 100,
  "sortBy": "newest"
}
```

## Output

```json
{
  "authorHandle": {
    "label": "Author",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "likes": {
    "label": "Likes",
    "format": "integer"
  },
  "replies": {
    "label": "Replies",
    "format": "integer"
  },
  "hasCreatorHeart": {
    "label": "Creator heart",
    "format": "boolean"
  },
  "videoTitle": {
    "label": "Video title",
    "format": "string"
  },
  "videoUrl": {
    "label": "Video URL",
    "format": "string"
  },
  "scrapedAt": {
    "label": "Scraped at",
    "format": "string"
  }
}
```

## About this Actor

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