# YouTube Comments Scraper: Replies Included, $0.50/1K Comments (`actorforgehq/youtube-comments-scraper`) Actor

Input: YouTube video or Shorts URLs, sort order (top or newest) and a limit per video. Output: one JSON row per comment or reply with text, author, channel ID, like count, reply count, publish date and video ID. Replies cost the same. $0.50 per 1,000 comments, no start fee.

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

## Pricing

$0.50 / 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.

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: Replies Included, $0.50/1K Comments

Get **comments and replies of YouTube videos and Shorts** as clean JSON: one row per comment and
one row per reply, with the text, the author and their channel, likes, reply count, the date, and
whether the comment is pinned or hearted by the creator. Pick **Top comments** or **Newest first**,
set a limit per video, and decide how many replies you want under each comment.

It reads the comments that YouTube itself shows on the video page, over plain HTTP with no page
rendering, no YouTube account, no cookies and no API key. Replies cost the same as comments.
Videos with comments turned off are listed with the reason and are not charged.

### What you get

One row per comment:

```json
{
  "type": "comment",
  "commentId": "UgzuC3zzpRZkjc5Qzsd4AaABAg",
  "parentId": null,
  "videoId": "jNQXAC9IVRw",
  "videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
  "videoTitle": "Me at the zoo",
  "videoCommentCount": 10644997,
  "text": "We're so honored that the first ever YouTube video was filmed here!",
  "authorName": "@SanDiegoZoo",
  "authorChannelId": "UCC5NfQ6Mf0dq_eEwv4P_hWA",
  "authorChannelUrl": "https://www.youtube.com/@SanDiegoZoo",
  "authorIsChannelOwner": false,
  "authorIsVerified": true,
  "isPinned": true,
  "isHearted": true,
  "likeCount": 4800000,
  "likeCountText": "4.8M",
  "replyCount": 986,
  "publishedTimeText": "6 years ago",
  "publishedAt": "2020-11-12T08:15:00.000Z",
  "publishedAtIsApproximate": true,
  "isEdited": false,
  "reason": null,
  "scrapedAt": "2026-11-12T08:15:00.000Z"
}
```

A reply looks the same, with `type: "reply"`, `parentId` set to the comment it answers and
`replyCount` set to `null`. This one is the creator answering under their own video:

```json
{
  "type": "reply",
  "commentId": "Ugz_PYpSmiZz5JTzlRR4AaABAg.8YLKZ7hl_HX8YLPI4RU5hY",
  "parentId": "Ugz_PYpSmiZz5JTzlRR4AaABAg",
  "videoId": "aircAruvnKk",
  "videoTitle": "But what is a neural network? | Deep learning chapter 1",
  "videoCommentCount": 9519,
  "text": "Huh, I never thought about it this way, but that's a nice way to phrase what I'm shooting for.",
  "authorName": "@3blue1brown",
  "authorIsChannelOwner": true,
  "likeCount": 1500,
  "likeCountText": "1.5K",
  "replyCount": null,
  "publishedTimeText": "9 years ago"
}
```

A video without comments still gets one row of `type: "video"` with the reason, free of charge:

```json
{
  "type": "video",
  "videoId": "XqZsoesa55w",
  "videoTitle": "Baby Shark Dance | #babyshark Most Viewed Video | Animal Songs | PINKFONG Songs for Children",
  "commentId": null,
  "text": null,
  "reason": "Comments are turned off for this video (by the uploader, or because it is made for kids)."
}
```

Other reasons are a removed, private or wrong video link, and a video that has no comments yet.

### Input

