YouTube Comments Scraper (with Replies) avatar

YouTube Comments Scraper (with Replies)

Pricing

from $0.40 / 1,000 scraped comments

Go to Apify Store
YouTube Comments Scraper (with Replies)

YouTube Comments Scraper (with Replies)

Scrape YouTube comments and replies from videos and Shorts by URL or ID. Returns author, text, likes, reply count, timestamps and pinned/hearted status. No API key; works with Apify MCP and the API.

Pricing

from $0.40 / 1,000 scraped comments

Rating

0.0

(0)

Developer

Khadin Akbar

Khadin Akbar

Maintained by Community

Actor stats

0

Bookmarked

23

Total users

0

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

YouTube Comments Scraper: Top or Newest, With Replies, No API Key

YouTube Comments Scraper pulls comments and replies from public YouTube videos by URL or video ID. Pick top or newest order, keep only comments after a date, and get clean rows: author, text, likes, reply count, approximate ISO date, pinned and hearted flags. No login, no YouTube API key, no quota.

Why use this Actor?

  • Fast plain-HTTP route, no browser. Scrapes in seconds, not minutes, and the memory it asks for scales with run size, so small runs stay cheap.
  • Newest first + date filter. Set sortBy: newest and publishedAfter: "7 days" to monitor only fresh comments on a schedule.
  • Automatic backup routes. If YouTube blocks the main route, the Actor retries and falls back so you still get rows. Total failure ends honestly as FAILED, never a fake empty success.
  • Honest outcomes. OUTPUT and RUN_SUMMARY say COMPLETE, PARTIAL, VALID_EMPTY, INVALID_INPUT or UPSTREAM_FAILED, with an agentSummary AI agents can read directly.
  • Cheap. $0.001 per comment on the base plan, with volume tiers down to $0.0004 (see Pricing).

What data do you get?

FieldTypeMeaning
video_id, video_title, video_urlstringSource video
comment_idstringUnique comment ID (use to deduplicate)
comment_textstringFull comment text
author_name, author_channel_url, author_channel_idstringCommenter
like_countintegerLikes on the comment
reply_countintegerReplies under a top-level comment
is_reply, parent_comment_idboolean / stringReply structure
published_atstringRelative time as YouTube shows it ("3 days ago")
published_at_isostringApproximate absolute time (computed at scrape time)
is_pinned, is_heartedbooleanCreator pinned / hearted the comment
routestringdirect (full detail) or backup (pinned/hearted unavailable)
scraped_at, source_urlstringProvenance

Sample record

{
"video_id": "jNQXAC9IVRw",
"video_title": "Me at the zoo",
"comment_id": "UgzuC3zzpRZkjc5Qzsd4AaABAg",
"comment_text": "We're so honored that the first ever YouTube video was filmed here!",
"author_name": "@SanDiegoZoo",
"like_count": 4800000,
"reply_count": 985,
"is_reply": false,
"published_at": "6 years ago",
"published_at_iso": "2020-11-19T03:10:33.342Z",
"is_pinned": false,
"is_hearted": false,
"route": "direct"
}

Input

FieldTypeNotes
startUrlsarrayVideo URLs, youtu.be links, Shorts URLs
videoIdsarrayBare 11-character IDs
maxCommentsintegerPer video, 1 to 100000 (default 100). Replies count toward it
includeRepliesbooleanAlso collect reply threads
sortBystringtop (default) or newest
publishedAfterstringISO date (2026-11-01) or age (30 days, 2 weeks, 12 hours)
{
"startUrls": [{ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }],
"maxComments": 500,
"sortBy": "newest",
"publishedAfter": "7 days",
"includeReplies": false
}

Pricing

Pay per event: a tiny start fee plus $0.001 per saved comment or reply on the base plan. Higher Apify plans pay less per comment (Bronze $0.0005, Silver $0.00045, Gold $0.0004). 1,000 comments cost about $1 on the base plan. Set a spending limit on the run and the Actor stops cleanly when it is reached. Platform usage is shown on the Pricing tab.

How it works

For each video the Actor reads the public watch page, then pages through the comment threads (and reply threads when enabled). Several videos run at the same time. If YouTube blocks the direct route, it retries through a datacenter route, then a backup route that returns top comments without pinned/hearted flags. Rows are charged only when saved.

Use with AI agents (MCP)

Works as an Apify MCP tool: khadinakbar/youtube-comments-scraper. Open the OUTPUT record for an agentSummary: headline, per-video status, top 5 liked comments, and suggested next steps.

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('khadinakbar/youtube-comments-scraper').call({
videoIds: ['dQw4w9WgXcQ'], maxComments: 50, sortBy: 'newest',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();

FAQ

Do I need a YouTube API key? No. Why is published_at_iso approximate? YouTube shows "3 days ago". The Actor converts it at scrape time, so it is accurate to the unit shown. Why are pinned/hearted false on some rows? Rows with route: backup cannot see those flags. Does it scrape comments on private or age-restricted videos? No. Private or removed videos are reported as unavailable; comments turned off are reported as such. What if the run is blocked? You get partial results marked PARTIAL, or FAILED with zero rows and zero charges. Re-run later.

What's new (1.3)

Faster HTTP route, sort by newest, date filter, agent summary, correct hearted flag, memory scaled to run size, up to 100000 comments per video, lower price tiers.

Continue the workflow

Collects only publicly visible comments. You are responsible for complying with YouTube's terms and applicable privacy laws (GDPR, CCPA) when storing or using personal data such as usernames. Not affiliated with YouTube or Google.