# YouTube Comments Scraper (Fast & Unlimited) (`scrapepilot/youtube-comments-scraper-fast-unlimited`) Actor

Scrape YouTube comments and Shorts replies in bulk without login or API keys. Extract full comment text, author channels, likes, timestamps, and creator hearts. Fast, reliable export to JSON, CSV, and Excel for sentiment analysis and brand research.

- **URL**: https://apify.com/scrapepilot/youtube-comments-scraper-fast-unlimited.md
- **Developed by:** [Scrape Pilot](https://apify.com/scrapepilot) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 scraped youtube comments

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

Extract comments, nested replies, author profiles, timestamps, vote counts, and creator interactions from YouTube videos and Shorts in real time. The **YouTube Comments Scraper** gathers structured public feedback directly from YouTube without requiring browser extensions, Google API keys, or account logins.

Built for market researchers, sentiment analysts, content creators, brand managers, and data engineers, this scraper delivers clean, deduplicated datasets exported instantly to JSON, CSV, Excel, XML, or HTML table format. Whether analyzing thousands of viewer responses on product reviews or auditing community sentiment on trending Shorts, the scraper runs reliably at scale.

| Feature | Details |
|---|---|
| **Input** | Direct YouTube video URLs, Shorts URLs, embed links, or raw video IDs |
| **Supported URLs/Queries** | `youtube.com/watch?v=...`, `youtu.be/...`, `youtube.com/shorts/...`, `youtube.com/embed/...` |
| **Charged** | Pay-per-event per valid comment returned (`comment-result`) |
| **Output** | Comment text, comment ID, author handle, channel ID, author URL, avatar URL, like count, reply count, creator heart, pin status, and video title |
| **Limits** | Configurable from 1 to 50,000+ comments per run with per-video limits |
| **Delivery** | Apify Dataset, API, Webhooks, Google Sheets, Make, Zapier, n8n |

***

### What does the YouTube Comments Scraper do?

The **YouTube Comments Scraper** systematically extracts public discussion threads and nested replies from any public YouTube video or YouTube Short. It processes high-volume comment sections and structures the raw community feedback into structured datasets for downstream analysis.

#### Concrete Business Use Cases

- **Sentiment Analysis & Brand Monitoring**: Measure community reception, track product perception, and uncover audience sentiment on brand campaigns using raw text in `comment` and vote engagement in `voteCount`.
- **Competitor Content Research**: Analyze audience questions, praise, and complaints on competitors' videos to spot unmet customer needs and product feature requests.
- **Influencer Campaign Auditing**: Verify audience authenticity on sponsored creator uploads by reviewing commenter handles in `author`, verified badges in `authorIsVerified`, and creator engagement in `hasCreatorHeart`.
- **Community Feedback Extraction**: Gather suggestions, bug reports, and tutorial requests directly from your own channel audience without navigating through comment moderation dashboards.
- **Trend & Topic Discovery**: Track rising slang, viral jokes, and emerging community discussions across viral videos and Shorts in real time.

***

### How do you use the YouTube Comments Scraper?

Running the **YouTube Comments Scraper** takes less than a minute through the Apify Console:

1. **Add Target URLs**: Provide one or more YouTube video URLs, Shorts links, or 11-character video IDs.
2. **Set Comment Limits**: Define `maxComments` for total items and `maxCommentsPerVideo` for individual video ceilings.
3. **Choose Sort Order**: Select `Top` for featured, high-engagement discussions or `Newest` for reverse-chronological feedback.
4. **Click Start**: Run the Actor and download your dataset in JSON, CSV, Excel, XML, or HTML.

#### Sample Input JSON

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    }
  ],
  "maxComments": 100,
  "maxCommentsPerVideo": 50,
  "commentsSort": "Top",
  "includeReplies": true,
  "maxRepliesPerComment": 10
}
```

#### Sample Output JSON

```json
{
  "comment": "My algebra teacher said that this was a link to the test answers",
  "cid": "UgwPwTibxdgqCHZxktd4AaABAg",
  "author": "@bdr8823",
  "authorChannelId": "UCdi6tGxvFvTRGe-7dAn7m7w",
  "authorChannelUrl": "https://www.youtube.com/@bdr8823",
  "authorThumbnail": "https://yt3.ggpht.com/ytc/AIdro_kcDoQJUNDkDzTrA5kaF5ADVujN-6UcDjMP2Kydtw=s88-c-k-c0x00ffffff-no-rj",
  "authorIsVerified": false,
  "authorIsChannelOwner": false,
  "videoId": "dQw4w9WgXcQ",
  "pageUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "publishedTimeText": "7 years ago",
  "commentsCount": 2462522,
  "replyCount": 715,
  "voteCount": 73000,
  "hasCreatorHeart": true,
  "isPinned": false,
  "type": "comment",
  "replyToCid": null,
  "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)"
}
```

***

### When should you use the YouTube Comments Scraper?

#### Use it for:

- Scraping public YouTube comments at high speed without official API quota exhaustion.
- Extracting nested replies alongside top-level comments with parent thread mapping via `replyToCid`.
- Auditing creator responsiveness using `hasCreatorHeart` and `authorIsChannelOwner`.
- Exporting clean CSV and Excel files for sentiment analysis and NLP pipelines.
- Monitoring live community reactions on new product launches or music video premieres.

#### Use something else for:

- Scraping private, unlisted, or age-gated videos that require user credentials.
- Downloading video streams or audio tracks (use dedicated media downloaders).
- Extracting channel analytics, revenue metrics, or YouTube Studio moderation logs.

***

### Is the YouTube Comments Scraper free to try?

Yes. Users on the Apify Free plan can extract up to **10 free results across their lifetime** to evaluate output schema, field accuracy, and data quality.

Once the 10 free results are reached, the run completes cleanly with an informative notification. Upgrading to a paid Apify plan unlocks unlimited extraction, charged transparently per comment returned through Apify's Pay-Per-Event billing.

***

### How is the YouTube Comments Scraper configured?

Configure the **YouTube Comments Scraper** using the form interface or by providing JSON input:

| Field | Type | Required | Description | Default |
|---|---|---|---|---|
| `startUrls` | Array | **Yes** | List of YouTube video URLs, Shorts links, or video IDs | `[{"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"}]` |
| `maxComments` | Integer | No | Maximum total comments and replies to extract across the run | `100` |
| `maxCommentsPerVideo` | Integer | No | Maximum comments to extract from each individual video URL | `100` |
| `commentsSort` | String | No | Sort order for comments: `Top` (featured) or `Newest` (recent) | `"Top"` |
| `includeReplies` | Boolean | No | Whether to extract nested replies to root comments | `true` |
| `maxRepliesPerComment` | Integer | No | Maximum number of replies to scrape for each comment thread | `10` |
| `proxyConfiguration` | Object | No | Optional proxy configuration for high-volume jobs | `{"useApifyProxy": false}` |

***

### How does the YouTube Comments Scraper handle duplicates and limits?

- **In-Memory CID Deduplication**: The scraper tracks unique comment IDs (`cid`) throughout each run. If a comment appears across pagination boundaries or sort orders, it is processed only once, preventing duplicate dataset entries and redundant charges.
- **Strict Ceiling Enforcement**: The scraper checks item limits before pushing each comment. Once `maxCommentsPerVideo` or total `maxComments` is reached, execution halts immediately.
- **Spending Limits**: The Actor natively honors Apify run spending caps. If a configured spending limit is met, the run exits safely with all extracted comments preserved.

***

### Which fields does the YouTube Comments Scraper return?

Every successful item returned by the **YouTube Comments Scraper** conforms to the following schema:

| Field | Type | Description |
|---|---|---|
| `comment` | String | The full text content of the comment or reply |
| `cid` | String | Unique YouTube comment identifier (e.g. `UgwPwTibxdgqCHZxktd4AaABAg`) |
| `author` | String | Commenter display handle (e.g. `@bdr8823`) |
| `authorChannelId` | String | YouTube Channel ID of the comment author |
| `authorChannelUrl` | String | Direct canonical URL to the author's YouTube channel |
| `authorThumbnail` | String | High-resolution URL of the author's profile avatar |
| `authorIsVerified` | Boolean | `true` if the author channel has a verified badge |
| `authorIsChannelOwner` | Boolean | `true` if the comment was posted by the video creator |
| `videoId` | String | 11-character YouTube video ID |
| `pageUrl` | String | Canonical watch URL of the target video |
| `publishedTimeText` | String | Relative timestamp as displayed on YouTube (e.g. `7 years ago`) |
| `commentsCount` | Integer | Total comment count of the target video |
| `replyCount` | Integer | Total number of replies attached to this root comment |
| `voteCount` | Integer | Number of likes / upvotes received |
| `hasCreatorHeart` | Boolean | `true` if the video creator gave this comment a heart |
| `isPinned` | Boolean | `true` if the comment is pinned at the top of the discussion |
| `type` | String | Either `comment` for root items or `reply` for nested items |
| `replyToCid` | String / Null | Parent comment ID for replies, or `null` for root comments |
| `title` | String | Full title of the YouTube video |

***

### How do you scrape video comments with the YouTube Comments Scraper?

Provide standard YouTube watch URLs to extract top comments and nested discussions:

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    }
  ],
  "maxComments": 200,
  "commentsSort": "Top"
}
```