| Field | Type | Description |
|---|---|---|
| `urls` | string\[] | Video or Shorts links, one per line: watch links, `youtu.be` links, `/shorts/` links or bare 11 character video ids. Playlist and channel links are skipped, paste the video links instead. |
| `sort` | string | `top` (default): YouTube's Top comments order, pinned and most liked first. `newest`: latest comments first, and it goes much deeper on big videos (see Limits). |
| `maxCommentsPerVideo` | integer | Top-level comments taken from each video (default 100, max 10,000). Replies are counted separately. |
| `includeReplies` | boolean | Default `true`. Also save the replies under each comment, one row per reply. Replies cost the same as comments. |
| `maxRepliesPerComment` | integer | Replies taken under each comment when replies are on (default 20, max 1,000). |
| `onlyNew` | boolean | Default `false`. Skip comments and replies this Actor already gave you in earlier runs with the same video list. With `newest`, reading stops at the first comment you already have. |
| `proxyConfiguration` | object | Defaults to Apify **datacenter proxy**, which is enough for comments. You can switch to residential or use your own proxies. |

Example:

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=iG9CE55wbtY",
    "https://youtu.be/dQw4w9WgXcQ",
    "https://www.youtube.com/shorts/kPI9Mc35mOg"
  ],
  "sort": "top",
  "maxCommentsPerVideo": 200,
  "includeReplies": true,
  "maxRepliesPerComment": 10
}
```

### How to use it

1. Click **Try for free** or **Start** on this page.
2. Paste your video links, pick the sort order and the limits.
3. Run it. Comments and replies land in the dataset, one row each. Export them as JSON, CSV or
   Excel, or pull them over the API.

To watch a video for new comments, run it on an Apify **Schedule** with `sort: "newest"` and
`onlyNew: true`: each run reads only until the first comment you already have and charges only for
the new ones. There is no per-run start fee. To call it from code, use the
[Apify API](https://docs.apify.com/api/v2) or an official client. AI agents can call it through the
**Apify MCP server**: the description and the input fields above are written to be read by an agent.

### Pricing

Pay-per-event, one event, nothing else:

| Event | Rate |
|---|---|
| `comment-scraped` | **$0.50 per 1,000** ($0.0005 each), one per comment or reply row |
| Video row without comments | **free** |
| Run start | **free, there is no start event** |

**What you get for $1:** 2,000 comments or replies. Platform usage (compute, proxy) is charged to
us, not to you, so the per-row price is the whole bill. Replies are rows too, so plan your limits:
with the defaults (100 comments and up to 20 replies under each), one popular video can return up
to 2,100 rows ($1.05). With replies off, the same run is 100 rows ($0.05). Rates are as of the last
README update. The Store page stays authoritative.

### Limits (honest)

- **Top comments stop at about 1,150 per video.** In the Top order YouTube itself shows only part
  of the comments: in our tests (November 2026) it ended after about 1,150 top-level comments both
  on a video with 6,820 comments and on one with 2.4 million. **Newest first goes much deeper:** it
  read all 5,125 top-level comments of the 6,820 comment video and 8,000 of the 2.4 million one
  without reaching the end. The Actor takes at most 10,000 top-level comments per video.
- **Top comments is a filtered view.** Besides stopping early, YouTube's Top order can leave out
  some comments that Newest first shows: in our tests 2 of 4 top-level comments on one small video
  and 367 of 386 on a live stream recording. For a complete list of a small or medium video, use
  Newest first.
- **Likes above 1,000 are rounded by YouTube.** YouTube shows "3.4K" everywhere it sends the like
  count, so `likeCount` is the number read from that text (3400) and `likeCountText` keeps the text.
  Below 1,000 the count is exact.
- **Dates are relative.** YouTube gives "7 years ago" or "2 hours ago", never an exact timestamp.
  `publishedAt` is computed from that text at scrape time, so it is only as precise as the text,
  and `publishedAtIsApproximate` is always `true`. `isEdited` tells you when the text says "(edited)".
- **Counts are YouTube's.** `videoCommentCount` is the total YouTube shows for the video, replies
  included. Comments held for review, removed or hidden by YouTube are not returned, so a thread can
  have a few replies less than its `replyCount`.
- **Comments turned off means no comments.** Videos made for kids and videos where the uploader
  turned comments off get a free row with the reason, and so do removed, private and wrong links.
- **Video links only.** Playlist and channel links are skipped and noted in the log.
- **Text as written.** Comments come in the language they were written in, with emoji and line
  breaks kept. There is no translation.
- If more than 5% of requests in a run fail, the run log says so loudly. A run in which every fetch
  failed is marked **failed**, not "succeeded with 0 items".

### Rate-limit etiquette (built in, with numbers)

- **One request every half second.** A page holds about 20 comments, and a page of replies about
  10 at first and up to 50 after that. In our tests (November 2026, datacenter proxy) 500 comments
  without replies took about 20 seconds and 1,000 about 30 seconds. Replies need at least one
  request per comment, so 200 comments with up to 20 replies under each (about 1,600 rows) took
  under 2 minutes. If time runs short, the Actor stops about a minute before the run timeout, keeps
  every row it has saved and says so in the run status.
- On an HTTP `429` the Actor **waits 5 seconds** (then 10, 15, 20), switches to a fresh proxy
  session and retries, at most 4 times. Other transient errors back off for 2, 4, 6 and 8 seconds and
  retry the same way.
- If five requests in a row fail after all retries, the run stops instead of grinding through the
  rest of the input.

### FAQ

**Do I need a YouTube account, cookies or an API key?**
No. The Actor reads only comments that YouTube shows publicly to any visitor, never signs in and
does not use anyone's credentials.

**Do replies cost extra?**
No. A reply is one row at the same $0.50 per 1,000 as a comment. Turn **Include replies** off or
lower **Max replies per comment** to keep a run small.

**How many comments can I get from one video?**
Up to 10,000 top-level comments per video, plus their replies. In the Top order YouTube stops at
about 1,150, so use Newest first when you need more (see Limits).

**Can I get comments of Shorts?**
Yes. Paste a Shorts link like any video link.

**Can I run it on a schedule, from code or from an AI agent?**
Yes. Apify Schedules run it on any timetable, and with `newest` and **Only new since last run** each
run returns only the comments that appeared since the last one. The Apify API and its official
clients start it from code, and the Apify MCP server lets AI agents call it.

**What does a typical run cost?**
100 top comments of one video with replies off: 100 rows, $0.05. The same with up to 5 replies under
each comment: up to 600 rows, up to $0.30. Videos without comments cost nothing.

**Does it use a browser?**
No. Requests go over plain HTTP, and comments are parsed straight from what YouTube serves.

**Where is my data stored?**
In your run's dataset on your Apify account, under your control. The Actor keeps no copy of
scraped data outside your run and sends nothing to any third party. The only thing it stores
between runs, and only when **Only new since last run** is on, is the list of comment ids it already
gave you, in a key-value store on your own account.

### Legal

This is an **unofficial** scraper. It is not affiliated with, endorsed by, or connected to YouTube
or Google in any way. It reads only comments that YouTube shows publicly to any visitor who is not
signed in: no login, no credentials, no captcha solving. Website terms of service are a contractual
matter between a website and its visitors, not criminal law. You are responsible for making sure
that your use of the collected data complies with the laws that apply to you and with YouTube's
terms.

**Copyright.** Comments belong to the people who wrote them. The Actor hands you the text that
YouTube publishes. How you use it (quoting, analysis, research, AI training or republishing) is your
decision and your responsibility under the copyright rules that apply to you.

### Personal data

Comment authors are people: their channel names, handles, channel ids and what they write are
personal data. The Actor collects only the public comment fields listed above. It does not collect
contact details, does not open author profiles and performs no enrichment. Scraped data lives only
in your own Apify dataset and is not retained by us outside your run. If the data you collect
contains personal data under the laws of your jurisdiction (for example the GDPR), you act as its
controller: it is your responsibility to have a legal basis for processing and to honor
data-subject requests, including deletion.

### Rate this Actor

If this Actor saved you time, a short rating or review on its Store page helps other people find it.
Missing a field, or did something break? Open the **Issues** tab on this page and tell us.

### Need a custom scraper?

We can build a custom version of this Actor, for example with extra fields, other filters or another output format, or a new Actor for a site we do not cover yet. It runs on Apify like this one. Email actorforge.hq+orders@gmail.com with the site, the data you need and how often you need it.

### Other Actors

- [YouTube Transcript Scraper](https://apify.com/actorforgehq/youtube-transcript-scraper):
  transcripts of videos, Shorts, playlists and channels as plain text and timed segments.
- [LinkedIn Jobs Scraper](https://apify.com/actorforgehq/linkedin-jobs-scraper): public LinkedIn
  job listings by keyword and location with full descriptions, no login.
- [LinkedIn Company Scraper](https://apify.com/actorforgehq/linkedin-company-scraper): public
  LinkedIn company pages with website, industry, size and headquarters, no login.
- [Reddit Data Scraper](https://apify.com/actorforgehq/reddit-data-scraper): subreddit feeds,
  posts with their first comments, keyword search and user history in one Actor.
- [Reddit Comments Scraper](https://apify.com/actorforgehq/reddit-comments-scraper): the whole
  comment thread of a Reddit post, with "more replies" branches and deep reply chains.
- [Reddit Search Scraper](https://apify.com/actorforgehq/reddit-search-scraper): posts and
  comments matching keywords, across Reddit or inside one subreddit, with only-new mode.
- [Lazada Reviews Scraper](https://apify.com/actorforgehq/lazada-reviews-scraper): product
  reviews, ratings and buyer media from all six Lazada marketplaces.
- [Wildberries Scraper](https://apify.com/actorforgehq/wildberries-scraper): products, prices
  and reviews from Wildberries as clean, schema-validated JSON.

### Changelog

- **0.1** (November 2026): first release. Comments and replies of videos and Shorts, Top or Newest
  order, limits per video and per comment, only-new mode, pinned and hearted flags, the video title
  and comment count on every row, free rows with the reason for videos without comments,
  $0.50 per 1,000 comments, no start fee.

# Actor input Schema

## `urls` (type: `array`):

Links to videos or Shorts, one per line: watch links, youtu.be links, /shorts/ links or bare 11 character video ids. Playlist and channel links are skipped (paste the video links instead).

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

Top comments is YouTube's default order (pinned and most liked first). Newest first lists the latest comments first and goes deeper on big videos.

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

How many top-level comments to take from each video. Replies are counted separately (see Max replies per comment). YouTube itself shows only part of the comments on very big videos, see the Limits section.

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

Also save the replies under each comment, one row per reply with parentId set to the comment. Replies cost the same as comments.

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

How many replies to take under each comment when Include replies is on.

## `onlyNew` (type: `boolean`):

Skip comments and replies this Actor already gave you in earlier runs with the same video list. With Newest first, reading stops at the first comment you already have.

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

Apify datacenter proxy is the default and is enough for comments. You can switch to residential or use your own proxies here.

## Actor input object example

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=iG9CE55wbtY",
    "https://www.youtube.com/shorts/kPI9Mc35mOg"
  ],
  "sort": "top",
  "maxCommentsPerVideo": 20,
  "includeReplies": true,
  "maxRepliesPerComment": 5,
  "onlyNew": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One row per comment or reply: text, author, likes, reply count, date, pinned and hearted flags, and the video it belongs to.

# 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 = {
    "urls": [
        "https://www.youtube.com/watch?v=iG9CE55wbtY"
    ],
    "maxCommentsPerVideo": 20,
    "maxRepliesPerComment": 5,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("actorforgehq/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 = {
    "urls": ["https://www.youtube.com/watch?v=iG9CE55wbtY"],
    "maxCommentsPerVideo": 20,
    "maxRepliesPerComment": 5,
    "proxyConfiguration": { "useApifyProxy": True },
}

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

```

## MCP server setup

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