# YouTube Comments Scraper: From $0.65 per 1,000 Comments (`rowfinch/youtube-comments-scraper`) Actor

Scrape the comments and replies of any YouTube video or Short: text, author and channel, likes, reply count, pinned and creator-heart flags, date, and the video's exact comment total. Top or newest first, with a date filter. No login. From $0.65 per 1,000 comments.

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

## Pricing

from $0.65 / 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

Get the comments of any YouTube video or Short: text, author and channel, likes, replies, pinned and creator-heart flags, and the date, with replies when you want them.

**From $0.65 per 1,000 comments.**

### What it's for

- **Audience and sentiment research**: what viewers say under your videos, a competitor's or a creator's.
- **Content ideas**: questions and requests that keep coming up in the comments of a niche.
- **Giveaways**: everyone who commented, with their handle and channel link.
- **Brand monitoring**: new comments on sponsored videos, run on a schedule with a date filter.
- **Data for AI agents and dashboards**: clean JSON, CSV or Excel, or straight from the API.

### Input

| Field | What it does |
|---|---|
| `startUrls` | Video or Shorts links |
| `maxComments` | Comments per video, replies included (default 100) |
| `sortCommentsBy` | `NEWEST_FIRST` (default) or `TOP_COMMENTS` |
| `maxRepliesPerComment` | Replies under each comment (default 0, none) |
| `oldestCommentDate` | Leaves out older comments: a date, or a period like `7 days` |

Coming from Streamers' YouTube Comments Scraper? These are its input field names, and the output keeps its fields too (`comment`, `cid`, `author`, `voteCount`, `replyCount`, `hasCreatorHeart`, `authorIsChannelOwner`, `replyToCid`…).

### Output

One row per comment, and per reply when they're on:

```json
{
  "comment": "what's the first thing you'd do if you won a mansion?",
  "cid": "UgzCQ8KZp1eP8AhgHGl4AaABAg",
  "type": "comment",
  "replyToCid": null,
  "author": "@MrBeast",
  "authorChannelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
  "authorUrl": "https://www.youtube.com/@MrBeast",
  "authorAvatarUrl": "https://yt3.ggpht.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s88-c-k-c0x00ffffff-no-rj",
  "authorIsVerified": true,
  "authorIsChannelOwner": true,
  "voteCount": 68000,
  "replyCount": 1100,
  "hasCreatorHeart": false,
  "isPinned": true,
  "isEdited": false,
  "publishedTimeText": "2 months ago",
  "date": "2026-09-07",
  "videoId": "Af6i6ChAVTw",
  "pageUrl": "https://www.youtube.com/watch?v=Af6i6ChAVTw",
  "title": "Last To Leave Mansion, Keeps It",
  "commentsCount": 184373,
  "input": "https://youtu.be/Af6i6ChAVTw"
}
```

Replies have `type` `reply`, carry `replyToCid`, and come right after the comment they answer. `commentsCount` is the video's exact total.

Links that can't be read get a row with the reason, free of charge:

```json
{ "input": "https://www.youtube.com/watch?v=aaaaaaaaaaa", "error": "Video unavailable" }
```

### Price

Per 1,000 comments, replies included, by your Apify plan:

| Free  | Starter | Scale | Business |
| ----- | ------- | ----- | -------- |
| $1.50 | $1.00   | $0.85 | $0.65    |

- Unavailable videos, videos with comments turned off and invalid links: free

| Run, on Starter              | Cost   |
| ---------------------------- | ------ |
| 1 video, 1,000 comments      | $1.00  |
| 50 videos, 100 comments each | $5.00  |
| 1 video, 20,000 comments     | $20.00 |

A run stops at the maximum cost you set for it. On Apify's free plan, a run returns up to 100 comments.

#### Compared with Streamers' YouTube Comments Scraper

Same input, same output fields, so switching means changing the Actor ID.

| Run, on Starter              | This Actor | Streamers' ($1.50 per 1,000 on Starter) |
| ---------------------------- | ---------- | --------------------------------------- |
| 1 video, 1,000 comments      | $1.00      | $1.50                                   |
| 50 videos, 100 comments each | $5.00      | $7.50                                   |
| 1 video, 20,000 comments     | $20.00     | $30.00                                  |

Prices as listed on November 2, 2026. Theirs goes from $2 per 1,000 on the free plan down to $0.30 on Diamond.

### FAQ

**In what order do comments come?**
Newest first by default, as YouTube's "Newest" sort shows them. Top comments come in YouTube's own ranking, pinned comment first.

**Can it get all the comments of a video?**
Sort by newest and raise *Comments per video* above the video's comment count. YouTube lists only about 1,200 top comments per video, so the top sort ends there.

**Why are likes rounded?**
YouTube shows a comment's likes rounded above 1,000 (68K), and that's the number it gives out.

**Can I get only new comments every day?**
Schedule the run with *Posted on or after* set to `1 day`. Newest first, each video stops at the first older comment.

**Does it need a login or a YouTube API key?**
No. It reads what anyone sees on the video page, with no quota.

**Is it legal?**
It reads only public comments. Handles and comment text are personal data under GDPR and similar laws: use them for a legitimate purpose and honor deletion requests.

# Actor input Schema

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

Video or Shorts links.

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

Replies count toward it.

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

YouTube lists about 1,200 top comments per video; newest first goes much further.

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

0 leaves replies out.

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

Leaves out older comments. A period like 7 days counts back from today, for scheduled runs.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    }
  ],
  "maxComments": 100,
  "sortCommentsBy": "NEWEST_FIRST",
  "maxRepliesPerComment": 0
}
```

# Actor output Schema

## `comments` (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": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("rowfinch/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": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("rowfinch/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": 100
}' |
apify call rowfinch/youtube-comments-scraper --silent --output-dataset

```

## MCP server setup

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