***

### How do you extract YouTube Shorts comments with the YouTube Comments Scraper?

Paste Shorts URLs directly into `startUrls`. The scraper automatically identifies the 11-character identifier and retrieves the Shorts comment feed:

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/shorts/bJTjJtRPqYE"
    }
  ],
  "maxComments": 150,
  "includeReplies": true
}
```

***

### How do you scrape nested replies with the YouTube Comments Scraper?

Enable `includeReplies` and set `maxRepliesPerComment` to control how deep discussion threads should be scraped:

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    }
  ],
  "includeReplies": true,
  "maxRepliesPerComment": 25,
  "maxComments": 500
}
```

***

### How do you sort comments by newest or top with the YouTube Comments Scraper?

Switch `commentsSort` between `Top` and `Newest` to prioritize either the most liked comments or the most recent viewer reactions:

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

***

### How does the YouTube Comments Scraper report errors and empty results?

When a target video is deleted, private, age-restricted, or has comments disabled, the scraper pushes an explicit error record to the dataset rather than terminating the entire run:

```json
{
  "url": "https://www.youtube.com/watch?v=invalid_id",
  "input": "https://www.youtube.com/watch?v=invalid_id",
  "error": "VIDEO_UNAVAILABLE",
  "note": "This video is not available"
}
```

