# YouTube Comments Scraper: Replies, Exact Dates & Channels (`mastertools/youtube-comments-scraper`) Actor

Fast YouTube comments API with no quota and no login. Scrape comments and replies from videos, Shorts, whole channels and playlists: exact dates, likes, pinned and creator-hearted flags, only-new monitoring.

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

## Pricing

from $0.60 / 1,000 comments

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 Comments Scraper

**Every YouTube comment and reply as a clean row — with the exact date, from one video or a whole channel.**

A fast YouTube comments API with no quota, no API key and no login. Paste links to videos, Shorts, channels or playlists and get the comments: full text, author, likes, reply threads, pinned and creator-hearted flags — and the real date and time instead of "2 years ago". Built for sentiment analysis, brand monitoring, audience research and AI agents. Twenty comments arrive in about three seconds; a video with 9,000 comments and replies takes under four minutes.

### What you get

- **Exact comment dates** — the real date and time, to the second, for every reply and every comment that has replies. No more guessing what "2 years ago" means: build timelines, see when a discussion peaked, match comments to your campaigns.
- **Whole channels and playlists in one run** — paste `@channel` and get the comments of its newest videos, Shorts and streams. No need to collect video links first.
- **All the comments, not just the top of the list** — YouTube's "Top comments" list ends after about a thousand comments. The scraper carries on with the rest by itself, so a large number in `maxComments` really gives you the whole discussion.
- **Full reply threads** — every reply is its own row linked to its comment by `parentId`, in the order of the conversation. Set how many replies per comment you want.
- **Only new comments since your last run** — put the Actor on a schedule and every run brings just the fresh comments: no duplicates, nothing to filter. Made for brand monitoring and community management.
- **Signals that matter** — pinned comments, creator hearts, comments and replies by the creator, threads the creator answered, verified authors, edited comments, likes as real numbers.
- **Comments by keyword** — type a search phrase and read what people say under the top videos about a brand, a product or a topic.
- **Every link answered** — comments turned off, a deleted or private video, a wrong link: each comes back as a short row with the reason, so nothing disappears silently.
- **Fast and light** — plain HTTP instead of a browser, the smallest memory size, results in seconds. Works with videos, Shorts, live stream recordings, `youtu.be` links and plain video IDs.

### How to use

1. Press **Start** — the example video works as is.
2. Paste your own links: videos, Shorts, `@channels` or playlists, one per line.
3. Download the comments as JSON, CSV, Excel or HTML, or take them through the API.

### Input

