# Scrape YouTube comments on product reviews for sentiment

**Use case:** 

Searches YouTube for product review videos and collects the top comments of each one: text, likes, reply count, author, publish time and whether the creator hearted or pinned it. Feed the comments to a sentiment model or an LLM to see what buyers praise and complain about.

## Input

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "https://youtu.be/dQw4w9WgXcQ",
    "https://www.youtube.com/shorts/V_uq3v6xK-4",
    "https://www.youtube.com/@3blue1brown",
    "https://www.youtube.com/playlist?list=PLZHQObOWTQDNU6R1_67000Dx_ZCJB-3pi"
  ],
  "searchQueries": [
    "robot vacuum review"
  ],
  "maxVideosPerSource": 3,
  "channelContentTypes": [
    "videos",
    "shorts",
    "streams"
  ],
  "searchSort": "relevance",
  "maxCommentsPerVideo": 30,
  "sortBy": "top",
  "includeReplies": false,
  "maxRepliesPerThread": 10,
  "keywords": [
    "price",
    "battery"
  ],
  "skipPinnedComment": false,
  "includeErrorItems": true,
  "maxComments": 0,
  "maxConcurrency": 8,
  "maxRetries": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true
}
```

## Output

```json
{
  "authorAvatarUrl": {
    "label": "Avatar",
    "format": "string"
  },
  "authorName": {
    "label": "Author",
    "format": "string"
  },
  "text": {
    "label": "Comment",
    "format": "string"
  },
  "likeCount": {
    "label": "Likes",
    "format": "integer"
  },
  "replyCount": {
    "label": "Replies",
    "format": "integer"
  },
  "isPinned": {
    "label": "Pinned",
    "format": "boolean"
  },
  "isHeartedByCreator": {
    "label": "Hearted",
    "format": "boolean"
  },
  "isReply": {
    "label": "Reply",
    "format": "boolean"
  },
  "publishedTimeText": {
    "label": "Posted",
    "format": "string"
  },
  "videoTitle": {
    "label": "Video",
    "format": "string"
  },
  "commentUrl": {
    "label": "Link",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The YouTube Comments Scraper: Replies, Shorts, Channels Actor is ready to run with the inputs already set for "Scrape YouTube comments on product reviews for sentiment". [Sign up or log in](https://console.apify.com/create-task-from-example/IDcgZu7YPmZ5ZvRxv) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Scrape YouTube comments on product reviews for sentiment" task

The YouTube Comments Scraper: Replies, Shorts, Channels Actor will start running based on the input automatically. You can also change all the input fields, like youtube urls or ids, search queries, and more, to match your specific use case.

### 3. Receive the "Scrape YouTube comments on product reviews for sentiment" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as avatar, author, comment, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Scrape YouTube comments on product reviews for sentiment" task via API](https://apify.com/zhtech/youtube-comments-scraper.md).

## FAQ

### What does the YouTube product review comments task return?

The YouTube product review comments task returns one row per comment with video title and URL, comment text, likes, reply count, author name and channel, relative publish time, and hearted and pinned flags.

### How do I research another product?

Change Search queries in the YouTube product review comments task, for example standing desk review, and raise Max comments per video for a bigger sample.

### Can I run the YouTube product review comments task on a schedule or through the API?

Save the YouTube product review comments task to your Apify account, then add it to an Apify Schedule (for example daily) or start it from the Apify API, webhooks, Zapier, Make, n8n or the Apify MCP server for AI agents.

### How much does the YouTube product review comments task cost?

The YouTube product review comments task is pay per event: a small start fee per run plus a fee per comment saved. Error rows for videos with comments off are free. Prices are on the Pricing tab.

## About this Actor

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


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/zhtech/youtube-comments-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
