# YouTube Comments Scraper 💰 $1/1K - Replies, No Login (`scrolahdata/youtube-comments-scraper`) Actor

Scrape and export YouTube comments and comment replies from videos, Shorts, playlists and channels. Likes, pinned & creator-hearted flags, author info, top or newest sort. YouTube comments export to CSV, JSON or Excel. No API key. Pay per comment.

- **URL**: https://apify.com/scrolahdata/youtube-comments-scraper.md
- **Developed by:** [Leping Gong](https://apify.com/scrolahdata) (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 $0.80 / 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 — Comments & Replies, No Login

Scrape **YouTube comments and replies** from videos, **Shorts**, **playlists** and **entire channels** — no YouTube API key, no quota, no login. Get comment text, likes, author, pinned and **creator-hearted** flags, reply threads and approximate publish dates. Export to JSON, CSV, Excel or use the API.

**Pay per comment.** Videos that fail or have comments turned off are never charged.

### What can it do?

- 💬 **Comments + replies** with parent/child links (`isReply`, `parentCommentId`)
- 🔝 **Sort by top or newest**
- 📌 **Pinned** and ❤️ **hearted by creator** flags, **channel owner** and **verified** author flags
- 👍 **Like counts**, author channel ID/URL/avatar
- 📺 **Channels & playlists** — paste a channel (`https://www.youtube.com/@name`) or playlist URL and get comments from its latest videos
- 🎬 Video context on every row: title, channel, views, total comment count
- 🛡️ Automatic retries with residential-proxy fallback when YouTube blocks a request

### How to use

1. Add video, Shorts, playlist or channel URLs (or video IDs).
2. Set **Max comments per video** and whether to **include replies**.
3. Choose **Top** or **Newest** sorting.
4. Click **Start**.

#### Example input

```json
{
  "startUrls": [{ "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }],
  "maxComments": 200,
  "sortBy": "top",
  "includeReplies": true,
  "maxRepliesPerComment": 10
}
```

#### Example output

```json
{
  "videoId": "jNQXAC9IVRw",
  "videoTitle": "Me at the zoo",
  "channelName": "jawed",
  "commentId": "UgzuC3zzpRZkjc5Qzsd4AaABAg",
  "text": "We're so honored that the first ever YouTube video was filmed here!",
  "author": "@SanDiegoZoo",
  "authorIsVerified": true,
  "likeCount": 4800000,
  "isPinned": true,
  "isHeartedByCreator": true,
  "isReply": false,
  "parentCommentId": null,
  "publishedTimeText": "6 years ago",
  "publishedAtApprox": "2020-11-11T00:00:00+00:00",
  "status": "ok"
}
```

### Pricing

Pay-per-event: a small fixed price **per comment or reply** returned. Set *Maximum cost per run* to cap spending. Failed videos cost nothing.

### Use cases

- **Sentiment analysis** and audience research
- **Product feedback** and feature requests from tech reviews
- **Brand & competitor monitoring** across creators
- **Training data** for NLP / LLM projects
- **Community management** — find questions, top fans, creator-hearted comments

### Pair it with

- [YouTube Scraper](https://apify.com/scrolahdata/youtube-scraper) — find videos by search, channel or playlist
- [YouTube Transcript Scraper](https://apify.com/scrolahdata/youtube-transcript-scraper) — transcripts, SRT and LLM chunks

### Integrations & API

- **API** — run it from Python, Node.js or any language with the Apify API / `apify-client` and get results as JSON.
- **Schedules & monitoring** — run it hourly, daily or weekly and get only fresh data.
- **Zapier, Make, n8n, Google Sheets, Slack, webhooks** — send results to your tools automatically.
- **AI agents (MCP)** — use it from Claude, ChatGPT, Cursor or any MCP client through the Apify MCP server.

### FAQ

**Do I need a YouTube API key?** No — and there's no 10,000-unit daily quota.

**Why is `publishedAtApprox` approximate?** YouTube only shows relative times ("3 weeks ago"); we convert them to an approximate date and also keep the original text.

**Is it legal?** It collects publicly visible comments. Comments contain usernames — handle personal data responsibly and according to GDPR/your local law.

**Missing something?** Open an issue in the *Issues* tab.

# Actor input Schema

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

Video, Shorts, playlist or channel URLs. Channels/playlists are expanded into their latest videos.

## `videoIds` (type: `array`):

Optional list of 11-character video IDs.

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

Maximum number of top-level comments per video.

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

Comment ordering.

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

Also scrape replies to comments.

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

Limit replies collected per top-level comment.

## `maxVideosPerChannelOrPlaylist` (type: `integer`):

How many videos to take from each channel or playlist URL.

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

Videos processed in parallel.

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

If YouTube blocks a request, retry it through Apify residential proxy.

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

Proxy for the first attempts.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    }
  ],
  "videoIds": [],
  "maxComments": 100,
  "sortBy": "top",
  "includeReplies": true,
  "maxRepliesPerComment": 10,
  "maxVideosPerChannelOrPlaylist": 10,
  "maxConcurrency": 3,
  "residentialFallback": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

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

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

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

```

## MCP server setup

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