| Field | What it does | Example |
|---|---|---|
| `urls` | Videos, Shorts, channels or playlists, one per line. Video IDs, `youtu.be` links and @handles work too. Add `/videos`, `/shorts` or `/streams` to a channel link for one tab only. | `https://www.youtube.com/@mkbhd` |
| `maxComments` | The most comments to save from each video; replies count too. | `500` |
| `sort` | `top` — YouTube's default order, or `newest` — latest first. | `newest` |
| `includeReplies` | Save the replies under each comment as their own rows. | `true` |
| `maxRepliesPerComment` | The most replies under one comment. | `20` |
| `exactDates` | Exact date and time for every comment that has replies. On by default. | `true` |
| `maxVideos` | Videos to take from each channel (newest first), playlist or search phrase. | `10` |
| `searchQueries` | Search phrases — comments under the top videos for each. | `iphone 17 review` |
| `postedAfter` | Only comments posted after a date or within a period. | `2026-11-01`, `7 days` |
| `onlyNew` | Only comments that appeared since your previous run of the same videos. | `true` |

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "https://www.youtube.com/@mkbhd"
  ],
  "maxComments": 200,
  "maxVideos": 5,
  "includeReplies": true,
  "maxRepliesPerComment": 20
}
```

Moving from another YouTube comment scraper? Saved inputs with `startUrls`, `sortCommentsBy`, `oldestCommentDate`, `videoUrls` or `commentsPerVideo` work as they are.

### Output

One row per comment or reply. Example from the default video:

```json
{
  "videoId": "jNQXAC9IVRw",
  "videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
  "videoTitle": "Me at the zoo",
  "commentId": "UgzuC3zzpRZkjc5Qzsd4AaABAg",
  "commentUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw&lc=UgzuC3zzpRZkjc5Qzsd4AaABAg",
  "parentId": null,
  "isReply": false,
  "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",
  "authorIsVerified": true,
  "authorIsCreator": false,
  "publishedAt": "2020-02-17T18:58:15.153Z",
  "publishedTimeText": "6 years ago",
  "isExactDate": true,
  "isEdited": false,
  "likeCount": 4800000,
  "replyCount": 986,
  "isPinned": true,
  "isHearted": true,
  "hasCreatorReply": false,
  "input": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
  "scrapedAt": "2026-11-10T23:00:44.419Z",
  "status": "ok"
}
```

A reply looks the same, with `isReply: true` and the ID of its comment in `parentId`:

```json
{
  "commentId": "UgzuC3zzpRZkjc5Qzsd4AaABAg.958xaQsh63D958yN1-HDaK",
  "parentId": "UgzuC3zzpRZkjc5Qzsd4AaABAg",
  "isReply": true,
  "text": "San Diego Zoo That's so awesome! I'm so glad the first YouTube video featured cute animals in it! 😊🐘",
  "author": "@TheGreekPianist",
  "publishedAt": "2020-02-17T19:05:01.916Z",
  "publishedTimeText": "6 years ago",
  "isExactDate": true,
  "isEdited": true,
  "likeCount": 206000
}
```

- `commentId` — stable for the life of the comment: use it to remove duplicates and to join runs.
- `publishedAt` + `isExactDate` — `true` means the exact moment the comment was posted. Comments without replies get a date calculated from YouTube's label (`publishedTimeText`), marked `isExactDate: false`.
- `likeCount` — a number, as YouTube shows it (71K → 71000).
- `authorIsCreator` — the comment or reply was written by the owner of the video; `hasCreatorReply` — the creator answered in this thread.

A video without comments comes back like this:

```json
{
  "videoId": "e_04ZrNroTo",
  "videoUrl": "https://www.youtube.com/watch?v=e_04ZrNroTo",
  "videoTitle": "Wheels on the Bus | @CoComelon Nursery Rhymes & Kids Songs",
  "commentId": null,
  "status": "comments_off",
  "input": "https://www.youtube.com/watch?v=e_04ZrNroTo",
  "error": "Comments are turned off for this video."
}
```

`status` is `ok`, `comments_off`, `no_comments`, `unavailable` or `error`. The **Comments** view in the Output tab shows the text with likes and flags; the **Threads and dates** view shows IDs, parents and dates.

### What people use it for

- **Sentiment analysis** — feed comment text to your model or LLM and see how people react to a video, a launch or a brand.
- **Brand and competitor monitoring** — follow your channel and your competitors' channels on a schedule and catch every new comment.
- **Audience and market research** — what viewers ask for, complain about and praise, with likes to rank what matters.
- **Community management** — unanswered questions, threads the creator has not replied to, the most liked feedback.
- **Influencer vetting** — real conversations versus empty praise under a creator's videos.
- **AI and LLM datasets** — clean, flat conversation data with reply threads and dates.

### Monitor comments on a schedule

Turn on `onlyNew`, add your videos or channels and schedule the Actor — every hour, every day, as you like. Each run saves only the comments that appeared since the previous run and remembers where it stopped. Send them to Slack, Google Sheets or your CRM with a webhook or an integration.

Prefer a fixed window? Use `postedAfter` with a period like `1 day`: the scraper reads the newest comments first and stops at the first older one.

### Use it with AI agents

Add the Actor as a tool in Claude, ChatGPT, Cursor, n8n or any MCP client through the Apify MCP server (`mcp.apify.com`). One field is enough — `urls` — and the answer comes back as compact JSON in seconds.

Typical jobs: summarize what viewers think of a video, find the questions people ask a creator, compare reactions to two product launches, pull fresh comments about a brand.

#### Instant API for agents (Standby)

The Actor also runs as an always-ready web API: no run to start, no dataset to read — one request, one JSON answer.

```
GET https://mastertools--youtube-comments-scraper.apify.actor/?url=https://www.youtube.com/watch?v=jNQXAC9IVRw&maxComments=20
Authorization: Bearer <YOUR_APIFY_TOKEN>
```

Add `sort`, `includeReplies`, `maxRepliesPerComment`, `maxVideos`, `postedAfter` or `search` as query parameters — or POST the same JSON as the Actor input. You get the same rows as in the dataset.

### Integrations

Google Sheets, Make, Zapier, n8n, Airbyte, Slack, webhooks and the Apify API. Export YouTube comments to CSV, JSON or Excel in one click.

### FAQ

**Do I need a YouTube account or API key?** No. Paste links and press Start. There is no quota to run out of.

**How do I get all comments of a video?** Set `maxComments` to a large number and turn on `includeReplies`. The scraper reads YouTube's Top list and then continues with the rest, newest first.

**How exact are the dates?** With `isExactDate: true` — to the second: every reply, and every comment that has at least one reply (for comments posted since mid-2015). Other comments get a date calculated from YouTube's own label, exact to the minute for fresh comments and to the year for old ones.

**Does it work with Shorts and live streams?** Yes — paste `/shorts/` links, a channel's `/shorts` or `/streams` page, or a recording of a finished stream. A stream that is live right now has a chat instead of comments.

**Can I scrape comments from a whole channel?** Yes. Paste the channel link or `@handle` and set `maxVideos`: you get the comments of its newest uploads.

**Can I get only new comments?** Yes. Turn on `onlyNew` and schedule the Actor, or set `postedAfter` to a period like `1 day`.

**Why are there fewer comments than the number YouTube shows?** YouTube's counter includes replies and comments it hides (held for review, from removed accounts). Turn on `includeReplies` to collect the replies too.

**How fresh is the data?** Every run reads YouTube live: text, likes and reply counts are the numbers at that moment.

**Need video stats or transcripts too?** Our YouTube Scraper returns views, likes and subscribers for videos and channels, and YouTube Transcripts turns videos into text with timestamps.

### Need data at scale?

Daily comment tracking for thousands of videos and channels, sentiment dashboards, a pipeline into your CRM, data warehouse or BI tool, or a custom scraper for another social platform — we build it for you.

# Actor input Schema

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

Videos, Shorts, channels or playlists — one per line. Video IDs, youtu.be links and @handles work too. A channel link gives the comments of its newest uploads; add /videos, /shorts or /streams to the link for one tab only.

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

The most comments to save from each video; replies count too. For every comment of a big video, set a large number: the scraper reads YouTube's Top list and then continues with the rest on its own.

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

Top comments — the order YouTube shows by default. Newest first — the latest comments, best for tracking fresh reactions.

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

Save the replies under each comment as their own rows, linked to the comment by parentId. Every reply comes with its exact date and time.

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

The most replies to save under one comment when replies are on. Keeps one viral thread from taking the whole limit.

## `exactDates` (type: `boolean`):

Get the exact date and time (to the second) of every comment that has replies, instead of YouTube's rounded "2 years ago". Comments without replies get a date calculated from YouTube's label; the isExactDate field tells which is which. Turn off for the highest speed on very large videos.

## `maxVideos` (type: `integer`):

How many videos to take from each channel (newest first), playlist or search phrase.

## `searchQueries` (type: `array`):

Search phrases, one per line — like typing them into YouTube search. You get the comments under the top videos for each phrase: what people say about a brand, a product or a topic.

## `postedAfter` (type: `string`):

Keep only fresh comments: a date like 2026-11-01 or a period like 7 days. The scraper reads the newest comments first and stops at the first older one, so older comments are not read and not charged.

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

For schedules: every run saves only the comments that appeared after your previous run of the same videos — no duplicates, nothing to filter. The first run saves the newest comments up to your limit and remembers them.

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

Already set up: fast proxies by default, with an automatic switch to residential IPs whenever YouTube pushes back. The default works for most users.

## Actor input object example

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "https://www.youtube.com/shorts/2yJgwwDcgV8",
    "https://www.youtube.com/@mkbhd",
    "https://www.youtube.com/playlist?list=PLZHQObOWTQDNU6R1_67000Dx_ZCJB-3pi"
  ],
  "maxComments": 20,
  "sort": "top",
  "includeReplies": false,
  "maxRepliesPerComment": 100,
  "exactDates": true,
  "maxVideos": 5,
  "searchQueries": [
    "iphone 17 review",
    "electric cars"
  ],
  "onlyNew": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Every comment and reply with text, author, date, likes, pinned and creator-heart flags.

## `threads` (type: `string`):

The same rows with comment IDs, parent IDs, exact dates and author channels.

# 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=jNQXAC9IVRw"
    ],
    "maxComments": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("mastertools/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=jNQXAC9IVRw"],
    "maxComments": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("mastertools/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=jNQXAC9IVRw"
  ],
  "maxComments": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call mastertools/youtube-comments-scraper --silent --output-dataset

```

## MCP server setup

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