# YouTube Comments Scraper: Text, Likes, Replies & Authors (`datadesk-io/youtube-comments-scraper`) Actor

Export YouTube comments from any video or Short: comment text, author and channel, likes, reply count, pinned and creator flags, date and comment link. Top or newest first, bulk videos, new-comment alerts, no API key. $0.60 per 1,000 comments.

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

## Pricing

from $0.48 / 1,000 comments

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: Text, Likes, Replies & Authors

Export **YouTube comments** from any video, Short or live replay: **comment text, author handle and channel, likes, reply count, pinned and video-creator flags, verified badge, date and a direct comment link**, plus the video title and channel. Choose **Top comments or Newest first**, paste **many videos at once**, and schedule **new-comment alerts** to monitor your channel or competitors. No YouTube API key, no quota, no login. **$0.60 per 1,000 comments.**

### Try it now (one click)

1. Click **Start**. The prefilled input reads the top 20 comments of "Me at the zoo", the first YouTube video. In our latest check (Nov 16, 2026) it returned **20 comments in about 2 seconds**. An empty input runs a small demo too.
2. Paste video URLs or IDs (one per line), pick Top or Newest and the max comments per video.
3. Download the results as CSV, Excel or JSON, or get them via API, webhooks, Make or Zapier.

**Price example:** 100 comments = **$0.065**, 1,000 comments = **$0.605** ($0.60 per 1,000 comments + $0.005 per run). Silver and Gold plan users pay 10% and 20% less per comment. Apify's free plan includes $5 of usage every month, enough for about 8,325 comments. Runs that find nothing are not charged.

#### Sample of real results

*Real rows from a local test run on Nov 16, 2026 (some columns). Each comment also includes the other fields listed below.*

| Author | Comment | Likes | Replies | Pinned | Published |
|---|---|---|---|---|---|
| @SanDiegoZoo | We're so honored that the first ever YouTube v… | 4,800,000 | 986 | True | 6 years ago |
| @Jeff-th5ob | This guys is the only person who has the right… | 422,000 | 851 | False | 6 years ago |
| @TapL | Seeing "20 years ago" on a YouTube video makes… | 214,000 | 995 | False | 1 year ago |
| @iamhere-v02 | A 21 years old video. First video of youtube. | 169 | 10 | False | 1 day ago |

### What you get

| Field group | Fields |
|---|---|
| Comment | comment ID, text, direct link, edited flag |
| Engagement | likes, reply count, pinned |
| Author | handle, channel ID and URL, avatar, verified, is video creator |
| Date | published time as shown + approximate ISO date |
| Video | video ID, URL, title, channel |

### Why this Actor

- **No API key or quota:** the YouTube Data API caps you at a few thousand comment pages per day.
- **Cheaper:** $0.60 per 1,000 comments vs $2 per 1,000 for the most used comments scraper.
- **Newest-first monitoring:** schedule it with alerts and get only comments you have not seen.
- **Clean, flat rows** ready for sentiment analysis, CSV or a CRM.

### How to use it

1. Click **Try for free** (or **Start**): the prefilled input runs a quick test.
2. Paste video URLs or IDs (one per line), pick Top or Newest and the max comments per video.
3. Click **Start** and wait a few seconds.
4. Open the **Output** tab and export as **JSON, CSV, Excel, XML or HTML**, or read the dataset via API.

### Input examples

**Top 20 comments of one video:**

```json
{"videoUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"], "maxCommentsPerVideo": 20}
```

**Newest 500 comments of several videos:**

```json
{"videoUrls": ["https://youtu.be/dQw4w9WgXcQ", "https://www.youtube.com/shorts/ai1gIWacf0I"], "sortBy": "newest", "maxCommentsPerVideo": 500}
```

**Daily new-comment alert:**

```json
{"videoUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"], "sortBy": "newest", "maxCommentsPerVideo": 200, "onlyNewComments": true, "alertsKey": "my-videos"}
```

#### Input fields

| Field | Type | Description |
|---|---|---|
| `videoUrls` | array | Videos to get comments from: watch, youtu.be, Shorts or live URLs, or 11-character video IDs. One per line. Leave empty for a demo video. |
| `maxCommentsPerVideo` | integer | How many top-level comments to save per video (hard cap on cost). |
| `sortBy` | string | Comment order, same as the YouTube "Sort by" menu. Use Newest first for monitoring. |
| `onlyNewComments` | boolean | Return only comments not seen in previous runs with the same alerts key. Schedule with Sort by = Newest first to monitor your videos. |
| `alertsKey` | string | Name for this alert memory (use a different key per video list). |

### Output example

*Example record from a local test run (long lists shortened).*

```json
{
  "videoId": "jNQXAC9IVRw",
  "videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
  "videoTitle": "Me at the zoo",
  "videoChannel": "jawed",
  "commentId": "UgzuC3zzpRZkjc5Qzsd4AaABAg",
  "commentUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw&lc=UgzuC3zzpRZkjc5Qzsd4AaABAg",
  "text": "We're so honored that the first ever YouTube video was filmed here!",
  "author": "@SanDiegoZoo",
  "authorChannelId": "UCC5NfQ6Mf0dq_eEwv4P_hWA",
  "authorChannelUrl": "https://www.youtube.com/channel/UCC5NfQ6Mf0dq_eEwv4P_hWA",
  "authorAvatarUrl": "https://yt3.ggpht.com/i8RqA9tYqbbnOi4mlnYEY7IR3kXAoDqQbM_5Sfzw7OjTubiGsOaTdlrIZmj-I0q0Vup68eqs=s88-c-k-c0x00ffffff-no-rj",
  "authorIsVerified": true,
  "authorIsCreator": false,
  "likeCount": 4800000,
  "replyCount": 986,
  "isPinned": true,
  "publishedTimeText": "6 years ago",
  "publishedAtApprox": "2020-11-16T11:25:04+00:00",
  "isEdited": false,
  "source": "youtube.com comments",
  "scrapedAt": "2026-11-16T23:25:04.286591+00:00",
  "isNew": false
}
```

