# YouTube Comments Scraper: Comments, Replies & Likes (`veenkes/veenkes-youtube-comments`) Actor

Scrape YouTube comments without login or API key: top or newest comments with replies, likes, reply counts, author channel, pinned and hearted flags, dates. Videos and Shorts by URL or ID. Export to CSV, JSON or Excel.

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

## Pricing

from $0.30 / 1,000 comment saveds

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 & Likes

A fast **YouTube comments scraper** — no login, no API key, no YouTube Data API quota. Paste video or Shorts URLs and get every comment with **replies, likes, reply counts, author channel, pinned and hearted flags** and dates.

Sort by **top** or **newest**. Ready for sentiment analysis, audience research, giveaways and AI datasets. Export to JSON, CSV, Excel or Google Sheets.

### Why use this YouTube comments scraper?

- 🔓 **No API key or quota:** reads YouTube's public web data, so there is no 10,000-unit daily quota to manage.
- 💬 **Comments and replies:** each reply is its own row with `parentCommentId`, so threads stay intact.
- 📌 **Context flags:** pinned, hearted by creator, edited, verified author, channel owner.
- ⚡ **Fast first run:** the prefilled input returns 50 comments in a few seconds.
- 🎬 **Videos and Shorts:** watch URLs, youtu.be links, Shorts URLs or plain video IDs.
- 💸 **From $0.30 per 1,000 comments.** No monthly rental.

### Who is it for?

- **Marketers and brand teams:** measure audience sentiment and collect feedback on campaigns and competitors' videos.
- **Creators and agencies:** find top questions, run giveaways, spot superfans.
- **Researchers and data scientists:** build comment datasets for NLP, toxicity and sentiment models.
- **Product teams:** mine reviews and unboxing videos for feature requests and complaints.

### What data does it extract?

| Field | Example |
|---|---|
| `videoId`, `videoUrl`, `videoTitle`, `videoChannelName` | `dQw4w9WgXcQ`, video title, channel |
| `commentId`, `commentUrl`, `text` | comment text and a direct link (`&lc=`) |
| `authorName`, `authorChannelId`, `authorChannelUrl`, `authorAvatar` | `@grustache4569` |
| `authorIsVerified`, `authorIsChannelOwner` | `false`, `false` |
| `likeCount`, `likeCountText`, `replyCount` | `108000`, `108K`, `718` |
| `publishedTimeText`, `publishedAtApprox` | `6 years ago`, approximate ISO date |
| `isEdited`, `isPinned`, `isHearted` | comment flags |
| `isReply`, `parentCommentId`, `replyLevel` | thread structure |

### How to use it

1. Paste one or more **video URLs** (or Shorts URLs, or IDs).
2. Set **max comments per video**, choose **Top** or **Newest**, and switch on **Include replies** if you need threads.
3. Click **Start** and export to JSON, CSV or Excel, or schedule it to track new comments daily.

### Run it from the API

