# YouTube Comments Rick Astley Scraper

**Use case:** 

Scrape YouTube video comments with author name, comment text, like count, published date, reply threads, and video URL. Export to JSON or CSV.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    }
  ],
  "maxItems": 50,
  "includeReplies": true,
  "maxRepliesPerComment": 100,
  "aiEnhancement": false
}
```

## Output

```json
{
  "authorThumbnailUrl": {
    "label": "Avatar",
    "format": "image"
  },
  "type": {
    "label": "Type",
    "format": "text"
  },
  "authorName": {
    "label": "Author",
    "format": "text"
  },
  "text": {
    "label": "Comment",
    "format": "text"
  },
  "videoUrl": {
    "label": "Video URL",
    "format": "link"
  },
  "likeCount": {
    "label": "Likes",
    "format": "number"
  },
  "replyCount": {
    "label": "Replies",
    "format": "number"
  },
  "publishedTimeText": {
    "label": "Published",
    "format": "text"
  },
  "isPinned": {
    "label": "Pinned",
    "format": "boolean"
  },
  "isVerified": {
    "label": "Verified",
    "format": "boolean"
  },
  "authorUrl": {
    "label": "Author URL",
    "format": "link"
  },
  "isEdited": {
    "label": "Edited",
    "format": "boolean"
  },
  "sentimentLabel": {
    "label": "Sentiment",
    "format": "text"
  },
  "sentimentScore": {
    "label": "Sentiment Score",
    "format": "number"
  },
  "confidence": {
    "label": "Confidence",
    "format": "number"
  },
  "toxicityScore": {
    "label": "Toxicity",
    "format": "number"
  },
  "emotionLabel": {
    "label": "Emotion",
    "format": "text"
  },
  "language": {
    "label": "Language",
    "format": "text"
  },
  "commentId": {
    "label": "Comment ID",
    "format": "text"
  },
  "parentId": {
    "label": "Parent ID",
    "format": "text"
  },
  "videoId": {
    "label": "Video ID",
    "format": "text"
  },
  "authorId": {
    "label": "Author ID",
    "format": "text"
  },
  "publishedAt": {
    "label": "Published Date",
    "format": "date"
  },
  "scrapedAt": {
    "label": "Scraped",
    "format": "date"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

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