#### Output fields

| Field | Description |
|---|---|
| `videoId` | YouTube video ID |
| `videoUrl` | Link to the video |
| `videoTitle` | Title of the video |
| `videoChannel` | Channel that published the video |
| `commentId` | YouTube comment ID |
| `commentUrl` | Direct link to the comment (highlighted on the video page) |
| `text` | Comment text |
| `author` | Comment author handle, e.g. @name |
| `authorChannelId` | Channel ID of the author |
| `authorChannelUrl` | Link to the author channel |
| `authorAvatarUrl` | Author profile picture URL |
| `authorIsVerified` | True if the author has the verified badge |
| `authorIsCreator` | True if the comment was written by the video owner |
| `likeCount` | Number of likes (rounded as shown, e.g. 4.8M -> 4800000) |
| `replyCount` | Number of replies to the comment |
| `isPinned` | True if the creator pinned the comment |
| `publishedTimeText` | When it was posted as YouTube shows it, e.g. 2 days ago |
| `publishedAtApprox` | Approximate posting date (UTC) computed from the relative time |
| `isEdited` | True if the comment was edited |
| `source` | Data source |
| `isNew` | True if not seen in earlier runs with the same alerts key (alerts mode) |
| `scrapedAt` | When this record was collected (UTC) |

### Pricing

Pay-per-event: **$0.005** once per run that saves results + **$0.0006 per comment** ($0.60 / 1,000). Runs that save nothing are not charged.

| Comments saved | Approx. cost |
|---|---|
| 20 | $0.017 |
| 100 | $0.065 |
| 1,000 | $0.605 |
| 10,000 | $6.005 |

### Use cases

- Sentiment and feedback analysis for products, launches and ads
- Community management: catch new questions and complaints fast
- Competitor research: what viewers ask and complain about
- Lead and creator discovery from active commenters
- Training and evaluation data for AI models

### Integrations / API

Works with the Apify API, Schedules, webhooks, Make, Zapier, n8n and MCP. Example:

```bash
curl "https://api.apify.com/v2/acts/datadesk-io~youtube-comments-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"videoUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"], "maxCommentsPerVideo": 20}'
```

Python:

```python
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("datadesk-io/youtube-comments-scraper").call(run_input={"videoUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"], "maxCommentsPerVideo": 20})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### MCP

Use this Actor from an MCP client (Cursor, Claude Desktop, etc.) through the Apify MCP server (`datadesk-io/youtube-comments-scraper`).

### Alerts mode

Turn on **Only new comments**, set **Sort by = Newest first** and schedule the Actor: each run returns only comments not seen in earlier runs with the same alerts key (nothing is charged when there is nothing new).

### FAQ

**Do I need a YouTube API key?** No. The Actor reads the public comments shown on the video page.

**Does it include replies?** It returns top-level comments with their reply count. Replies are not exported yet; tell us in Issues if you need them.

**Are like counts exact?** YouTube shows rounded likes for big numbers (e.g. 4.8M); we convert them to numbers.

**What if comments are turned off?** The video is skipped with a log message and nothing is charged.

### Limitations

- Top-level comments only (reply text is not exported yet).
- Likes are rounded as shown by YouTube.
- Comment dates are relative ("2 days ago"); publishedAtApprox is computed from them.
- Videos with comments turned off, private or age-restricted videos are skipped.

### Start now

Click **Start** to run the prefilled example, then adjust the input. Missing a field or filter? Open an issue on the **Issues** tab and tell us what you need.

### Support

Questions, bugs or a missing field? Email **datadesk.io@proton.me** or open an issue on the Actor page.

***

**ES:** Exporta comentarios de YouTube: texto, autor, likes, respuestas, fijado y fecha. Top o más recientes, varios videos, alertas. **$0,60 / 1.000 comentarios.**
**PT:** Exporte comentários do YouTube: texto, autor, likes, respostas, fixado e data. Top ou mais recentes, vários vídeos, alertas. **$0,60 / 1.000 comentários.**

# Actor input Schema

## `videoUrls` (type: `array`):

Videos to get comments from: watch, youtu.be, Shorts or live URLs, or 11-character video IDs. One per line. Leave empty for a demo video.

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

How many top-level comments to save per video (hard cap on cost).

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

Comment order, same as the YouTube "Sort by" menu. Use Newest first for monitoring.

## `onlyNewComments` (type: `boolean`):

Return only comments not seen in previous runs with the same alerts key. Schedule with Sort by = Newest first to monitor your videos.

## `alertsKey` (type: `string`):

Name for this alert memory (use a different key per video list).

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "https://youtu.be/dQw4w9WgXcQ"
  ],
  "maxCommentsPerVideo": 500,
  "sortBy": "newest",
  "onlyNewComments": 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 = {
    "videoUrls": [
        "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    ],
    "maxCommentsPerVideo": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datadesk-io/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 = {
    "videoUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],
    "maxCommentsPerVideo": 20,
}

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

```

## MCP server setup

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