# YouTube Comments Scraper 💬 \[No API Key] — $0.35/1K 💰 (`viralanalyzer/youtube-comments-scraper-pro`) Actor

Extract YouTube comments, replies, like counts, author channels, and timestamps in bulk without Google API keys or quotas. Only $0.35/1K comments.

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

## Pricing

from $0.20 / 1,000 comment scrapeds

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## YouTube Comments Scraper Pro 💬

> 🔗 [View on Apify Store](https://apify.com/viralanalyzer/youtube-comments-scraper-pro) | 🇺🇸 English | [🇧🇷 Português](#português)

***

### 🇺🇸 English

#### Overview

Extract **top-level** YouTube comments — text, like count, author handle and channel, timestamp, pinned flag, and the number of replies each one received — for sentiment analysis and audience intelligence.

#### Features

- **High-Speed Extraction**: Extracts thousands of comments per minute without browser overhead
- **Top-level comments**: with `replyCount` per comment. Reply *text* is not fetched — see Limits.
- **Author Metadata**: Author name, channel handle, avatar URL, and like count

#### Input Example

```json
{
  "videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "maxComments": 100
}
```

#### Output Example

```json
{
  "commentId": "UgxK...",
  "videoId": "dQw4w9WgXcQ",
  "authorName": "RetroMusicFan",
  "authorChannelUrl": "https://www.youtube.com/channel/UC...",
  "authorAvatarUrl": "https://yt3.ggpht.com/...",
  "commentText": "This song still brings joy 30 years later!",
  "likesCount": 342,
  "replyCount": 7,
  "publishedTimeText": "3 weeks ago",
  "isPinned": false,
  "commentUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ&lc=UgxK...",
  "scrapedAt": "2026-08-27T21:00:00.000Z"
}
```

#### Input Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `videoUrl` | string | **One** YouTube video URL or ID per run |
| `maxComments` | number | Max comments to extract (default: 100) |

#### Tips

- Extract comments from viral industry videos to discover customer questions and pain points

#### Use Cases

- **Video Sentiment Analysis** — Measure audience reaction to product announcements

### ✅ Capabilities & Limits

Stated up front, so you do not pay a run to find out. Derived from this Actor's own input schema.

| Input / feature | Supported | Notes |
|---|---|---|
| `videoUrl` — **required** | ✅ | YouTube video link (e.g. 'https://www.youtube.com/watch?v=dQw4w9WgXcQ') or Video ID. |
| Result volume (`maxComments`) | ⚠️ | ceiling on top-level comments returned |
| Top-level comment text, likes, author, timestamp | ✅ | |
| `replyCount` per comment | ✅ | the **count** of replies |
| **Reply text (nested replies)** | ❌ | reply threads are not followed; only the count is reported |
| **Sort order** | ❌ | no sort parameter is sent — you get YouTube's default order |
| Proxy | ⚠️ | Apify Proxy options |

#### FAQ

**Q: Are YouTube API keys required?**
A: No, public comment streams are extracted without API quotas.

**Q: Do I get the replies to each comment?**
A: You get `replyCount` — how many replies a comment has — not their text. Reply threads are a separate continuation that this actor does not follow.

**Q: Can I sort by newest?**
A: No. The request sends no sort parameter, so the order is YouTube's default.

***

### 🇧🇷 Português

#### Visão Geral

Extraia comentários, respostas, contagem de curtidas, datas e perfis de comentaristas em vídeos do YouTube em alta velocidade para análise de sentimento.

#### Funcionalidades

- **Extração em Alta Velocidade**: Milhares de comentários por minuto sem lentidão de navegador
- **Respostas e Discussões**: Coleta comentários principais e respostas aninhadas
- **Dados do Autor**: Nome, handle do canal, foto de perfil e total de curtidas

#### Exemplo de Entrada

```json
{
  "videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "maxComments": 100
}
```

#### Exemplo de Saída

```json
{
  "commentId": "UgxK...",
  "videoId": "dQw4w9WgXcQ",
  "authorName": "RetroMusicFan",
  "authorChannelUrl": "https://www.youtube.com/channel/UC...",
  "authorAvatarUrl": "https://yt3.ggpht.com/...",
  "commentText": "This song still brings joy 30 years later!",
  "likesCount": 342,
  "replyCount": 7,
  "publishedTimeText": "3 weeks ago",
  "isPinned": false,
  "commentUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ&lc=UgxK...",
  "scrapedAt": "2026-08-27T21:00:00.000Z"
}
```

#### Parâmetros de Entrada

| Parâmetro | Tipo | Descrição |
|-----------|------|-----------|
| `videoUrl` | string | **Uma** URL ou ID de vídeo por execução |
| `maxComments` | number | Máximo de comentários a extrair (padrão: 100) |

#### Dicas

- Extraia comentários de vídeos virais para descobrir dúvidas frequentes do seu público

#### Casos de Uso

- **Análise de Sentimento em Vídeos** — Meça a reação da audiência a lançamentos e produtos

#### Perguntas Frequentes

**P: Precisa de chave da API do YouTube?**
R: Não, os comentários públicos são extraídos sem necessidade de chave.

***

### 💰 Pricing

This actor uses **Pay Per Event (PPE)** pricing — you pay only per **item scraped** (`comment-scraped`). Platform usage is included. See the current price on the **Pricing** panel of this actor's Apify Store page.

***

### 🔗 Related Actors

- [Reclame Aqui Scraper](https://apify.com/viralanalyzer/reclameaqui-scraper)
- [iFood Restaurant Intelligence](https://apify.com/viralanalyzer/ifood-restaurant-intelligence)
- [Instagram Reels Scraper](https://apify.com/viralanalyzer/instagram-reels-scraper)
- [TikTok Viral Scanner](https://apify.com/viralanalyzer/tiktok-viral-scanner)
- [Google Maps BR Scraper](https://apify.com/viralanalyzer/google-maps-br-scraper)
- [Mercado Livre Scraper](https://apify.com/viralanalyzer/mercadolivre-scraper)

***

### 📝 Changelog

- **v1.0.0** (2026-08-20) — Initial release: full extraction, Pay-Per-Event pricing, and automated proxy support

***

### License

ISC © 2026 Viral Analyzer Platform

***

💡 **Need AI analysis on top of this data — sentiment, trend detection and a dashboard, with no API keys to manage?**\
[ViralAnalyzer](https://viralanalyzer.com.br) runs this actor + 42 more data sources with built-in AI. JSON + insights in one call.

# Actor input Schema

## `videoUrl` (type: `string`):

YouTube video link (e.g. 'https://www.youtube.com/watch?v=dQw4w9WgXcQ') or Video ID.

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

Maximum number of comments to extract.

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

Apify Proxy options.

## Actor input object example

```json
{
  "videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "maxComments": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `comments` (type: `string`):

Dataset output for YouTube Comments Scraper Pro Output

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

// Run the Actor and wait for it to finish
const run = await client.actor("viralanalyzer/youtube-comments-scraper-pro").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 = { "videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }

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

```

## MCP server setup

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

```

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/opOuU6uwAaYBEwGk3/builds/gNPeKgPIyKYAZK5Ot/openapi.json
