# YouTube Comments Scraper (`igview-owner/youtube-comment-finder`) Actor

Extract and scrape YouTube video comments with advanced filtering. Get comment text, author details, likes, replies, timestamps, and verified badges. Supports pagination, sorting by newest/top, and bulk extraction from multiple videos.

- **URL**: https://apify.com/igview-owner/youtube-comment-finder.md
- **Developed by:** [Sachin Kumar Yadav](https://apify.com/igview-owner) (community)
- **Categories:** Videos, Social media, Developer tools
- **Security:** Limited permissions
- **Stats:** 43 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $3.00 / 1,000 results

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 Comment Scraper - Extract Comments with Metadata

**🚀 Extract and scrape YouTube video comments with advanced filtering and metadata. Get comment text, author details, likes, replies, timestamps, verified badges, and more. Perfect for sentiment analysis, market research, and content insights!**

***

### 📋 Table of Contents

- [✨ Features](#-features)
- [🎯 Use Cases](#-use-cases)
- [⚡ Quick Start](#-quick-start)
- [📊 Input Parameters](#-input-parameters)
- [📤 Output Format](#-output-format)
- [🔧 Configuration Options](#-configuration-options)
- [❓ FAQ](#-faq)

***

### ✨ Features

#### 💬 **Comment Extraction Capabilities**

- ✅ **Bulk Comment Scraping** - Extract thousands of comments from multiple videos
- ✅ **Pagination Support** - Automatically fetch all comments with continuation tokens
- ✅ **Sort Options** - Get top comments or newest comments first
- ✅ **YouTube Shorts Support** - Full compatibility with YouTube Shorts videos
- ✅ **Batch Processing** - Process multiple videos in a single run
- ✅ **Custom Limits** - Control how many comments to extract per video

***

### 🎯 Use Cases

| Use Case | Description | Key Benefits |
|----------|-------------|--------------|
| 📊 **Sentiment Analysis** | Analyze audience reactions and opinions | Understand viewer sentiment, identify trends, gauge reception |
| 🔍 **Market Research** | Study competitor videos and audience feedback | Competitive intelligence, customer insights, product feedback |
| 🤖 **AI Training Data** | Collect comments for machine learning models | Large-scale datasets, diverse opinions, real user content |
| 📈 **Engagement Analytics** | Track comment patterns and engagement rates | Measure video performance, identify viral content, track growth |
| 🎓 **Academic Research** | Study social media behavior and communication | Research data, behavioral patterns, linguistic analysis |
| 🛡️ **Content Moderation** | Monitor comments for brand safety | Identify spam, detect harmful content, protect brand reputation |
| 💼 **Influencer Analysis** | Evaluate influencer audience engagement | Verify authenticity, measure influence, assess partnerships |
| 📱 **Social Listening** | Monitor brand mentions and customer feedback | Real-time feedback, crisis management, customer service |

***

### ⚡ Quick Start

#### 1️⃣ **Basic Usage - Extract Top Comments**

```json
{
  "video_urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "sort_by": "top",
  "max_comments": 100
}
```

#### 2️⃣ **Extract Newest Comments**

```json
{
  "video_urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "sort_by": "newest",
  "max_comments": 500
}
```

#### 3️⃣ **Bulk Extraction from Multiple Videos**

```json
{
  "video_urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "https://youtu.be/dQw4w9WgXcQ",
    "jNQXAC9IVRw"
  ],
  "geo": "US",
  "lang": "en",
  "sort_by": "top",
  "max_comments": 200
}
```

#### 4️⃣ **Extract All Available Comments**

```json
{
  "video_urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "sort_by": "top"
}
```

*Note: Leave `max_comments` empty to extract all available comments*

***

### 📊 Input Parameters

| Parameter | Type | Required | Description | Default | Example |
|-----------|------|----------|-------------|---------|---------|
| `video_urls` | Array | ✅ **Yes** | YouTube video URLs or video IDs | - | `["https://youtube.com/watch?v=..."]` |
| `geo` | String | ❌ No | ISO 3166-2 country code | `"US"` | `"US"`, `"IN"`, `"GB"` |
| `lang` | String | ❌ No | Language/locale code | `"en"` | `"en"`, `"es"`, `"hi"` |
| `sort_by` | String | ❌ No | Sort order: `top` or `newest` | `"top"` | `"top"`, `"newest"` |
| `max_comments` | Integer | ❌ No | Max comments per video | All | `100`, `500`, `1000` |

#### 🔗 **Supported URL Formats**

- ✅ `https://www.youtube.com/watch?v=VIDEO_ID`
- ✅ `https://youtu.be/VIDEO_ID`
- ✅ `https://www.youtube.com/shorts/VIDEO_ID`
- ✅ `https://www.youtube.com/embed/VIDEO_ID`
- ✅ `https://m.youtube.com/watch?v=VIDEO_ID`
- ✅ Direct video ID: `VIDEO_ID` (e.g., `jNQXAC9IVRw`)

***

### 📤 Output Format

#### 💬 **Comment Data Structure**

```json
{
  "source": "youtube",
  "input_url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
  "video_id": "jNQXAC9IVRw",
  "comment_id": "UgzuC3zzpRZkjc5Qzsd4AaABAg",
  "author_name": "@SanDiegoZoo",
  "author_channel_id": "UCC5NfQ6Mf0dq_eEwv4P_hWA",
  "author_thumbnail": "https://yt3.ggpht.com/...",
  "text": "We're so honored that the first ever YouTube video was filmed here!",
  "published_time_text": "5 years ago",
  "publish_date": "2020-11-07",
  "published_at": "2020-11-07T00:00:00Z",
  "likes_count": "4.3M",
  "reply_count": 985,
  "is_verified": true,
  "is_artist": false,
  "is_creator": false,
  "is_channel_owner": false,
  "reply_token": "Eg0SC2pOUVhBQzlJVlJ3GAYy..."
}
```

#### 📋 **Output Fields Explained**

| Field | Type | Description |
|-------|------|-------------|
| `source` | String | Always "youtube" |
| `input_url` | String | Original input URL |
| `video_id` | String | YouTube video ID |
| `comment_id` | String | Unique comment identifier |
| `author_name` | String | Comment author's username |
| `author_channel_id` | String | Author's YouTube channel ID |
| `author_thumbnail` | String | Author's profile picture URL |
| `text` | String | Comment text content |
| `published_time_text` | String | Human-readable publish time |
| `publish_date` | String | ISO date (YYYY-MM-DD) |
| `published_at` | String | ISO 8601 timestamp |
| `likes_count` | String | Number of likes (formatted) |
| `reply_count` | Integer | Number of replies |
| `is_verified` | Boolean | Has verified badge |
| `is_artist` | Boolean | Has artist badge |
| `is_creator` | Boolean | Has creator badge |
| `is_channel_owner` | Boolean | Is video uploader |
| `reply_token` | String | Token to fetch replies |

***

### 🔧 Configuration Options

#### 🌍 **Supported Countries (Geo Codes)**

| Region | Code | Region | Code | Region | Code |
|--------|------|--------|------|--------|------|
| 🇺🇸 United States | `US` | 🇮🇳 India | `IN` | 🇬🇧 United Kingdom | `GB` |
| 🇩🇪 Germany | `DE` | 🇯🇵 Japan | `JP` | 🇧🇷 Brazil | `BR` |
| 🇨🇦 Canada | `CA` | 🇫🇷 France | `FR` | 🇪🇸 Spain | `ES` |
| 🇷🇺 Russia | `RU` | 🇦🇺 Australia | `AU` | 🇮🇹 Italy | `IT` |
| 🇳🇱 Netherlands | `NL` | 🇹🇷 Türkiye | `TR` | 🇮🇩 Indonesia | `ID` |
| 🇲🇽 Mexico | `MX` | 🇰🇷 South Korea | `KR` | 🇸🇦 Saudi Arabia | `SA` |
| 🇦🇪 UAE | `AE` | 🇵🇰 Pakistan | `PK` | 🇧🇩 Bangladesh | `BD` |
| 🇳🇬 Nigeria | `NG` | 🇵🇭 Philippines | `PH` | 🇻🇳 Vietnam | `VN` |
| 🇹🇭 Thailand | `TH` | 🇪🇬 Egypt | `EG` | 🇿🇦 South Africa | `ZA` |

#### 🗣️ **Supported Languages**

| Language | Code | Language | Code | Language | Code |
|----------|------|----------|------|----------|------|
| English | `en` | Spanish | `es` | French | `fr` |
| German | `de` | Hindi | `hi` | Japanese | `ja` |
| Korean | `ko` | Portuguese | `pt` | Russian | `ru` |
| Arabic | `ar` | Italian | `it` | Indonesian | `id` |
| Turkish | `tr` | Vietnamese | `vi` | Thai | `th` |
| Chinese | `zh` | Polish | `pl` | Dutch | `nl` |
| Swedish | `sv` | Norwegian | `no` | - | - |

#### 📊 **Sort Options**

| Option | Description | Best For |
|--------|-------------|----------|
| `top` | Most popular comments first | Finding highly-engaged comments, viral content |
| `newest` | Most recent comments first | Real-time monitoring, latest feedback |

***

### ❓ FAQ

#### **Q: How many comments can I extract?**

**A:** You can extract unlimited comments! Set `max_comments` to control the limit per video, or leave it empty to extract all available comments. Most videos have 100-10,000 comments, but viral videos can have millions.

#### **Q: Does this work with YouTube Shorts?**

**A:** Yes! The actor fully supports YouTube Shorts. Just provide the Shorts URL or video ID.

#### **Q: Can I extract comment replies?**

**A:** The actor extracts top-level comments and provides `reply_token` for each comment. You can use this token to fetch nested replies in a separate request.

#### **Q: What's the difference between 'top' and 'newest' sorting?**

**A:**

- **Top**: Comments sorted by popularity (most likes first) - Best for sentiment analysis
- **Newest**: Comments sorted by recency (latest first) - Best for real-time monitoring

#### **Q: How do I handle videos with millions of comments?**

**A:** Set a reasonable `max_comments` limit (e.g., 1000-5000) to avoid long runtimes. For most use cases, the top comments provide sufficient insights.

#### **Q: Can I extract comments from private or deleted videos?**

**A:** No, the actor can only extract comments from publicly available videos.

#### **Q: What happens if a video has comments disabled?**

**A:** The actor will return an empty dataset for that video and log a warning message.

#### **Q: Are there any rate limits?**

**A:** The actor includes built-in rate limiting and retry logic to handle API throttling automatically.

#### **Q: How accurate are the like counts?**

**A:** Like counts are provided as-is from YouTube's API. They may be abbreviated (e.g., "4.3M" instead of exact numbers).

#### **Q: Can I extract comments in specific languages only?**

**A:** The `lang` parameter sets the locale for the request, but YouTube returns all comments regardless of language. You'll need to filter by language in post-processing.

***

### Get Started Now

**Ready to extract YouTube comments data?**

1. Enter the **YouTube video URL** or **video ID**
2. Set **maxComments** (0 for unlimited)
3. Select your preferred **sorting**, **region**, and **language**
4. Click "Start" to run the actor
5. View results in clean table views
6. Export data in your preferred format
7. Click ["Try for free"](https://apify.com?fpr=ykgg9c) to test the actor

**If this actor helps your workflow, please give it a star!**

#### 📊 **Related Actors**

Looking for more YouTube data? Check out these complementary actors:

- **[YouTube Video Downloader](https://apify.com/igview-owner/youtube-video-downloader-api)**
- **[YouTube Comment Scraper](https://apify.com/igview-owner/youtube-comment-finder)**
- **[YouTube Search Scraper](https://apify.com/igview-owner/youtube-search-scraper)**
- **[YouTube Video Scraper](https://apify.com/igview-owner/youtube-video-details-scraper)**
- **[YouTube Subtitles Scraper](https://apify.com/igview-owner/youtube-subtitles-scraper)**
- **[YouTube Transcript Scraper](https://apify.com/igview-owner/youtube-transcript-scraper)**
- **[YouTube Channel Videos Scraper](https://apify.com/igview-owner/youtube-channel-videos-scraper)**
- **[YouTube Shorts Scraper](https://apify.com/igview-owner/youtube-shorts-scraper)**

***

### 🏷️ Find Me

`youtube comment scraper`, `youtube comment extractor`, `youtube comments api`, `extract youtube comments`, `youtube comment finder`, `youtube comment history`, `youtube sentiment analysis`, `youtube comment data`, `youtube scraper`, `youtube api`, `comment extraction`, `youtube analytics`, `social media scraper`, `youtube engagement`, `comment analysis`, `youtube data mining`, `youtube research tool`, `youtube comment search`, `apify actor`, `youtube automation`, `bulk comment extraction`, `youtube comment downloader`, `youtube feedback analysis`, `youtube market research`, `youtube nlp`, `youtube text mining`, `youtube opinion mining`, `youtube comment parser`, `youtube data extraction`, `youtube web scraping`, `youtube comment collector`, `youtube insights`, `youtube audience analysis`, `youtube engagement metrics`, `youtube comment export`, `youtube csv export`, `youtube json data`, `youtube batch processing`, `youtube shorts comments`, `youtube video comments`, `youtube comment replies`, `verified comments`, `youtube creator comments`, `youtube top comments`, `newest youtube comments`, `youtube comment bot`

*Built with ❤️ by Sachin Kumar Yadav using Apify Platform*

# Actor input Schema

## `video_urls` (type: `array`):

📺 List of YouTube video URLs or video IDs to extract comments from. Supports regular videos, Shorts, and various URL formats. Example: https://www.youtube.com/watch?v=jNQXAC9IVRw or just the video ID: jNQXAC9IVRw

## `geo` (type: `string`):

🗺️ ISO 3166-2 country code for region-specific content. Example: US, GB, CA, IN, etc. Leave empty for default.

## `lang` (type: `string`):

🌐 Locale/language for request. Example: en, gb, hi, es, etc. Leave empty for default.

## `sort_by` (type: `string`):

🔝 Choose how to sort comments: 'top' for most popular comments or 'newest' for most recent comments.

## `max_comments` (type: `integer`):

🎯 Maximum number of comments to extract per video. Leave empty to extract all available comments. Recommended: 100-500 for faster results.

## Actor input object example

```json
{
  "video_urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "geo": "US",
  "lang": "en",
  "sort_by": "top",
  "max_comments": 20
}
```

# Actor output Schema

## `overview` (type: `string`):

Complete overview of all extracted items.

# 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 = {
    "video_urls": [
        "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    ],
    "geo": "US",
    "lang": "en",
    "sort_by": "top",
    "max_comments": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("igview-owner/youtube-comment-finder").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 = {
    "video_urls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],
    "geo": "US",
    "lang": "en",
    "sort_by": "top",
    "max_comments": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("igview-owner/youtube-comment-finder").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 '{
  "video_urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "geo": "US",
  "lang": "en",
  "sort_by": "top",
  "max_comments": 20
}' |
apify call igview-owner/youtube-comment-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,igview-owner/youtube-comment-finder"
        }
    }
}
```

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/R9qgUiCfAeRZkfL7P/builds/8S1cecfyvImFbQ84p/openapi.json
