# 🚀 YouTube Comments Scraper · 10,000 Free Comments/Month (`omkar-cloud/youtube-comments-scraper`) Actor

YouTube Comments Scraper gets you YouTube comments ⚡ fast, 🎯 100% accurate and 🔍 ridiculously detailed — text, likes, replies, pinned and hearted flags. 💰 $0.50 per 1,000 comments, no start fee. Scrape your first 10,000 comments free every month 🚀

- **URL**: https://apify.com/omkar-cloud/youtube-comments-scraper.md
- **Developed by:** [Omkar Cloud](https://apify.com/omkar-cloud) (community)
- **Categories:** Social media, Videos, Developer tools
- **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.

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

YouTube Comments Scraper by Omkar Cloud gets you 🎯 accurate, 🔍 detailed YouTube comments.

YouTube uses Google BotGuard bot protection to stop you from getting its data.

YouTube Comments Scraper beats it, so you get the data, and can successfully complete your project.

**$0.50 per 1,000 comments.** And with Apify's free plan you get $5 of credit every month, so your first **~10,000 comments each month are free**.

This is an excellent Actor made by Omkar Cloud, which is Rated Excellent — [4.7 based on 30 reviews on Trustpilot](https://www.trustpilot.com/review/omkar.cloud).

👉 [**Try YouTube Comments Scraper free**](https://apify.com/omkar-cloud/youtube-comments-scraper) — your first ~10,000 comments are Free.

### What can I get

- 💬 **605K+ comments on Shake It Off alone** — every top-level comment, top or newest first
- ↩️ **Every reply** — reply rows linked to their comment with `parent_comment_id`
- ❤️ **Engagement on each comment** — likes, reply count, pinned & hearted-by-creator flags, edited flag
- 👤 **The author behind it** — channel ID, handle, avatar, verified and creator flags

### Why YouTube Comments Scraper

Most other YouTube scrapers fail you in one of four ways:

- 🗄️ **Inaccurate, cached, stale data**
- 🧩 **Low-detail data** — a few fields per row, never the full picture
- 💸 **Pay more to get the same data**
- 🪦 **Works today, breaks next month** — nobody maintains it

YouTube Comments Scraper is scraped live on every run, priced honestly, and actively maintained.

### Example: A YouTube Comment

```json
{
  "video_id": "nfWlot6h_JM",
  "parent_comment_id": null,
  "id": "UgzuR0rDSnqZHsuOPBZ4AaABAg",
  "text": "\"I stay up too late, got nothing to my brain\"\n- every students  trying  to study before exam felt it.",
  "link": "https://www.youtube.com/watch?v=nfWlot6h_JM&lc=UgzuR0rDSnqZHsuOPBZ4AaABAg",
  "published_time_text": "6 years ago",
  "is_edited": true,
  "like_count": 80000,
  "reply_count": 518,
  "is_pinned": false,
  "is_hearted": false,
  "author": {"id": "UCz9dL_yRPvsnvULQ8zgJSuQ", "name": "@Maximillian2414", "handle": "@Maximillian2414", "is_verified": false, "is_creator": false}
}
```

*Trimmed for readability.*

### Get Started with 10,000 Free Comments

1. [Hit **Try for Free Button**](https://apify.com/omkar-cloud/youtube-comments-scraper) — the input is pre-filled with Taylor Swift's *Shake It Off*.
2. Enjoy your data 😎.

### Pricing

High value, Low price.

| What | Price | What you get |
|---|---|---|
| **Comments & replies** | **$0.50 per 1,000** | id, text, link, posted time, edited flag, likes, reply count, pinned & hearted flags, reply level, author (id, handle, avatar, verified, creator) + the video it belongs to |

No start fee — you pay only for the comments you get. Control your spend with **Max Comments per Video** and **Max Replies per Comment**: 1,000 comments ≈ $0.50.

💡 Apify's free plan includes $5 of credit every month — about **10,000 free comments, every month**.

👉 [**Scrape your first 10,000 comments free**](https://apify.com/omkar-cloud/youtube-comments-scraper)

### FAQ

**How much will a run cost?** 10,000 comments cost about $5. Replies are billed like comments.

**Can I get only the newest comments?** Yes — set **Sort By** to *Newest first*.

**What about videos with comments turned off?** They are skipped and nothing is billed.

### Run It from Code

Grab your API token from [Integrations Settings here](https://console.apify.com/settings/integrations) and replace `<YOUR_API_TOKEN>` below.

**Python** (`pip install apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("omkar-cloud/youtube-comments-scraper").call(run_input={
    "videos": ["https://www.youtube.com/watch?v=nfWlot6h_JM"],
    "sortBy": "newest",
    "maxCommentsPerVideo": 500,
})
for comment in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(comment["author"]["name"], comment["like_count"], comment["text"])
```

**Node.js** (`npm install apify-client`)

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

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('omkar-cloud/youtube-comments-scraper').call({
    videos: ['nfWlot6h_JM'],
    includeReplies: true,
    maxCommentsPerVideo: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### 💬 Have Questions? We Have Answers.

You're a business owner — we know how hard completing a project can be. So we offer full support: just message us and we'll reply ✅ with a solution within 1 working day.

[![Message Us on WhatsApp](https://raw.githubusercontent.com/omkarcloud/assets/master/images/whatsapp-us.png)](https://api.whatsapp.com/send?phone=918178804274\&text=I%20need%20help%20with%20using%20the%20YouTube%20Comments%20Scraper%20Actor.)

[![Ask Us on Email](https://raw.githubusercontent.com/omkarcloud/assets/master/images/ask-on-email.png)](mailto:happy.to.help@omkar.cloud?subject=Help%20with%20YouTube%20Comments%20Scraper%20Actor\&body=I%20need%20help%20with%20using%20the%20YouTube%20Comments%20Scraper%20Actor.)

You are important to us — just message us and we will solve your problem ✅ within 1 working day. 🩷 Pinky Promise 🤙!

### Related Actors

- 🎬 [**YouTube Scraper**](https://apify.com/omkar-cloud/youtube-scraper) — search results, channel videos, Shorts & live streams with views, likes, chapters & heatmap. $1 per 1,000 videos.
- 📝 [**YouTube Transcript Scraper**](https://apify.com/omkar-cloud/youtube-transcript-scraper) — full text & timed segments for any video or a channel's latest uploads. $2 per 1,000 transcripts.

### Popular Actors by Omkar Cloud

- [**G2 Product Scraper**](https://apify.com/omkar-cloud/g2-product-scraper) — G2 product details, ratings & AI-found contacts
- [**Website Email Contact Scraper**](https://apify.com/omkar-cloud/website-email-contact-scraper) — emails, phones & socials from any website
- [**AliExpress Product Scraper**](https://apify.com/omkar-cloud/aliexpress-product-scraper) — live product details, SKU variants, stock & shipping
- [**Booking Scraper**](https://apify.com/omkar-cloud/booking-scraper) — Booking.com hotels: prices, ratings, rooms & amenities
- [**IMDb Scraper**](https://apify.com/omkar-cloud/imdb-scraper) — movies, TV shows, ratings, cast & box office

👉 [**Scrape your first 10,000 comments free now**](https://apify.com/omkar-cloud/youtube-comments-scraper)

# Actor input Schema

## `videos` (type: `array`):

Watch, youtu.be, Shorts or live links, or 11-character video IDs.

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

`Top` is YouTube's own ranking; `Newest` is most recent first.

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

Stop each video after this many top-level comments. Caps your cost: 1,000 comments ≈ $0.50.

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

Adds reply rows with `parent_comment_id` pointing at their comment.

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

Stop each comment's replies after this many.

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

2-letter country code, e.g. `US`, `GB`, `IN`.

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

Language of dates and labels (`en`, `es`, `de`, ...). Counts are exact in English.

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=nfWlot6h_JM"
  ],
  "sortBy": "top",
  "maxCommentsPerVideo": 100,
  "includeReplies": false,
  "maxRepliesPerComment": 20,
  "country": "US",
  "language": "en"
}
```

# 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 = {
    "videos": [
        "https://www.youtube.com/watch?v=nfWlot6h_JM"
    ]
};

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

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

```

## MCP server setup

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