# YouTube Comments Scraper $0.60/1K 🔥 Fast (`azzouzana/youtube-comments-scraper`) Actor

From $0.60/1K 💰 Extract YouTube comments and replies with blazing speed. Filter by keywords, likes, creator hearts, pinned comments, or verified channels. Export clean spreadsheets and data in seconds.

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

## Pricing

from $0.60 / 1,000 comment scrapeds

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 — Fast & Unlimited

Manually copying comments across YouTube videos and Shorts takes hours. We built this tool to give you the fastest, simplest way to download thousands of comments and full conversation threads into spreadsheets in seconds.

### Engineering Excellence & Reliability 🚀

- **Instant Results**: Start a run and watch your data arrive immediately. You can download hundreds of comments every few seconds without slowdowns.
- **Uncapped Scale**: We bypass the website limitation and go beyond it. Large comment sections keep going smoothly up to your chosen limit, while duplicate comments are skipped automatically.
- **Full Conversation Threads**: Collects the full discussion—not just top comments, but sub-replies, like counts, dates, and author links.
- **Spot What Matters**: Pinpoint comments loved by the video creator, pinned messages, verified channels, or specific words with simple filter toggles.
- **Ready for Analysis**: Download everything into clean Excel, CSV, or spreadsheet files ready for customer feedback, audience research, and content planning.

### 🛠️ How to Play

#### Input Parameters

| Field | Type | Description |
|---|---|---|
| `startUrl` | String | **(Required)** Paste any YouTube video or Shorts link from your browser. |
| `maxItems` | Number | How many total comments and replies you want to collect. (Default: 100) |
| `commentsSortBy` | String | Choose between `"top"` (Top comments) or `"newest"` (Newest first). |
| `includeReplies` | Boolean | `true` = Collect replies underneath comments. `false` = Top comments only. |
| `maxRepliesPerComment` | Number | Limit how many replies to grab per comment thread (Default: 20). |
| `filterKeyword` | String | *(Optional)* Only save comments mentioning this word or phrase. |
| `filterMinLikes` | Number | *(Optional)* Only keep comments with at least this many likes. |
| `filterHeartedOnly` | Boolean | *(Optional)* Only keep comments loved with a heart by the creator. |
| `filterPinnedOnly` | Boolean | *(Optional)* Only keep pinned comments. |
| `filterVerifiedOnly` | Boolean | *(Optional)* Only keep comments from verified YouTube channels. |

#### Example 1: Full Video Comments with Replies

```json
{
  "startUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "maxItems": 100,
  "commentsSortBy": "top",
  "includeReplies": true
}
```

#### Example 2: Finding Recent Mentions

```json
{
  "startUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "maxItems": 50,
  "commentsSortBy": "newest",
  "filterKeyword": "song",
  "includeReplies": false
}
```

### 🆓 Free tier limitations

We want you to see how this works before committing. The **free tier** includes these trial limits:

- **Sample data:** up to **5 items** per run—enough to verify data quality and columns.
- **Daily cap:** **5 runs** per calendar day (UTC).
- **Between runs:** at least **60 seconds** before you can start another run.

> Limits can adjust with platform traffic to keep service reliable for everyone.

#### Upgrade when you're ready!

Use the free tier to test on your own links. Paid plans remove these limits and allow high-volume, continuous downloads—[**upgrade to a paid plan**](https://apify.com/pricing?fpr=cbgdsf).

### 📦 What’s in the Box?

Every comment and reply comes with complete details. Nothing is left out.

```json
{
  "id": "UgzKYksqeQ5gA3t0g0F4AaABAg",
  "text": "I Rick rolled my entire French class because we had to study a city in France and make a quiz about it as well as a presentation, I decided to make a Kahoot quiz because it’s very easy. I put a link in to this saying it’s the kahoot link. The teacher needless to say got very very mad. As well as my classmates asking who rick rolls in 2019",
  "publishedTime": "6 years ago",
  "publishedTimeText": "6 years ago",
  "isEdited": false,
  "likeCount": 108000,
  "likeCountText": "108K",
  "replyCount": 723,
  "replyLevel": 0,
  "isReply": false,
  "parentId": null,
  "author": {
    "name": "@grustache4569",
    "channelId": "UCuAXFkgsw1L7xaCfnd5JJOw",
    "channelUrl": "https://www.youtube.com/@grustache4569",
    "avatarUrl": "https://yt3.ggpht.com/a/default-user=s88-c-k-c0x00ffffff-no-rj",
    "isVerified": false,
    "isCreator": false,
    "isArtist": false
  },
  "isPinned": false,
  "isHearted": false,
  "heartedBy": null,
  "videoId": "dQw4w9WgXcQ",
  "videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "scrapedAt": "2026-11-17T11:06:00.000Z"
}
```

### Contact 📬

**Need a custom solution? Have a feature request or just want to chat?**
We'd love to hear from you!

- 💬 **Discord**: `@azzouzana`
- 📧 **Email**: <labs@azzouzana.com>

### ⚠️ Disclaimer

This tool is an independent utility not affiliated with, authorized, maintained, or sponsored by YouTube, Google LLC, or any of their affiliates. It collects publicly available user comments posted on public YouTube videos. Users are responsible for complying with YouTube's Terms of Service and applicable local regulations. For more information, read the [Apify web scraping legality guide](https://blog.apify.com/is-web-scraping-legal?fpr=cbgdsf).

### Keywords

YouTube Comments Scraper, YouTube Downloader, YouTube Comments Export, YouTube Shorts Comments, Audience Research, Video Comments Spreadsheet, Comment Extractor, YouTube Sentiment.

# Actor input Schema

## `startUrl` (type: `string`):

YouTube video or Shorts URL to extract comments from (e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ).

## `maxItems` (type: `integer`):

Maximum number of comments (and replies) to scrape. Scraper stops when this cap is reached.

## `commentsSortBy` (type: `string`):

Order in which comments are fetched from YouTube.

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

Extract nested replies for each comment thread.

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

Maximum replies to collect per parent comment (0 to skip replies).

## `filterKeyword` (type: `string`):

Only keep comments containing this word or phrase (case-insensitive).

## `filterMinLikes` (type: `integer`):

Only keep comments with at least this many likes.

## `filterHeartedOnly` (type: `boolean`):

Only keep comments that received a heart from the creator.

## `filterPinnedOnly` (type: `boolean`):

Only keep pinned comments.

## `filterVerifiedOnly` (type: `boolean`):

Only keep comments from verified YouTube channels.

## Actor input object example

```json
{
  "startUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "maxItems": 100,
  "commentsSortBy": "top",
  "includeReplies": true,
  "maxRepliesPerComment": 20,
  "filterMinLikes": 0,
  "filterHeartedOnly": false,
  "filterPinnedOnly": false,
  "filterVerifiedOnly": false
}
```

# 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 = {
    "startUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "maxItems": 100,
    "includeReplies": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("azzouzana/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 = {
    "startUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "maxItems": 100,
    "includeReplies": True,
}

# Run the Actor and wait for it to finish
run = client.actor("azzouzana/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 '{
  "startUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "maxItems": 100,
  "includeReplies": true
}' |
apify call azzouzana/youtube-comments-scraper --silent --output-dataset

```

## MCP server setup

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