#### Common Error Codes

- `VIDEO_UNAVAILABLE`: Video is deleted, marked private, or region-restricted.
- `AGE_RESTRICTED`: Content requires account authentication to access.
- `NO_COMMENTS`: The video has no comments or comments have been disabled by the creator.
- `INVALID_INPUT`: The supplied URL does not contain an 11-character video ID.
- `free_limit_exhausted`: Free tier quota reached; upgrade to a paid Apify plan for unlimited access.

***

### How do you schedule or integrate the YouTube Comments Scraper?

- **Apify Schedules**: Automate runs on an hourly, daily, or weekly cadence to continuously monitor audience feedback on key uploads.
- **Apify API & SDKs**: Trigger runs and fetch datasets programmatically via Python (`apify-client`) or Node.js (`apify-client`).
- **Webhooks & Workflow Automation**: Connect output directly into Slack, Discord, Google Sheets, Airtable, or CRM pipelines using Make, Zapier, or n8n.
- **AI Agent Integration**: Connect the scraper via Apify's MCP server to feed fresh sentiment data directly into Claude, ChatGPT, or custom LangChain agents.

***

### Which YouTube Comments Scraper questions come up most often?

#### Do I need a Google API key or YouTube credentials?

No. The **YouTube Comments Scraper** works entirely without Google Cloud Console setups, OAuth tokens, or YouTube API keys.

#### Does the scraper extract replies to comments?

Yes. Setting `includeReplies` to `true` extracts nested replies mapped to their parent comment via `replyToCid`.

#### In what formats can I download YouTube comments?

You can export results in JSON, CSV, Excel (XLSX), XML, or HTML table format directly from the Apify Console or API.

#### Can I scrape YouTube Shorts comments?

Yes. Both standard YouTube videos and YouTube Shorts are fully supported.

#### Is scraping YouTube comments compliant with public data policies?

The scraper extracts only publicly available comments and author handles that users have published openly on YouTube. It does not access private messages, unlisted videos, or non-public user data.

***

### Support

If you have feedback, feature requests, or encounter an issue, please report it via the Actor's **Issues** tab in the Apify Console.

# Actor input Schema

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

YouTube video URLs, Shorts, or video IDs (e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ).

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

Maximum total comments and replies to extract across the entire run.

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

Maximum comments to extract per individual video URL.

## `commentsSort` (type: `string`):

Sort order for extracted comments. 'Top' extracts featured/high-engagement comments; 'Newest' extracts latest comments first.

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

Enable to extract nested comment replies for each root comment thread.

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

Maximum number of nested replies to fetch for each comment thread.

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

Optional proxy settings. Residential proxies are recommended when scraping high volumes.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    }
  ],
  "maxComments": 100,
  "maxCommentsPerVideo": 100,
  "commentsSort": "Top",
  "includeReplies": true,
  "maxRepliesPerComment": 10,
  "proxyConfiguration": {
    "useApifyProxy": 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 = {
    "startUrls": [
        {
            "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapepilot/youtube-comments-scraper-fast-unlimited").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" }] }

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

```

## MCP server setup

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

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/typzU0Xi3fZ1EAinX/builds/MkcDxF4AZYW0HLFR6/openapi.json
