YouTube Comments & Replies Scraper avatar

YouTube Comments & Replies Scraper

Pricing

from $1.25 / 1,000 youtube comments

Go to Apify Store
YouTube Comments & Replies Scraper

YouTube Comments & Replies Scraper

Fast direct YouTube comments & reply threads scraper. Extract top or newest comments from video URLs, IDs, or search queries with likes, author handles, pinned/hearted status, and keyword filters.

Pricing

from $1.25 / 1,000 youtube comments

Rating

0.0

(0)

Developer

Leopold saint

Leopold saint

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

20 hours ago

Last modified

Features

Limited permissions

Share

What does YouTube Comments & Replies Scraper do?

YouTube Comments & Replies Scraper is a fast, lightweight Apify Actor that extracts top or newest comments and nested reply threads from any public YouTube video, Short, or search query — using direct InnerTube JSON requests with no headless browser overhead and no YouTube API key required.

Extract clean comment text, parsed numeric like counts, reply counts, author handles and channel URLs, pinned/creator-hearted flags, timestamps, and optional keyword/like-threshold filtering for audience research, sentiment analysis, LLM/RAG datasets, and lead discovery.

With Apify, you get REST API access, scheduled monitoring, webhooks, Make/Zapier/n8n integrations, MCP server support for AI agents, and strict pay-per-event budget controls.

Why use YouTube Comments & Replies Scraper?

  • Product & Customer Pain-Point Mining: Filter comments with containsKeywords (e.g. "pricing", "alternative", "bug", "wish") across competitor tutorials and product reviews to uncover real buyer objections and feature requests.
  • Sentiment Analysis & Voice-of-Customer Datasets: Feed clean JSON/CSV comment corpora directly into LLMs, BI dashboards, or brand-monitoring pipelines.
  • Reply Threads & Creator Engagement Signals: Optionally expand reply threads (includeReplies: true) and filter by isPinned, isHeartedByCreator, authorIsCreator, and minLikes.
  • No Browser Bloat: Runs on 256 MB memory directly against YouTube's web JSON endpoints — fast, cheap, and reliable.

How to scrape YouTube comments

  1. Open YouTube Comments & Replies Scraper in Apify Console.
  2. Paste one or more YouTube video URLs, Shorts URLs, or video IDs — or supply YouTube search queries to auto-discover top videos.
  3. Choose Sort order (top or newest), set Max comments per video, and toggle Include reply threads if you want nested replies.
  4. Optionally add Minimum likes or Keyword filters so you only pay for relevant comments.
  5. Click Start and export your results as JSON, CSV, Excel, or HTML.

Input

Configure fields in the Input tab or send JSON via the Apify API:

{
"videoUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],
"sortBy": "top",
"maxCommentsPerVideo": 50,
"maxTotalComments": 100,
"includeReplies": true,
"maxRepliesPerComment": 5,
"minLikes": 0
}

Output

Each dataset item is one deduplicated comment or reply. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

{
"commentId": "UgzuC3zzpRZkjc5Qzsd4AaABAg",
"videoId": "jNQXAC9IVRw",
"videoTitle": "Me at the zoo",
"videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"channelName": "jawed",
"channelUrl": "https://www.youtube.com/@jawed",
"videoTotalCommentsText": "10,643,418 Comments",
"authorDisplayName": "@SanDiegoZoo",
"authorHandle": "@SanDiegoZoo",
"authorChannelId": "UC7kB1z9v3u",
"authorChannelUrl": "https://www.youtube.com/@SanDiegoZoo",
"authorAvatarUrl": "https://yt3.ggpht.com/...",
"authorIsCreator": false,
"authorIsVerified": true,
"isPinned": true,
"isHeartedByCreator": true,
"isReply": false,
"parentCommentId": null,
"text": "We're so honored that the first ever YouTube video was filmed here!",
"publishedTimeText": "6 years ago",
"likeCount": 4800000,
"likeCountText": "4.8M",
"replyCount": 986,
"sortBy": "top",
"scrapedAt": "2026-11-23T15:30:00.000Z"
}

Data table

FieldTypeDescription
commentIdstringUnique YouTube comment ID
videoIdstring11-character YouTube video ID
videoTitlestringVideo title
authorDisplayNamestringComment author display name / handle
authorChannelUrlstringDirect URL to the commenter's YouTube channel
textstringFull comment text
likeCountnumberParsed numeric like count (e.g. 4.8M → 4800000)
replyCountnumberTotal replies on top-level comments
isReplybooleantrue when the row is a reply inside a thread
parentCommentIdstringParent comment ID when isReply is true
isPinnedbooleanWhether the creator pinned the comment
isHeartedByCreatorbooleanWhether the channel creator hearted the comment
publishedTimeTextstringRelative publish time reported by YouTube

How much does it cost to scrape YouTube comments?

This Actor uses Pay-Per-Event (PPE) pricing with platform usage included:

  • Free tier: $2.00 per 1,000 comments ($0.002 / comment)
  • Bronze tier: $1.75 per 1,000 comments ($0.00175 / comment)
  • Silver tier: $1.50 per 1,000 comments ($0.0015 / comment)
  • Gold / Platinum / Diamond tier: $1.25 per 1,000 comments ($0.00125 / comment)
  • Actor start: $0.00005 per run

Comments filtered out by minLikes or containsKeywords are never charged — you only pay for rows actually written to your dataset.

API, n8n, Make & AI Agent (MCP) integration

JavaScript / TypeScript (apify-client)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('leopoldsaint/youtube-comments-scraper').call({
videoUrls: ['https://www.youtube.com/watch?v=jNQXAC9IVRw'],
sortBy: 'top',
includeReplies: true,
maxTotalComments: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python (apify-client)

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("leopoldsaint/youtube-comments-scraper").call(run_input={
"videoUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],
"sortBy": "newest",
"containsKeywords": ["pricing", "alternative"],
"maxTotalComments": 100,
})
for c in client.dataset(run["defaultDatasetId"]).iterate_items():
print(c["authorHandle"], c["likeCount"], c["text"][:120])

n8n, Make & Zapier (1-request HTTP API)

POST https://api.apify.com/v2/acts/leopoldsaint~youtube-comments-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN
Content-Type: application/json

AI Agents & MCP Server (Claude, Cursor, OpenAI)

Enable leopoldsaint/youtube-comments-scraper on Apify MCP (https://mcp.apify.com) so AI agents can extract audience objections, product feedback, and top questions directly from any YouTube video.

FAQ, disclaimers, and support

  • What if comments are disabled on a video? The Actor logs a warning, skips that video cleanly, and charges nothing for it.
  • Legality & compliance: Only public YouTube comments are collected. Ensure your usage complies with applicable data privacy laws and platform terms.
  • Questions or feature requests? Open an issue in the Issues tab on Apify Store.