# Scrape All Comments Under a YouTube Video

**Use case:** 

Export YouTube comments with author, text, likes, timestamp and replies — mine audience objections and measure sentiment on any video at scale.

## Input

```json
{
  "searchType": "comments",
  "startUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "searchQueries": [],
  "youtubeHandles": [],
  "maxItems": 0,
  "sort": "relevance",
  "uploadDate": "all",
  "videoDuration": "all",
  "videoType": "all",
  "features": [],
  "maxResults": 30,
  "maxResultsShorts": 0,
  "maxResultStreams": 0,
  "includePlaylists": false,
  "oldestPostDate": "",
  "maxComments": 500,
  "commentsSort": "top",
  "includeReplies": true,
  "downloadSubtitles": false,
  "subtitlesLanguage": "en",
  "subtitlesFormat": "srt",
  "preferAutoGeneratedSubtitles": false,
  "saveSubsToKVS": false,
  "gl": "US",
  "hl": "en",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "customProxyUrl": "",
  "maxRetries": 5
}
```

## Output

```json
{
  "comment": {
    "label": "Comment",
    "format": "array"
  },
  "author": {
    "label": "Author",
    "format": "array"
  },
  "voteCount": {
    "label": "Vote count",
    "format": "array"
  },
  "replyCount": {
    "label": "Reply count",
    "format": "array"
  },
  "type": {
    "label": "Type",
    "format": "array"
  },
  "videoId": {
    "label": "Video id",
    "format": "array"
  },
  "cid": {
    "label": "Cid",
    "format": "array"
  }
}
```

## About this Actor

This example demonstrates how to use [YouTube Scraper API — Videos, Transcripts, Comments & Channels](https://apify.com/pro100chok/youtube-scraper-all-in-one) with a specific input configuration. Visit the [Actor detail page](https://apify.com/pro100chok/youtube-scraper-all-in-one) to learn more, explore other use cases, and run it yourself.