# YouTube Comments Scraper with AI – Sentiment, Ideas & Replies (`awsystems/youtube-comments-analyzer`) Actor

YouTube comments scraper with AI: every comment labeled (sentiment, emotion, intent, toxicity) plus a creator report per video with themes, complaints, questions, video ideas, quoted moments and replies to write. Channel audience reports and an HTML report. From $1 per 1,000 comments.

- **URL**: https://apify.com/awsystems/youtube-comments-analyzer.md
- **Developed by:** [Manuel Rodriguez](https://apify.com/awsystems) (community)
- **Categories:** Social media, AI, Videos
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 comment analyzeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## YouTube Comments Scraper with AI – Sentiment, Ideas & Replies

Scrape the comments of any YouTube video, Short or channel and let AI read every one of them. You get each comment labeled (sentiment, emotion, intent, toxicity, buying intent, language) and a creator-ready report per video: what viewers love, what they complain about, the questions they keep asking, the videos they are asking for, the moments they quote, the comments worth replying to (with a draft reply) and an action plan. Add a channel and you also get an **audience report** across its latest videos.

Built for YouTubers, content strategists, agencies and brands, and for developers who need comments with clean AI labels in a dataset.

### Why this one

- **Real numbers, not AI guesses.** Every comment is labeled first; percentages, counts and timelines are counted from those labels. The AI then writes the report and every group it makes (a theme, a complaint, a question, an idea) points to the real comments behind it, with the count, the likes and up to three quotes.
- **Creator insights, not just rows.** Video ideas, Shorts ideas, content gaps, corrections viewers point out, debates, products and brands mentioned, monetization angles, title and thumbnail feedback, a comment to pin and testimonials you can quote.
- **One price per comment, AI included.** Cheaper than many plain comment scrapers, with the labels and the counts on top.
- **A shareable HTML report** for every run, ready to send to a client or a team.

### What you get

#### For every video (`type: "video"`)

| Field | What it is |
|---|---|
| `title`, `channel`, `channelUrl`, `thumbnailUrl`, `url` | The video, with its original title |
| `commentsAnalyzed`, `sortedBy` | How many comments were read and labeled, top or latest |
| `stats.sentiment`, `stats.netSentiment`, `stats.likeWeightedNetSentiment` | Share of positive, neutral, negative and mixed comments, and net sentiment from -100 to 100 (also weighted by likes) |
| `stats.emotions`, `stats.intents` | Main emotions (joy, gratitude, curiosity, frustration…) and intents (praise, question, complaint, suggestion, video request, correction, spam…) with counts and shares |
| `stats.questions`, `stats.complaints`, `stats.videoRequests`, `stats.suggestions`, `stats.corrections` | Counts of each kind of comment |
| `stats.toxicPercent`, `stats.spamPercent`, `stats.toModerate` | Toxic and spam share, and the comments to review or hide |
| `stats.buyingIntentComments`, `stats.languages` | Comments asking where to buy, the price or a link; languages of the audience |
| `stats.topMoments` | Timestamps viewers quote (`2:31`), with how many comments and likes |
| `stats.superfans`, `stats.creatorComments`, `stats.creatorHearts` | Viewers who comment the most, and the creator's own activity |
| `stats.timeline` | Comments and net sentiment per day (or week) |
| `report.summary`, `report.oneLine`, `report.mood` | What the comment section says, in a paragraph and in one line |
| `report.audience` | Who comments, their level, what they value and their pain points |
| `report.themes`, `report.praise`, `report.complaints` | What they talk about, love and dislike (complaints with category, severity and a fix) |
| `report.questions` | The questions viewers ask, grouped, with how to address each one |
| `report.videoIdeas`, `report.shortsIdeas`, `report.contentGaps` | Videos and Shorts the audience is asking for, with demand and evidence |
| `report.corrections`, `report.debates`, `report.mentions` | Mistakes viewers point out, disagreements, and products, tools, brands or people mentioned |
| `report.moments` | What viewers say about each quoted moment |
| `report.titleAndThumbnail`, `report.monetization` | Clickbait perception, product or sponsor angles and how viewers took the ad read |
| `report.repliesToWrite`, `report.pinnedComment`, `report.testimonials` | Comments worth answering with a draft reply in the commenter's language, a comment to pin, and praise you can quote |
| `report.actionPlan`, `report.nextVideo`, `report.communityHealth` | What to do next, the next video to make (title and hook) and the state of the community |
| `comments` | Every comment with its text, likes, replies, date, author and its AI labels: `sentiment`, `emotion`, `intent`, `toxic`, `buyingIntent`, `language`, `timestamps` |

Each group in the report comes with `comments` (how many), `likes`, `commentIds` and `examples` (the three most liked).

#### For a channel or a list of videos (`type: "audience-report"`)

With a channel, or two or more videos, you also get one report across them: who the audience is, recurring themes, recurring complaints and requests (with the videos where they appear), the best and worst received videos and why, the 10 best video ideas and a content strategy.

#### HTML report

The run's key-value store has a `REPORT` page with everything above, ready to print or share.

### How to use it

1. Paste video or Shorts links in **YouTube video links**, and/or channels in **Channels** (`https://www.youtube.com/@name` or `@name`) with how many of their latest videos to analyze.
2. Choose **Comments per video** (default 500) and whether you want the **top** or the **latest** comments.
3. Pick the **language of the report**. Optionally write a line **about your channel** so the ideas, replies and monetization tips fit you.
4. Run it. A video with 500 comments takes about a minute; several videos run at once.

Results are in the **Overview** and **Creator insights** tabs, and can be downloaded as JSON, CSV or Excel. The output tab also links the HTML report.

#### Example (shortened, from a real run; the report text was written in Spanish and is translated here)

```json
{
  "type": "video",
  "title": "Can You Trust MKBHD?",
  "commentsAnalyzed": 1000,
  "stats": {
    "netSentiment": 26,
    "sentiment": { "positive": 48.8, "neutral": 26.4, "negative": 22.9, "mixed": 1.9 },
    "questions": 87,
    "videoRequests": 29,
    "topMoments": [{ "clock": "0:10", "mentions": 4, "likes": 35 }]
  },
  "report": {
    "oneLine": "A transparent look at MKBHD's integrity that reaffirms his long-time audience's loyalty.",
    "themes": [{ "name": "Integrity and trust", "sentiment": "positive", "comments": 88, "likes": 4004 }],
    "videoIdeas": [{ "title": "The truth about exclusive access in tech", "demand": "high", "comments": 3 }],
    "repliesToWrite": [{ "comment": "15+ years, 1,800 videos, and still the gold standard of tech YouTube…", "reply": "Thank you so much for the constant support over these 15 years!" }]
  }
}
```

### Pricing

You pay per comment analyzed (scraping and AI labels included) and per report. Videos with no readable comments, private or removed videos and reports that fail are **not charged**. The run stops at your spending limit and never goes over it.

| Your Apify plan | Per 1,000 comments | Per video report | Per audience report |
|---|---|---|---|
| Free | $1.50 | $0.04 | $0.08 |
| Starter (Bronze) | $1.20 | $0.03 | $0.06 |
| Scale (Silver) | $1.10 | $0.027 | $0.05 |
| Business (Gold) and above | $1.00 | $0.025 | $0.045 |

Example on Starter: a video with 500 comments costs $0.60 + $0.03 = **$0.63**. A channel's 5 latest videos with 300 comments each cost about **$2.01** with the audience report.

Free Apify plans analyze up to 3 videos and 200 comments per video per run.

### Good to know

- Replies to comments are not included; top-level comments only.
- Comments are read as YouTube shows them; very new comments may not appear yet.
- Labels and reports are written by AI: they are very good at patterns across hundreds of comments, but check a draft reply before you post it.
- Quoted moments (`2:31`) are found in the comment text, so they work in any language.
- Want to know which videos to analyze first? Our **YouTube Outlier Finder** finds the videos that beat a channel's usual views.

### Questions or ideas

Open an issue in the **Issues** tab: we answer quickly and add what people ask for.

# Actor input Schema

## `videoUrls` (type: `array`):

Videos or Shorts to analyze, one per line (watch, youtu.be and /shorts/ links work). Up to 200 videos per run, counting the channels' videos.

## `channelUrls` (type: `array`):

Channels whose latest videos are analyzed, such as https://www.youtube.com/@name or @name. You also get one audience report per channel.

## `videosPerChannel` (type: `integer`):

How many of each channel's latest videos (not Shorts) to analyze (1 to 50).

## `maxCommentsPerVideo` (type: `integer`):

Most comments read and labeled per video (20 to 5,000). Replies are not included. Videos with fewer comments are charged only for the comments they have.

## `sortBy` (type: `string`):

Top comments (most liked and relevant) or the latest ones.

## `outputLanguage` (type: `string`):

Language of summaries, ideas, replies and plans. Quoted comments stay as written.

## `creatorContext` (type: `string`):

A line or two about your channel, audience or what you sell, so the video ideas, replies and monetization tips fit you. Example: Spanish tech channel for junior developers; I sell a JavaScript course.

## `audienceReport` (type: `boolean`):

With two or more videos (or a channel), also write one report across them: recurring themes, complaints and requests, best and worst received videos, the 10 best video ideas and a content strategy. Charged once per channel or list of videos.

## `includeComments` (type: `boolean`):

Return every comment with its AI labels (sentiment, emotion, intent, toxicity, buying intent, language, quoted moments) inside each video's result.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=C6QXAIoMSmU"
  ],
  "videosPerChannel": 5,
  "maxCommentsPerVideo": 500,
  "sortBy": "top",
  "outputLanguage": "same as comments",
  "audienceReport": true,
  "includeComments": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `report` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "videoUrls": [
        "https://www.youtube.com/watch?v=C6QXAIoMSmU"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("awsystems/youtube-comments-analyzer").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "videoUrls": ["https://www.youtube.com/watch?v=C6QXAIoMSmU"] }

# Run the Actor and wait for it to finish
run = client.actor("awsystems/youtube-comments-analyzer").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "videoUrls": [
    "https://www.youtube.com/watch?v=C6QXAIoMSmU"
  ]
}' |
apify call awsystems/youtube-comments-analyzer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,awsystems/youtube-comments-analyzer"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/DnAgnGI7HSobpIdlg/builds/n1JUbi4G3s0IyUkQq/openapi.json
