# YouTube Comments Scraper - Comments, Replies & Commenters (`seemuapps/youtube-comments-scraper`) Actor

Scrape YouTube comments and replies from any video with author, channel link, likes, reply count, pinned and hearted flags - or build a de-duplicated commenter lead list.

- **URL**: https://apify.com/seemuapps/youtube-comments-scraper.md
- **Developed by:** [Andrew](https://apify.com/seemuapps) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## YouTube Comments Scraper - Comments, Replies & Commenters

Extract every comment and reply from any YouTube video - text, author, channel link, like count, reply count, pinned and creator-hearted flags - sorted by Top or Newest. Or flip to **Commenters** mode and get a de-duplicated list of everyone who commented across a set of videos, ranked by activity. No login, no cookies, no YouTube API quota.

Paste video URLs, pick how many comments you want, and export to JSON, CSV, Excel or Google Sheets.

### What you get

**Comments mode** - one row per comment or reply:

- **commentId**, **commentUrl** (deep link that opens the comment on YouTube), **parentCommentId**, **isReply**
- **text** - the full comment
- **authorName**, **authorHandle**, **authorChannelId**, **authorChannelUrl**, **authorAvatarUrl**
- **authorIsVerified**, **authorIsCreator** (the video's own channel replying)
- **likeCount**, **replyCount**, **publishedText** ("3 weeks ago")
- **isPinned**, **isHeartedByCreator**
- **videoId**, **videoUrl**, **videoTitle**, **channelTitle**, **position**

**Commenters mode** - one row per unique author across all videos in the run:

- **authorChannelId**, **authorName**, **authorHandle**, **authorChannelUrl**, **authorAvatarUrl**, **authorIsVerified**
- **commentCount**, **replyCount**, **totalLikesReceived**
- **videosCommented**, **videosCommentedCount** - which of your input videos they engaged with
- **latestCommentText**, **mostLikedCommentText**, **mostLikedCommentLikes**, **sampleComments**

### Use cases

- **Audience research** - read what viewers actually say about a product, creator or topic at scale
- **Sentiment and feedback mining** - feed comments into your own analysis, LLM or dashboard
- **Lead generation** - Commenters mode turns engaged viewers on competitor videos into a contactable channel list
- **Community management** - export pinned, hearted and most-liked comments for reports
- **Giveaway and contest picking** - pull every commenter, then choose winners
- **Dataset building** - collect labelled comment data for research or model training

### How to use

1. Enter one or more **Video URLs** (watch, youtu.be, Shorts or live links, or bare video IDs).
2. Set **Max top-level comments per video** (default 100, `0` for everything).
3. Choose **Sort by**: Top (YouTube's ranking) or Newest first.
4. Leave **Include replies** on to get replies as their own rows, and set **Max replies per comment** (`0` for all).
5. Pick **Output mode**: Comments or Commenters.
6. Run the actor - rows stream into the **Dataset** tab as they are found.

### Output format

Comments mode:

```json
{
  "videoId": "kJQP7kiw5Fk",
  "videoUrl": "https://www.youtube.com/watch?v=kJQP7kiw5Fk",
  "videoTitle": "Luis Fonsi - Despacito ft. Daddy Yankee",
  "channelTitle": "Luis Fonsi",
  "commentId": "UgzZfEnq23bUSeNQLX54AaABAg",
  "commentUrl": "https://www.youtube.com/watch?v=kJQP7kiw5Fk&lc=UgzZfEnq23bUSeNQLX54AaABAg",
  "parentCommentId": null,
  "isReply": false,
  "text": "who's here after 9 billion??",
  "authorName": "@YouTube",
  "authorChannelId": "UCBR8-60-B28hp2BmDPdntcQ",
  "authorChannelUrl": "https://www.youtube.com/@YouTube",
  "authorHandle": "@YouTube",
  "authorAvatarUrl": "https://yt3.ggpht.com/...",
  "authorIsVerified": true,
  "authorIsCreator": false,
  "publishedText": "4 months ago",
  "likeCount": 80000,
  "replyCount": 973,
  "isPinned": false,
  "isHeartedByCreator": false,
  "position": 1
}
```

Commenters mode:

```json
{
  "authorChannelId": "UCKXRG-Xt8lj1Os4RLf02UgQ",
  "authorName": "@PatriciaNgassaki-w6c",
  "authorHandle": "@PatriciaNgassaki-w6c",
  "authorChannelUrl": "https://www.youtube.com/@PatriciaNgassaki-w6c",
  "authorAvatarUrl": "https://yt3.ggpht.com/...",
  "authorIsVerified": false,
  "commentCount": 2,
  "replyCount": 0,
  "totalLikesReceived": 1,
  "videosCommented": ["kJQP7kiw5Fk"],
  "videosCommentedCount": 1,
  "latestCommentText": "Who's here before 10 billion ???",
  "mostLikedCommentText": "Who's here before 10 billion ???",
  "mostLikedCommentLikes": 1,
  "sampleComments": ["Who's here before 10 billion ???", "Legendary song"]
}
```

### Pricing

You pay a small fixed amount per comment (or per commenter in Commenters mode) returned. Videos with comments turned off cost nothing.

### Tips

- Replies are interleaved directly after their parent comment, so a CSV export reads top to bottom like the page.
- Like counts above 1,000 are the rounded figures YouTube displays (for example 80K becomes 80000).
- Use **Newest first** on a schedule to monitor fresh comments on your own or a competitor's videos.
- Turn off **Include replies** for the fastest run when you only need top-level comments.

### FAQ

**Why are there fewer comments than the video shows?**
YouTube's displayed total includes deleted, held and spam-filtered comments that are never served publicly.

**Can I get the commenter's email?**
No - YouTube does not expose emails. Use the channel URL with the YouTube Creator Contact Finder to look up public contact details.

**Does it work on Shorts and live streams?**
Yes. Paste the Shorts or live URL; comments are fetched the same way.

# Actor input Schema

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

YouTube video URLs or IDs, one per line. Accepts watch, youtu.be, Shorts and live URLs. Up to 500 per run.

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

Top-level comments to collect for each video. Replies are counted separately. 0 = all comments, up to 50,000 per video.

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

Top mirrors YouTube's default ranking; Newest returns the most recent comments first.

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

Also fetch replies under each top-level comment. Each reply is its own dataset row with parentCommentId set.

## `maxRepliesPerComment` (type: `integer`):

Replies to fetch under each top-level comment when Include replies is on. 0 = all replies.

## `outputMode` (type: `string`):

Comments streams every comment and reply. Commenters de-duplicates authors across all videos into a lead list with comment counts, likes received and sample comments.

## `country` (type: `string`):

Two-letter country code passed to YouTube, e.g. US, GB, AU.

## `language` (type: `string`):

Language code for YouTube's interface, e.g. en, de, pt-BR. Affects relative date text such as '2 weeks ago'.

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

Optional. Leave off by default. Enable Apify Proxy only if YouTube starts blocking requests from the default network.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=kJQP7kiw5Fk"
  ],
  "maxCommentsPerVideo": 100,
  "sortBy": "top",
  "includeReplies": true,
  "maxRepliesPerComment": 10,
  "outputMode": "comments",
  "country": "US",
  "language": "en",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Comments mode fields: videoId, videoUrl, videoTitle, channelTitle, commentId, commentUrl, parentCommentId, isReply, text, authorName, authorChannelId, authorChannelUrl, authorHandle, authorAvatarUrl, authorIsVerified, authorIsCreator, publishedText, likeCount, replyCount, isPinned, isHeartedByCreator, position. Commenters mode fields: authorChannelId, authorName, authorHandle, authorChannelUrl, authorAvatarUrl, authorIsVerified, commentCount, replyCount, totalLikesReceived, videosCommented, videosCommentedCount, latestCommentText, mostLikedCommentText, mostLikedCommentLikes, sampleComments.

# 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=kJQP7kiw5Fk"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("seemuapps/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 = { "videoUrls": ["https://www.youtube.com/watch?v=kJQP7kiw5Fk"] }

# Run the Actor and wait for it to finish
run = client.actor("seemuapps/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 '{
  "videoUrls": [
    "https://www.youtube.com/watch?v=kJQP7kiw5Fk"
  ]
}' |
apify call seemuapps/youtube-comments-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,seemuapps/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/WpXGh1X6xyng07H6h/builds/N1zvAYeF7tJk8M3G5/openapi.json
