# YouTube Comments Scraper Lowcost (0.25$/1K 🤑) (`sones/youtube-comments-scraper-lowcost`) Actor

Scrape the comments and replies of YouTube videos and Shorts: text, author, likes, reply count, pinned and hearted flags, with the video's title. Top or newest first. No API key or login. $0.25 per 1,000 comments.

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

## Pricing

from $0.25 / 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 Lowcost](https://apify.com/actor-badge?actor=sones/youtube-comments-scraper-lowcost)](https://apify.com/sones/youtube-comments-scraper-lowcost)

**YouTube Comments Scraper** exports the public comments of YouTube videos and Shorts for **$0.25 per 1,000 comments**. Paste video links, choose how many comments you want and in which order, and get one row per comment, with its text, author, likes, reply count and the video's title. Turn on replies to get the answers to each comment too.

No YouTube API key, quota or login. Export JSON, CSV or Excel, schedule runs, or call the Actor from the API, n8n, Make, Zapier or an AI agent.

### What data does the YouTube Comments Scraper extract?

One row per comment or reply:

| Field                                                   | What it holds                                                     |
| ------------------------------------------------------- | ----------------------------------------------------------------- |
| `text`                                                  | The comment's text                                                |
| `commentId`, `commentUrl`                               | The comment's id, and a link that opens the video on that comment |
| `type`, `parentCommentId`                               | `comment` or `reply`, and the comment a reply answers             |
| `authorName`                                            | The author's public name, usually their `@handle`                 |
| `isAuthorChannelOwner`, `isAuthorVerified`              | The author uploaded the video; the author's channel is verified   |
| `likeCount`, `replyCount`                               | Likes and replies                                                 |
| `publishedTimeText`                                     | When it was posted, as YouTube shows it (`3 days ago`)            |
| `isPinned`, `isHeartedByCreator`                        | The uploader pinned it or gave it a heart                         |
| `videoId`, `videoUrl`, `videoTitle`, `videoChannelName` | The video the comment is on                                       |
| `videoCommentCountText`                                 | The video's comment count as YouTube shows it (`10M`)             |
| `input`, `scrapedAt`                                    | The video's watch URL and when the row was scraped                |

### Use cases

- **Sentiment analysis and AI:** feed comments to an LLM or a sentiment model to see how viewers feel about a video, a product or a brand.
- **Audience and market research:** read what viewers ask for, complain about or praise under your videos and your competitors'.
- **Community management:** export the newest comments daily, find questions to answer and comments to pin or heart.
- **Giveaways and contests:** export every comment of a giveaway video to pick a winner.
- **Academic research and datasets:** build comment datasets with likes and reply counts for studies.

### How much does it cost to scrape YouTube comments?

Popular YouTube comment scrapers on the Apify Store charge about $2 per 1,000 comments. This Actor charges **$0.25 per 1,000 comments**, plus $0.001 when a run starts. A video that does not exist, or has comments turned off, costs nothing.

| Event       | Price                      |
| ----------- | -------------------------- |
| Comment     | $0.00025 ($0.25 per 1,000) |
| Actor start | $0.001 per run             |

For example, 1,000 comments from each of 10 videos cost 10,000 × $0.00025 + $0.001 = **$2.50**. Apify's free $5 monthly credit covers about 20,000 comments.

### How to scrape YouTube comments

1. Open the **Input** tab and paste one or more video links. Watch links, `youtu.be` links, Shorts links and plain 11-character video ids all work.
2. Set **Comments per video**. The default is 100.
3. Choose **Top comments** or **Newest first**.
4. Turn on **Include replies** if you need the answers to each comment.
5. Click **Start**, then open the **Output** tab and export the comments.

Repeated videos are scraped once. Channel and playlist links are skipped and counted in the run log.

### Input

```json
{
    "startUrls": [
        { "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" },
        { "url": "https://www.youtube.com/shorts/tPEE9ZwTmy0" }
    ],
    "maxComments": 100,
    "commentsSortBy": "top",
    "includeReplies": false
}
```

| Field            | Description                                                                              | Default |
| ---------------- | ---------------------------------------------------------------------------------------- | ------- |
| `startUrls`      | Video or Shorts links, or video ids. Plain strings and `{ "url": … }` records both work. | —       |
| `maxComments`    | The most rows to export for each video, replies included, from 1 to 100,000.             | `100`   |
| `commentsSortBy` | `top` or `newest`. `0` and `1` work too, as in other comment scrapers.                   | `top`   |
| `includeReplies` | Also export replies, right after the page of comments they answer.                       | `false` |

### Output

```json
{
    "type": "comment",
    "commentId": "UgzuC3zzpRZkjc5Qzsd4AaABAg",
    "commentUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw&lc=UgzuC3zzpRZkjc5Qzsd4AaABAg",
    "parentCommentId": null,
    "text": "We're so honored that the first ever YouTube video was filmed here!",
    "authorName": "@SanDiegoZoo",
    "isAuthorChannelOwner": false,
    "isAuthorVerified": true,
    "likeCount": 4800000,
    "replyCount": 986,
    "publishedTimeText": "6 years ago",
    "isPinned": true,
    "isHeartedByCreator": true,
    "videoId": "jNQXAC9IVRw",
    "videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "videoTitle": "Me at the zoo",
    "videoChannelName": "jawed",
    "videoCommentCountText": "10M",
    "input": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "scrapedAt": "2026-11-16T21:42:40.417Z"
}
```

A reply has `type: "reply"` and the id of its comment in `parentCommentId`.

### Good to know

- **Counts are as YouTube shows them.** Likes are exact below 1,000 and rounded above (`4.8M` becomes 4,800,000). The video's comment count is the rounded text YouTube shows, such as `10M`.
- **Dates are relative.** YouTube shows `6 years ago`, not a date, and the Actor does not invent one.
- **YouTube may serve fewer comments than its count.** It hides some comments, such as those held for review or removed as spam.
- **Replies come first.** With replies on, every reply of a page's comments comes before the next page of comments, so a small limit may be filled by the replies of the first comments. Raise **Comments per video** to reach more comments.
- **A few comments have no text.** A comment made only of an image has an empty `text`.
- **No personal data beyond what YouTube shows publicly.** Each row holds the author's public display name, nothing else about them.

### How it works

The Actor reads YouTube's own web API as a logged-out visitor: one request for the video's page, then one request per page of about 20 comments, through residential proxies. In our tests, 3,000 comments from three videos took 36 seconds.

### FAQ

**Can I scrape comments from a whole channel?** Not directly: give the video links. The [YouTube Channel & Video Scraper](https://apify.com/sones/youtube-scraper-lowcost) lists a channel's videos, and can also export their comments.

**Do I need a YouTube API key?** No.

**What happens with a private or deleted video?** It is reported in the run log and costs nothing.

**How do I scrape comments from YouTube Shorts?** Paste the Shorts link (`https://www.youtube.com/shorts/…`). Shorts comments work like any video's.

**Can I export YouTube comments to Excel or Google Sheets?** Yes. Download the dataset as Excel or CSV, or connect it to Google Sheets with Apify's integrations.

**How many comments can I scrape from one video?** Up to 100,000 per video. YouTube serves fewer when it hides some comments.

**Can I get the newest comments only?** Yes: set **Comment order** to **Newest first** and a small **Comments per video**, and schedule the run.

**Is scraping YouTube comments legal?** The Actor only reads public comments that anyone can see without logging in. Check the rules that apply to how you use the data, especially for personal data under the GDPR.

### Also see

- [YouTube Search Scraper](https://apify.com/sones/youtube-search-scraper-lowcost): videos, Shorts, playlists and channels for any keyword, $0.30 per 1,000.
- [YouTube Channel & Video Scraper](https://apify.com/sones/youtube-scraper-lowcost): a channel's videos, Shorts and streams with exact views and dates.
- [YouTube Transcript Scraper](https://apify.com/sones/youtube-transcript-scraper-lowcost): transcripts and captions of videos.

# Changelog

This Actor's version history is a separate document: https://apify.com/sones/youtube-comments-scraper-lowcost/changelog.md

# Actor input Schema

## `startUrls` (type: `array`):

YouTube video or Shorts links, such as https://www.youtube.com/watch?v=jNQXAC9IVRw, https://youtu.be/jNQXAC9IVRw or https://www.youtube.com/shorts/tPEE9ZwTmy0. Plain 11-character video ids work too. Channel and playlist links are skipped.

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

The most comments to export for each video, replies included when you turn them on. YouTube may serve fewer comments than the count it shows.

## `commentsSortBy` (type: `string`):

Top comments, as YouTube ranks them, or the newest first. A pinned comment may come first in either order.

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

Also export the replies to each comment, right after the page of comments they answer. Each reply is one row and counts toward the comments per video.

## `proxy` (type: `object`):

Leave on automatic. To send every request through your own proxies instead, choose 'Own proxies' and enter their URLs.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    },
    {
      "url": "https://www.youtube.com/shorts/tPEE9ZwTmy0"
    }
  ],
  "maxComments": 10,
  "commentsSortBy": "top",
  "includeReplies": false,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

One row per comment or reply.

## `runSummary` (type: `string`):

The run's outcome and the result for every video.

# 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 = {
    "startUrls": [
        {
            "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"
        }
    ],
    "maxComments": 10,
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("sones/youtube-comments-scraper-lowcost").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 = {
    "startUrls": [{ "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }],
    "maxComments": 10,
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("sones/youtube-comments-scraper-lowcost").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 '{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    }
  ],
  "maxComments": 10,
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call sones/youtube-comments-scraper-lowcost --silent --output-dataset

```

## MCP server setup

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

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/lhQgUIefvBFPwueMb/builds/djs47i1hlOPftFFku/openapi.json
