# YouTube Comments Scraper & Monitor (`lagenuina_agency/youtube-comments-scraper`) Actor

YouTube comments API: every comment and reply with author, likes, reply count, creator heart, pinned flag and date. Videos, Shorts, channels or playlists. Monitor mode returns only new comments since the last run. Drop-in for streamers/youtube-comments-scraper. Errors are free.

- **URL**: https://apify.com/lagenuina_agency/youtube-comments-scraper.md
- **Developed by:** [Quelli di Carne Genuina](https://apify.com/lagenuina_agency) (community)
- **Categories:** Social media, Videos, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 comments

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 & Monitor

A fast **YouTube comments API** without quotas or API keys. Paste video, Shorts, channel or playlist URLs and get **every comment** (and, if you want, **every reply**) with author, channel ID, likes, reply count, **creator heart**, **pinned** flag, edited flag and posting date. Sort by newest or top, keep only comments after a date, and switch on **monitor mode** to receive **only the comments posted since your last run**. Drop-in replacement for `streamers/youtube-comments-scraper`, for less on every plan.

> Independent tool, not affiliated with or endorsed by YouTube or Google LLC. It reads the public comments anyone can see on youtube.com without signing in.

### What you get

One row per comment or reply (real result from a test run, avatar URL cut):

```json
{
  "comment": "which athlete should I face next?",
  "cid": "UgwXUN1sDw0uDWzr8w14AaABAg",
  "author": "@MrBeast",
  "videoId": "_c2e1NcI3Sc",
  "pageUrl": "https://www.youtube.com/watch?v=_c2e1NcI3Sc",
  "title": "Beat Professional Athlete, Win $100,000",
  "commentsCount": 61000,
  "channel": "MrBeast",
  "authorChannelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
  "authorUrl": "https://www.youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVA",
  "authorAvatar": "https://yt3.ggpht.com/...",
  "authorIsChannelOwner": true,
  "authorIsVerified": true,
  "voteCount": 23000,
  "replyCount": 981,
  "hasCreatorHeart": false,
  "isPinned": true,
  "isEdited": false,
  "type": "comment",
  "replyToCid": null,
  "publishedTimeText": "9 days ago",
  "publishedAt": "2026-11-01T08:35:35.320Z",
  "input": "https://www.youtube.com/@MrBeast",
  "scrapedAt": "2026-11-10T08:35:53.918Z"
}
```

**Try it in 1 click.** Press *Start* with the prefilled input (50 newest comments of one video): in our tests it finished in 5 to 20 seconds at 512 MB. That is $0.05 on the Apify Free plan, $0.025 on Gold.

**Price:** per 1,000 comments, from **$1.00** on the Apify Free plan down to **$0.50** on Gold and above. Platform usage included, no start fee, error rows free.

### Why this YouTube comments scraper

- **Cheaper than the leader on Free to Platinum**: $1.00 instead of $2.00 per 1,000 on Free, $0.50 instead of $0.90 on Gold (full table below).
- **Monitor mode: only new comments.** With `onlyNew: true` the actor remembers the comments it already returned (per video, in a named key-value store) and stops at the first one it has seen. Schedule it every hour or day: **you pay only for new comments**, and a run with nothing new costs almost nothing.
- **Replies too**, with `type: "reply"` and `replyToCid` pointing at the parent comment, so threads can be rebuilt.
- **Channels and playlists**: give `@handle`, `/channel/UC…` or a playlist URL and the actor reads the comments of the latest N videos.
- **More fields**: `isPinned`, `isEdited`, `authorChannelId`, `authorUrl`, `authorAvatar`, `authorIsVerified`, channel name and an ISO `publishedAt` on top of the leader's fields.
- **Drop-in compatible** with `streamers/youtube-comments-scraper`: same input (`startUrls`, `maxComments`, `sortCommentsBy`, `oldestCommentDate`) and same output fields.
- **Light and reliable**: no browser, datacenter proxy with automatic switch to residential if YouTube blocks the IP (at no extra cost to you), automatic retries. A failing video never fails the run: it gets an error row, and error rows are free.

### What you can do with it

- **Sentiment and audience research**: what viewers say about a product, a launch or a competitor's video.
- **Brand and community monitoring**: new comments on your own channel (or a creator you sponsor) every hour, sent to Slack or a sheet.
- **Influencer vetting**: are the comments real conversations or spam? How often does the creator reply or heart?
- **AI and RAG**: clean comment text for LLM summaries, topic clustering or training data. Pair it with transcripts (see "More tools").
- **Giveaways**: export every comment of a video and pick a winner.

### Input

| Field | Type | Default | What it does |
|---|---|---|---|
| `startUrls` | array | `[]` | Video URLs (`watch?v=`, `youtu.be/`, `/shorts/`, `/live/`), channel URLs (`@handle`, `/channel/UC…`) or playlist URLs. Strings or `{ "url": … }` objects. |
| `maxComments` | integer | `100` | Comments per video (replies count too when on). `0` = all. |
| `sortCommentsBy` | string | `NEWEST_FIRST` | `NEWEST_FIRST` or `TOP_COMMENTS`, like the sort menu on YouTube. |
| `oldestCommentDate` | string | — | Only comments posted after this date (`2026-03-01`) or within this period (`7 days`, `1 month`). Forces newest first. |
| `includeReplies` | boolean | `false` | Also return replies (`type: "reply"`). |
| `maxReplies` | integer | `10` | Replies per comment, `0` = all. |
| `onlyNew` | boolean | `false` | Monitor mode: only comments not returned by earlier runs. Forces newest first. |
| `monitorStoreName` | string | `youtube-comments-monitor` | Named key-value store with the seen comment IDs. One name per independent monitor. |
| `maxVideosPerChannel` | integer | `5` | For channel and playlist URLs: how many latest videos. |
| `youtubeHandles` | array | `[]` | Channel handles (`MrBeast`, `@MrBeast`), same as channel URLs. |
| `maxConcurrency` | integer | `5` | Videos read in parallel. |
| `proxyConfiguration` | object | Apify Proxy | Datacenter is enough; residential is used automatically when needed. |

Example: every new comment on a channel's latest 3 videos, replies included, for an hourly schedule:

```json
{
  "startUrls": [{ "url": "https://www.youtube.com/@MrBeast" }],
  "maxVideosPerChannel": 3,
  "maxComments": 500,
  "includeReplies": true,
  "onlyNew": true,
  "monitorStoreName": "mrbeast-comments"
}
```

### Output

| Field | Description |
|---|---|
| `comment` | Comment text. |
| `cid` | YouTube comment ID (replies: `parentId.replyId`). |
| `type`, `replyToCid` | `comment` or `reply`; for replies the parent `cid`. |
| `author`, `authorChannelId`, `authorUrl`, `authorAvatar` | Author handle, channel ID, channel URL, avatar. |
| `authorIsChannelOwner`, `authorIsVerified` | Comment by the video's creator; verified badge. |
| `voteCount`, `replyCount` | Likes and number of replies, as YouTube shows them. |
| `hasCreatorHeart`, `isPinned`, `isEdited` | Hearted by the creator, pinned, edited. |
| `publishedTimeText`, `publishedAt` | "3 days ago" as shown, and the estimated ISO timestamp. |
| `videoId`, `pageUrl`, `title`, `commentsCount`, `channel` | Video ID, URL, title, total comments shown on the video, channel name. |
| `input`, `scrapedAt` | The URL you gave, time of scraping. |
| `error`, `message` | Only on error rows (free): `not_found`, `comments_off`, `blocked`. |

Download as JSON, CSV, Excel, XML or HTML from the Storage tab or the API.

### Pricing

Pay per comment (replies included), platform usage included, no start fee, error rows free.

| Apify plan | Price per 1,000 comments | streamers/youtube-comments-scraper |
|---|---|---|
| Free | **$1.00** | $2.00 |
| Bronze (Starter) | **$0.90** | $1.50 |
| Silver (Scale) | **$0.75** | $1.20 |
| Gold (Business) | **$0.50** | $0.90 |
| Platinum | **$0.50** | $0.60 |
| Diamond | $0.50 | $0.30 |

In monitor mode you pay only for new comments; comments skipped by the date filter are never billed. Cap the cost of any run with the "Max charged results" run option.

### Migrating from streamers/youtube-comments-scraper

Change the actor ID; your input works as is.

| Their field | Here | Notes |
|---|---|---|
| `startUrls` | `startUrls` | Same. Channel and playlist URLs work too. |
| `maxComments` | `maxComments` | Same (per video). Default here `100`, theirs `1`. |
| `sortCommentsBy` | `sortCommentsBy` | Same values. |
| `oldestCommentDate` | `oldestCommentDate` | Same formats (date or "N days"). |
| output `comment`, `cid`, `author`, `videoId`, `pageUrl`, `title`, `commentsCount`, `voteCount`, `replyCount`, `authorIsChannelOwner`, `hasCreatorHeart`, `type`, `replyToCid`, `publishedTimeText` | same | Plus `publishedAt`, `isPinned`, `isEdited`, `authorChannelId`, `authorUrl`, `authorAvatar`, `authorIsVerified`, `channel`. Replies only with `includeReplies: true`. |

### Monitoring

Schedule the actor (Apify Console > Schedules, e.g. every hour) with `onlyNew: true` and attach an integration: Slack, email, Google Sheets, a webhook, Make, Zapier or n8n. The first run returns the latest comments (up to `maxComments`) and saves them as the baseline; every later run returns only comments posted since. Use a different `monitorStoreName` for each independent monitor; delete that key-value store to start over.

### Limits / not supported

- YouTube shows logged-out users relative times only ("3 weeks ago"), so `publishedAt` is an estimate: precise to the minute for recent comments, to the month or year for old ones.
- Likes and comment totals above 1,000 come rounded as YouTube shows them ("23K" → 23000).
- In monitor mode, new replies to comments already returned are not picked up (new comments and their replies are).
- Comment text is in the original language; the video title follows the English YouTube interface and may be the creator's translation.
- Comments turned off, private, members-only and age-restricted videos return an error row (free).
- Very large videos (hundreds of thousands of comments) take time: roughly 15 comments per second per video.

### Use it from AI agents (MCP)

Add the actor to Claude, Cursor or any MCP client through the Apify MCP server: `https://mcp.apify.com/?actors=lagenuina_agency/youtube-comments-scraper`. Agents can then call it as a tool ("what do viewers say about this video?"). It also works with `langchain-apify` (`ApifyActorsTool("lagenuina_agency/youtube-comments-scraper")`) and CrewAI.

### Integrations and API

```python
## pip install apify-client
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("lagenuina_agency/youtube-comments-scraper").call(run_input={
    "startUrls": [{"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"}],
    "maxComments": 200,
    "sortCommentsBy": "TOP_COMMENTS",
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["voteCount"], item["author"], item["comment"])
```

```js
// npm i apify-client
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('lagenuina_agency/youtube-comments-scraper').call({
    startUrls: [{ url: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' }],
    maxComments: 200,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

Python, JavaScript and an n8n workflow, tested with a real run: [github.com/assa83/youtube-comments-api](https://github.com/assa83/youtube-comments-api).

No-code: use the Apify app in **n8n**, **Make** or **Zapier** (action "Run Actor", pick `lagenuina_agency/youtube-comments-scraper`). Results can also go to Google Sheets, Slack, webhooks or any S3 bucket via Apify integrations.

### More tools from Quelli di Carne Genuina

**YouTube and content data**

- [YouTube Transcript Scraper](https://apify.com/lagenuina_agency/youtube-transcript-scraper): transcripts of videos, Shorts, playlists and channels as text, SRT or VTT. Comments + transcript = what the video says and what viewers think.
- [Google News Scraper & Mention Monitor](https://apify.com/lagenuina_agency/google-news-scraper): news by keyword with real publisher URLs, only new articles in monitor mode.
- [Medium Scraper](https://apify.com/lagenuina_agency/medium-scraper): Medium articles by tag, author or search, with full text as Markdown.

**Competitor & SEO research**

- [Google Trends Scraper](https://apify.com/lagenuina_agency/google-trends-scraper): interest over time, by region, related and rising queries.
- [Google Play Store Scraper](https://apify.com/lagenuina_agency/google-play-scraper): app search, details, top charts and reviews.

**Ad intelligence**

- [Google Ads Transparency Scraper](https://apify.com/lagenuina_agency/google-ads-transparency-scraper): every ad a brand runs on Google Search, YouTube, Shopping, Maps and Play.
- [Meta Ad Library Scraper](https://apify.com/lagenuina_agency/meta-ad-library-scraper): Facebook and Instagram ads with creatives and landing pages.
- [LinkedIn Ad Library Scraper](https://apify.com/lagenuina_agency/linkedin-ad-library-scraper): B2B ads of any company, with targeting and impressions.

### FAQ

**How do I get all comments from a YouTube video?** Put the video URL in `startUrls`, set `maxComments` to `0` and `includeReplies` to `true`.

**Do I need a YouTube Data API key?** No. No key, no Google Cloud project, no 10,000-units daily quota. The actor reads the same public comments you see on youtube.com.

**Can I export YouTube comments to Excel or CSV?** Yes: run it, open the Storage tab and download as CSV or Excel, or connect Google Sheets.

**Can I get comments from YouTube Shorts?** Yes, paste the `/shorts/` URL.

**Can I get notified of new comments on my channel?** Yes: your channel URL, `onlyNew: true` and an hourly schedule with a Slack or email integration.

**Does it return replies?** Yes, with `includeReplies: true`. Each reply has `replyToCid` with its parent comment ID.

**Can I pick a random giveaway winner from comments?** Export all comments (`maxComments: 0`), then pick a random row; `authorChannelId` helps you remove duplicate entries by the same person.

**Is scraping YouTube comments legal?** The actor reads publicly visible comments without signing in. Comments contain personal data (usernames, text): you are responsible for having a legitimate purpose and for following GDPR and similar laws where they apply.

**Something broke?** Open an issue on the Issues tab: we answer within 24 hours.

# Actor input Schema

## `startUrls` (type: `array`):

Video or Shorts URLs (youtube.com/watch?v=…, youtu.be/…, /shorts/…). Channel URLs (@handle, /channel/UC…) and playlist URLs work too: they expand to their latest videos (see Max videos per channel). You can import a CSV or Google Sheet.

## `maxComments` (type: `integer`):

Comments + replies per video. 0 = all.

## `sortCommentsBy` (type: `string`):

Same as the sort menu on YouTube. Monitor mode and the date filter always use newest first.

## `oldestCommentDate` (type: `string`):

A date (2026-03-01) or how far back to go ("7 days", "1 month"). YouTube shows only relative times ("3 weeks ago"), so the cut-off is approximate at the edges.

## `includeReplies` (type: `boolean`):

Also return the replies under each comment (type "reply", with replyToCid). They count toward Max comments per video.

## `maxReplies` (type: `integer`):

0 = all replies.

## `onlyNew` (type: `boolean`):

Remember the comments already returned (per video, in a named key-value store) and return only new ones on the next runs. Schedule the run daily or hourly: you pay only for new comments. The first run saves the baseline (up to Max comments).

## `monitorStoreName` (type: `string`):

Named key-value store that keeps the seen comment IDs. Use a different name per monitor if you run several.

## `maxVideosPerChannel` (type: `integer`):

For channel and playlist URLs: how many of the latest videos to read comments from.

## `youtubeHandles` (type: `array`):

Channel handles like MrBeast or @MrBeast: comments on their latest videos.

## `maxConcurrency` (type: `integer`):

How many videos are read at the same time.

## `proxyConfiguration` (type: `object`):

Apify Proxy by default. If YouTube blocks the IP, the run switches to residential proxy automatically, at no extra cost to you.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    }
  ],
  "maxComments": 50,
  "sortCommentsBy": "NEWEST_FIRST",
  "includeReplies": false,
  "maxReplies": 10,
  "onlyNew": false,
  "monitorStoreName": "youtube-comments-monitor",
  "maxVideosPerChannel": 5,
  "youtubeHandles": [],
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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 = {
    "startUrls": [
        {
            "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
        }
    ],
    "maxComments": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lagenuina_agency/youtube-comments-scraper").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 = {
    "startUrls": [{ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }],
    "maxComments": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("lagenuina_agency/youtube-comments-scraper").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 '{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    }
  ],
  "maxComments": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call lagenuina_agency/youtube-comments-scraper --silent --output-dataset

```

## MCP server setup

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

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/np8i5igtOlhlY30WD/builds/PWb3lQKpJn5PjouYC/openapi.json
