# YouTube Comments Scraper — Fast, Replies, No API Key (`vanborn_labs/youtube-comments-scraper-fast`) Actor

YouTube comments scraper for comment text, replies, likes, authors, pinned and creator-hearted flags. From videos, Shorts, channels, playlists or search. Top or newest sort. No API key, no browser. $1 per 1,000 comments.

- **URL**: https://apify.com/vanborn_labs/youtube-comments-scraper-fast.md
- **Developed by:** [Van Born Labs](https://apify.com/vanborn_labs) (community)
- **Categories:** Videos, Social media, AI
- **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 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 — Fast, Replies, No API Key

A **YouTube comments scraper** for **comments and replies** from any video, Short, channel, playlist or search result. Get comment text, author, likes, reply count, publish time, **pinned** and **hearted by creator** flags, sorted by **Top** or **Newest**. No YouTube API key, no quota, no browser. **$1 per 1,000 comments.**

### What it does

- Top-level comments **and replies** (optional), with parent comment ID.
- Like count, reply count, publish time, pinned, creator heart, verified author, and channel-owner comments.
- Sort by **Top comments** or **Newest first** (useful for monitoring).
- Bulk input: video URLs/IDs, Shorts, **channels / @handles**, **playlists** and **search terms**.
- Caps per video and per run so you never pay more than you planned. Videos with comments turned off cost nothing.

### Use cases

- **Audience research for creators**: what viewers ask for, complain about and love; ideas for your next video.
- **Sentiment analysis and brand monitoring**: feed comments into an LLM or sentiment model.
- **Product feedback**: mine reviews and unboxing videos for feature requests and pain points.
- **Lead generation and community**: find engaged commenters in your niche.
- **Competitor tracking**: newest comments on a competitor's latest uploads every day (use Apify schedules).
- **AI datasets**: clean JSON, CSV or Excel via API, Make, Zapier or n8n.

### Input

```json
{
  "videos": ["https://www.youtube.com/watch?v=aqz-KE-bpKQ"],
  "channels": ["@MrBeast"],
  "maxVideosPerSource": 5,
  "maxCommentsPerVideo": 200,
  "sortBy": "top",
  "includeReplies": true,
  "maxRepliesPerComment": 10,
  "maxComments": 2000
}
```

### Output example

```json
{
  "commentId": "UgzrXz18R8jmeI5i-el4AaABAg",
  "videoId": "aqz-KE-bpKQ",
  "videoTitle": "Big Buck Bunny 60fps 4K - Official Blender Foundation Short Film",
  "commentUrl": "https://www.youtube.com/watch?v=aqz-KE-bpKQ&lc=UgzrXz18R8jmeI5i-el4AaABAg",
  "text": "Comments\n90% - Big Chungus\n9% - Remembering this as a kid\n1% - This short was made using free software",
  "author": "@BergsArt",
  "authorChannelId": "UCK40BkhHK2_YfdRZHuqJaqQ",
  "authorIsVerified": false,
  "authorIsChannelOwner": false,
  "likeCount": 2700,
  "replyCount": 21,
  "publishedTimeText": "7 years ago",
  "replyLevel": 0,
  "parentCommentId": null,
  "isPinned": false,
  "isHeartedByCreator": false,
  "scrapedAt": "2026-11-16T14:45:00+00:00"
}
```

### Pricing

**$1.00 per 1,000 comments** (each reply counts as one comment) plus a tiny $0.00005 start fee per run. You are not billed for platform compute on this Actor. Use **Max results in total** to cap a run. Videos with comments disabled are not charged.

### FAQ

**Do I need a YouTube API key?** No. There is no official API quota.

**Are replies included?** Yes, when `includeReplies` is on. Each reply is a separate dataset item and is charged as one comment.

**Why is the like count rounded?** Like counts are YouTube's public rounded values (2.7K → 2700). Publish time is YouTube's relative text ("7 years ago").

**Is it legal to scrape YouTube comments?** Only publicly visible comments are collected. Make sure your use complies with YouTube's terms and privacy laws such as GDPR.

**Can I monitor new comments daily?** Yes. Sort by newest, cap the run, and attach an Apify schedule.

### Related Van Born Labs actors

- [YouTube Video Details & Outlier Score Scraper](https://apify.com/vanborn_labs/youtube-video-details-outlier-score) — views, likes, subscribers and viral outlier score.
- [ATS Career Jobs Scraper](https://apify.com/vanborn_labs/ats-career-jobs-scraper) — Greenhouse, Lever, Ashby, Workable, SmartRecruiters and Recruitee.
- [Google News RSS Scraper](https://apify.com/vanborn_labs/google-news-rss-scraper) — headlines by keyword, topic or site.
- [Email & Domain Validator](https://apify.com/vanborn_labs/email-domain-validator) — MX, disposable, typo, SPF and DMARC checks.

# Actor input Schema

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

Watch, youtu.be, Shorts, live URLs or bare video IDs. Channel/playlist URLs pasted here are expanded too.

## `channels` (type: `array`):

Channel URLs or @handles (latest videos) and playlist URLs. Comments of their videos are scraped.

## `searchTerms` (type: `array`):

Scrape comments from the top video results of these YouTube searches.

## `maxVideosPerSource` (type: `integer`):

How many videos to take from each channel, playlist or search term.

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

Stop after this many top-level comments on each video.

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

YouTube's own comment ordering.

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

Also scrape replies to each comment (each reply counts as one result).

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

Only used when replies are included.

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

Hard cap on comments + replies scraped (and charged) in this run.

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

Parallel requests.

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

Apify Proxy (datacenter) is used by default.

## `residentialFallback` (type: `boolean`):

Retry blocked requests through residential proxy (no extra cost to you).

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=aqz-KE-bpKQ"
  ],
  "channels": [],
  "searchTerms": [],
  "maxVideosPerSource": 10,
  "maxCommentsPerVideo": 100,
  "sortBy": "top",
  "includeReplies": false,
  "maxRepliesPerComment": 20,
  "maxConcurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true
}
```

# Actor output Schema

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

One dataset item per comment or reply: text, author, likes, reply count, pinned and creator-hearted flags.

## `runSummary` (type: `string`):

JSON counters for this run (successes, failures, residential proxy requests) stored in the default key-value store as RUN_SUMMARY.

# 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=aqz-KE-bpKQ"
    ],
    "channels": [],
    "searchTerms": [],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("vanborn_labs/youtube-comments-scraper-fast").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=aqz-KE-bpKQ"],
    "channels": [],
    "searchTerms": [],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("vanborn_labs/youtube-comments-scraper-fast").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=aqz-KE-bpKQ"
  ],
  "channels": [],
  "searchTerms": [],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call vanborn_labs/youtube-comments-scraper-fast --silent --output-dataset

```

## MCP server setup

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

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/9aZJSeKbUwzOz2AlE/builds/KOSUz5qFNASSNjhfu/openapi.json
