YouTube Comments Scraper avatar

YouTube Comments Scraper

Pricing

from $1.00 / 1,000 comment or replies

Go to Apify Store
YouTube Comments Scraper

YouTube Comments Scraper

Get the comments of any YouTube video with replies: text, author and channel ID, likes, reply count, date, pinned and creator-hearted flags. Sort by top or newest, cap per video. No API key, no quota.

Pricing

from $1.00 / 1,000 comment or replies

Rating

0.0

(0)

Developer

Tarik Cerkezovic

Tarik Cerkezovic

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

18 days ago

Last modified

Features

Limited permissions

Share

Get the comments of any YouTube video, with replies, as clean structured data. Each comment comes with its text, author handle and channel ID, like count, reply count, date, and whether it is pinned or hearted by the creator. Choose YouTube's Top ordering or newest first, cap the number per video, and decide how many replies to pull under each comment.

No YouTube API key, no quota, no login. Built for sentiment analysis, audience research, moderation, lead discovery and feeding comment threads into AI tools.

What you get

FieldDescription
videoId, videoUrl, videoTitle, channelName, channelId, videoCommentCountThe video and its total comment count
commentId, parentCommentId, isReply, positionReplies carry the parent's ID; position is the rank among top-level comments
textComment text with emoji
author, authorChannelId, authorUrl, authorAvatarUrl, isAuthorVerified, isAuthorCreatorWho wrote it
likeCount, likeCountText, replyCountEngagement
publishedText, publishedAt"6 years ago" and an ISO date estimated from it
isPinned, isHeartedPinned by the creator; hearted by the creator
error, errorMessageOnly on video-level failures

Sample output

{
"videoId": "jNQXAC9IVRw",
"videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"videoTitle": "Me at the zoo",
"channelName": "jawed",
"channelId": "UC4QobU6STFB0P71PMvOGN5A",
"videoCommentCount": 10646593,
"commentId": "UgzuC3zzpRZkjc5Qzsd4AaABAg",
"isReply": false,
"position": 1,
"text": "We're so honored that the first ever YouTube video was filmed here!",
"author": "@SanDiegoZoo",
"authorChannelId": "UCC5NfQ6Mf0dq_eEwv4P_hWA",
"authorUrl": "https://www.youtube.com/@SanDiegoZoo",
"isAuthorVerified": true,
"isAuthorCreator": false,
"likeCount": 4800000,
"likeCountText": "4.8M",
"replyCount": 986,
"publishedText": "6 years ago",
"publishedAt": "2020-11-05T16:40:00.000Z",
"isPinned": true,
"isHearted": true,
"input": "jNQXAC9IVRw",
"fetchedAt": "2026-11-05T16:40:00.000Z"
}

Input

FieldTypeDefaultWhat it does
videoUrlsarray of stringsrequiredVideo URLs or IDs.
maxCommentsPerVideointeger100Cap on top-level comments per video. 0 takes all.
sortBytop, newesttopYouTube's Top ordering or newest first.
includeRepliesbooleantrueFetch replies under each comment as separate items.
maxRepliesPerCommentinteger10Cap on replies per comment. 0 takes all.
maxConcurrencyinteger3Videos in parallel.
proxyConfigurationobjectApify datacenter proxyProxy for all requests.
residentialFallbackbooleantrueRetry a blocked video through residential proxies, only on a detected block.

Minimal input:

{ "videoUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"], "maxCommentsPerVideo": 200 }

Errors

errorMeaningCharged?
INVALID_INPUTNot a YouTube video URL or IDno
VIDEO_UNAVAILABLEDeleted, private or never existedno
COMMENTS_DISABLEDThe creator turned comments off, or the video is a live stream without a comment sectionno
NO_COMMENTSThe video has no comments yetno
BLOCKEDYouTube refused the request from every proxy triedno
FETCH_FAILEDNetwork or parsing failureno

Pricing

Pay per event: a small fixed amount per comment or reply item, plus Apify platform usage. Error items are free. Set a maximum total charge on the run and the actor stops cleanly when it is reached.

Typical cost: YouTube serves 20 comments per request and about 10 replies per request, so 1,000 comments with replies capped at 10 is roughly 50 to 150 requests and well under a minute.

Notes

  • Ordering is what YouTube shows an anonymous visitor: Top is YouTube's own ranking, Newest is chronological.
  • publishedAt is estimated from the relative text YouTube provides, so it is as precise as that text.
  • Like counts are rounded the way YouTube rounds them ("4.8M").
  • Replies are fetched only for comments that have replies, and only up to maxRepliesPerComment each.

Using it from code

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('serentity/youtube-comments-scraper').call({ videoUrls: ['jNQXAC9IVRw'], maxCommentsPerVideo: 500, sortBy: 'newest' });
const { items } = await client.dataset(run.defaultDatasetId).listItems();

Comments are public content shown to any visitor. The actor does not log in and collects only what the video page shows, including the public handle and channel ID of each author. Use it in line with YouTube's terms of service and applicable data protection law.