You can start this Actor from any language with the official [Apify API client](https://docs.apify.com/api/client/python). Replace `YOUR_APIFY_TOKEN` with a token from [Apify Console > Integrations](https://console.apify.com/account/integrations). Never put the token in a public repo.

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("veenkes/veenkes-youtube-comments").call(run_input={
    "videos": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    ],
    "maxCommentsPerVideo": 200,
    "sort": "top",
    "includeReplies": True,
    "maxRepliesPerComment": 20
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('veenkes/veenkes-youtube-comments').call({
    "videos": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    ],
    "maxCommentsPerVideo": 200,
    "sort": "top",
    "includeReplies": true,
    "maxRepliesPerComment": 20
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

Schedule the Actor, send results to a webhook, or connect it in Zapier, Make or n8n. Store page: <https://apify.com/veenkes/veenkes-youtube-comments>.

### Use from AI agents (Apify MCP)

AI agents can run this Actor through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Connect Claude, Cursor or any MCP-compatible client to Apify, then ask the agent to call `veenkes/veenkes-youtube-comments` with an input like the example above. The agent discovers the tool from the Actor title and description.

### How much does it cost?

| Apify plan tier | Price per 1,000 comments |
|---|---|
| FREE | $0.60 |
| BRONZE | $0.50 |
| SILVER | $0.40 |
| GOLD and above | $0.30 |

There is also a $0.00005 start fee per run.

### Input example

```json
{
    "videos": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://www.youtube.com/shorts/ai1gIWacf0I"
    ],
    "maxCommentsPerVideo": 500,
    "sort": "newest",
    "includeReplies": true,
    "maxRepliesPerComment": 50
}
```

### Output example

```json
{
    "videoId": "dQw4w9WgXcQ",
    "videoTitle": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
    "commentId": "UgzKYksqeQ5gA3t0g0F4AaABAg",
    "commentUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ&lc=UgzKYksqeQ5gA3t0g0F4AaABAg",
    "text": "I Rick rolled my entire French class because …",
    "authorName": "@grustache4569",
    "authorChannelId": "UCKrzgYonJnMd0Dk7zQXjYXw",
    "likeCount": 108000,
    "likeCountText": "108K",
    "replyCount": 718,
    "publishedTimeText": "6 years ago",
    "isPinned": false,
    "isHearted": false,
    "isReply": false,
    "parentCommentId": null
}
```

The key-value store record `SUMMARY` lists every input with its status and the number of items saved.

### Limitations

- YouTube shows like counts rounded above 1,000 (e.g. `108K`); `likeCount` is the parsed number.
- Dates are relative on YouTube (`3 days ago`); `publishedAtApprox` converts them to an approximate ISO date.
- Videos with comments turned off, private or age-restricted videos return no comments (listed in `SUMMARY`).

### Why this one?

Replies, pinned/hearted flags and author channels are included at one flat price per comment, with no per-video or per-query fee and no API key. Small runs cost cents, so it is easy to try on the free plan.

### FAQ

**Do I need a YouTube API key?**
No. The Actor reads public comments without logging in and without the YouTube Data API.

**How many comments can I get?**
As many as YouTube shows for the video. Set `maxCommentsPerVideo` high for full exports.

**Is it legal?**
It collects only publicly visible comments. Please follow data protection laws (such as GDPR) when you process personal data.

***

### Integrations

- **Apify API** — Python and JavaScript clients (examples above), plus a REST API.
- **AI agents** — run it via the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp).
- **Automation tools** — Zapier, Make, n8n, or an Apify webhook when a run finishes.
- **Export** — download the dataset as JSON, CSV, Excel or XML, or load it from a scheduled run.

[Open the Actor in Apify Store](https://apify.com/veenkes/veenkes-youtube-comments).

*Not affiliated with or endorsed by YouTube or Google LLC.*

# Actor input Schema

## `videos` (type: `array`):

YouTube video or Shorts URLs, or 11-character video IDs.

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

Maximum top-level comments saved per video. Replies are counted separately.

## `sort` (type: `string`):

Top comments (YouTube's ranking) or newest first.

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

Also save replies to each comment (each reply is a separate row with parentCommentId).

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

Used when Include replies is on.

## `language` (type: `string`):

Language for relative dates and counters (keep 'en' for parsed numbers and dates).

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

Not needed in most cases. Use it only if YouTube starts rate-limiting large runs.

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "maxCommentsPerVideo": 50,
  "sort": "top",
  "includeReplies": false,
  "maxRepliesPerComment": 20,
  "language": "en"
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "videos": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    ],
    "maxCommentsPerVideo": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("veenkes/veenkes-youtube-comments").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 = {
    "videos": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],
    "maxCommentsPerVideo": 50,
}

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

```

## MCP server setup

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

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/jyfonJrTcfWmq4Qdr/builds/fVLBwbr35ii8BADUS/openapi.json
