# Collect channel comments for audience research

**Use case:** 

Read the latest five public uploads from a YouTube channel and collect up to 50 comments per video. Compare audience questions, popular comments and video-level totals. Replace the sample channel to research your own audience or a competitor.

## Input

```json
{
  "startUrls": [
    "https://www.youtube.com/@3blue1brown"
  ],
  "searchQueries": [],
  "maxVideosPerChannel": 5,
  "maxVideosPerSearch": 10,
  "maxCommentsPerVideo": 50,
  "sortBy": "top",
  "includeReplies": false,
  "maxRepliesPerComment": 100,
  "detectLanguage": true,
  "keywords": [],
  "minLikes": 0,
  "creatorInteractionOnly": false,
  "monitorMode": false,
  "monitorStoreName": "youtube-comments-scraper-monitor",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "type": {
    "label": "Record type",
    "format": "string"
  },
  "videoTitle": {
    "label": "Video title",
    "format": "string"
  },
  "authorHandle": {
    "label": "Author handle",
    "format": "string"
  },
  "text": {
    "label": "Comment text",
    "format": "string"
  },
  "likeCount": {
    "label": "Likes",
    "format": "number"
  },
  "replyCount": {
    "label": "Reported replies",
    "format": "number"
  },
  "publishedAt": {
    "label": "Published at (UTC)",
    "format": "string"
  },
  "isPinned": {
    "label": "Pinned by creator",
    "format": "boolean"
  },
  "isHeartedByCreator": {
    "label": "Creator heart",
    "format": "boolean"
  },
  "isReply": {
    "label": "Reply",
    "format": "boolean"
  },
  "language": {
    "label": "Language",
    "format": "string"
  },
  "isNew": {
    "label": "Unseen in monitor",
    "format": "boolean"
  },
  "error": {
    "label": "Diagnostic message",
    "format": "string"
  },
  "commentUrl": {
    "label": "Comment URL",
    "format": "string"
  }
}
```

## How it works

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

The YouTube Comments Scraper — Replies, Shorts & Creator Hearts Actor is ready to run with the inputs already set for "Collect channel comments for audience research". [Sign up or log in](https://console.apify.com/create-task-from-example/nerwYvNgb3msGrZjm) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Collect channel comments for audience research" task

The YouTube Comments Scraper — Replies, Shorts & Creator Hearts Actor will start running based on the input automatically. You can also change all the input fields, like videos, shorts or channels, video search queries, and more, to match your specific use case.

### 3. Receive the "Collect channel comments for audience research" 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 record type, video title, author handle, 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 "Collect channel comments for audience research" task via API](https://apify.com/valev-lab/youtube-comments-scraper.md).

## FAQ

### Does a channel URL include every Short?

Channel inputs read the public Videos tab. Paste individual Shorts URLs or use the Shorts comments task when you need comments on Shorts.

### Are the summaries global top comments?

No. Each free video summary ranks the ten most-liked delivered rows. Limits, filters and newest sorting can exclude other comments.

## About this Actor

This example demonstrates how to use [YouTube Comments Scraper — Replies, Shorts & Creator Hearts](https://apify.com/valev-lab/youtube-comments-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/valev-lab/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/valev-lab/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`).
