# YouTube Comments Scraper for Sentiment Analysis

**Use case:** 

Collect top comments and replies from YouTube videos for sentiment analysis. Get structured data with video and channel details.

## Input

```json
{
  "directUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "includeVideoDetails": true,
  "includeChannelInfo": true,
  "maxComments": 100,
  "includeReplies": true,
  "replyLevel": "1",
  "maxRepliesPerLevel": 5,
  "commentsSortBy": "top",
  "commentsDateRangeDate": ""
}
```

## Output

```json
{
  "inputUrl": {
    "label": "Input url"
  },
  "normalizedUrl": {
    "label": "Normalized url"
  },
  "videoId": {
    "label": "Video id"
  },
  "contentType": {
    "label": "Content type"
  },
  "status": {
    "label": "Status"
  },
  "collectedAt": {
    "label": "Collected at"
  }
}
```

## About this Actor

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