# Collect new YouTube comments in a sentiment-ready format

**Use case:** 

Reads the newest comments under the recent videos of the channels you name and, with Only new videos and comments on, returns only the comments that arrived since the previous run. Each row has the comment text, author, likes, reply count and the video it belongs to, in a shape a sentiment or summariser step can use directly. Schedule it daily.

## Input

```json
{
  "channels": [
    "https://www.youtube.com/@TED"
  ],
  "videos": [],
  "mode": "comments",
  "onlyNewItems": true,
  "maxItems": 50,
  "includeChannelInfo": false,
  "maxVideosPerChannel": 3,
  "includeVideoStats": false,
  "maxCommentsPerVideo": 20,
  "maxCommentPages": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "debugSnapshot": false
}
```

## Output

```json
{
  "type": {
    "label": "Kind",
    "format": "string"
  },
  "title": {
    "label": "Channel / video",
    "format": "string"
  },
  "videoTitle": {
    "label": "Video (comment)",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "string"
  },
  "publishedAt": {
    "label": "Published",
    "format": "string"
  },
  "views": {
    "label": "Views",
    "format": "integer"
  },
  "likeCount": {
    "label": "Likes",
    "format": "integer"
  },
  "error.type": {
    "label": "No data",
    "format": "string"
  }
}
```

## How it works

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

The YouTube Channel Scraper & Monitor: New Videos, Stats & Comments Actor is ready to run with the inputs already set for "Collect new YouTube comments in a sentiment-ready format". [Sign up or log in](https://console.apify.com/create-task-from-example/gKVWuPsbukejJVUwh) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Collect new YouTube comments in a sentiment-ready format" task

The YouTube Channel Scraper & Monitor: New Videos, Stats & Comments Actor will start running based on the input automatically. You can also change all the input fields, like channels, videos, and more, to match your specific use case.

### 3. Receive the "Collect new YouTube comments in a sentiment-ready format" 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 kind, channel / video, video (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 "Collect new YouTube comments in a sentiment-ready format" task via API](https://apify.com/kizukidata/youtube-channel-monitor.md).

## FAQ

### What does the new YouTube comments task return?

The new YouTube comments task returns one row per comment posted since the previous run: comment text, author handle, like count, reply count, relative and computed time, and the video ID and title it belongs to.

### How are the comments ordered?

The new YouTube comments task asks YouTube for the Newest sort, and each row's sort field says which order YouTube offered. Comments already returned by an earlier run are skipped and not charged.

### Can I use the rows in a sentiment step?

The new YouTube comments task writes plain text with no HTML, so the text field can go straight into a classifier or summariser. Rows carry public usernames and text, so handle them under the data-protection rules that apply to you.

### What happens when a video has comments turned off?

The new YouTube comments task writes a status row with the reason for that video, does not charge for it, and retries the video on the next run. A bot check or consent page is reported the same way instead of leaving a silent gap.

## About this Actor

This example demonstrates how to use [YouTube Channel Scraper & Monitor: New Videos, Stats & Comments](https://apify.com/kizukidata/youtube-channel-monitor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/kizukidata/youtube-channel-monitor.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/kizukidata/youtube-channel-monitor.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`).
