YouTube Comments Scraper avatar

YouTube Comments Scraper

Pricing

from $0.45 / 1,000 comments

Go to Apify Store
YouTube Comments Scraper

YouTube Comments Scraper

Scrape YouTube comments and replies from any video: text, author, likes, reply count, date, pinned and creator heart, as a clean table. No API key or quota.

Pricing

from $0.45 / 1,000 comments

Rating

0.0

(0)

Developer

Julián Camilo López Sánchez

Julián Camilo López Sánchez

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

What is YouTube Comments Scraper?

YouTube Comments Scraper extracts YouTube comments from a list of videos. For every comment you get its text, author, likes, number of replies, date, and whether the creator pinned it or gave it a heart, and, if you want, its replies right below it. Counts come as numbers and dates as dates, ready to sort, filter or feed to an AI model.

Paste the videos as you copy them from YouTube, choose how many comments you want and in which order, and click Start. Download the results as JSON, CSV, Excel, XML, HTML or RSS, or read them through the API. Apify's Free plan gives you $5 of credit every month, enough for about 5,000 comments at no cost.

  • Paste links, Shorts links, embed links or video IDs, in any mix: https://www.youtube.com/watch?v=jNQXAC9IVRw, https://youtu.be/jNQXAC9IVRw or jNQXAC9IVRw.
  • Choose Top comments or Newest first, and how many replies to bring under each comment.
  • Run it without a YouTube account, an API key or the daily quota of the YouTube Data API.
  • Schedule it, start it from your code, or send the results to Make, Zapier, n8n and AI agents.

What data can you extract from YouTube comments?

Each comment, and each reply, is one row with these 22 fields:

FieldDescription
inputThe video as you wrote it in your list
videoIdThe 11-character YouTube video ID
videoTitleThe video title
positionPlace of the comment in its video, starting at 1. A reply carries the place of its comment
replyPositionPlace of the reply under its comment, starting at 1. Empty for a comment
commentIdYouTube's ID for the comment
parentCommentIdFor a reply, the ID of the comment it answers. Empty for a comment
urlLink that opens the video with this comment highlighted
textThe comment in full, with its line breaks and emoji
authorThe author's @handle
authorChannelIdThe author's channel ID
authorUrlLink to the author's channel
authorAvatarLink to the author's profile picture
authorVerifiedtrue if the author has YouTube's verified badge
authorIsCreatortrue if the author is the channel that uploaded the video
likesLikes as a number: 4800000, not "4.8M"
repliesReplies to the comment as a number. Empty for a reply
publishedHow long ago it was posted, as YouTube says it: "2 months ago"
publishedDateDate it was posted (see Limitations)
editedtrue if YouTube marks the comment as edited
pinnedtrue if the creator pinned the comment to the top
heartedByCreatortrue if the creator gave the comment a heart

How to scrape YouTube comments

  1. Click Try for free at the top of this page and sign in to Apify. A free account is enough.
  2. Under Videos, paste one or more videos, one per line.
  3. If you want, change Comments per video (100 by default), the Order and Replies per comment (none by default).
  4. Click Start. A thousand comments usually take less than a minute.
  5. Open the Output tab to see the comments, then export them in the format you need.

How much does it cost to scrape YouTube comments?

You pay $1 per 1,000 comments delivered, which is $0.001 per comment. A reply counts as a comment. There is no fee per run or per video, and a video that doesn't exist or has its comments turned off is not charged.

CommentsCost
100$0.10
1,000$1
10,000$10
100,000$100

Paid Apify plans pay less for every comment:

Apify planPer 1,000 comments
Free$1
Starter$0.75
Scale$0.60
Business$0.45

Apify's Free plan includes $5 of credit every month, which covers about 5,000 comments. To cap your spending, set a maximum cost per run in the run options. The Actor stops as soon as it reaches that amount, you are never charged more, and the run log says which video it stopped short and how many were left out.

Input

Videos is the only required field.

FieldWhat it doesDefault
Videos (videos)Videos to read, one per line: a link or an 11-character video IDRequired
Comments per video (maxComments)The most rows to bring from each video, replies included, up to 100,000100
Order (sort)top for YouTube's Top comments, newest for Newest firsttop
Replies per comment (repliesPerComment)How many replies to bring right after each comment. 0 brings none0

The same input in JSON, for runs started from the API:

{
"videos": ["https://www.youtube.com/watch?v=jNQXAC9IVRw", "https://youtu.be/0iSxQYgOPF4"],
"maxComments": 50,
"sort": "newest",
"repliesPerComment": 5
}

Output

Each comment is a row in the dataset, video by video in the order of your list, and each reply comes right after its comment. This is the pinned comment on the first video ever uploaded to YouTube:

{
"input": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"videoId": "jNQXAC9IVRw",
"videoTitle": "Me at the zoo",
"position": 1,
"replyPosition": null,
"commentId": "UgzuC3zzpRZkjc5Qzsd4AaABAg",
"parentCommentId": null,
"url": "https://www.youtube.com/watch?v=jNQXAC9IVRw&lc=UgzuC3zzpRZkjc5Qzsd4AaABAg",
"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/channel/UCC5NfQ6Mf0dq_eEwv4P_hWA",
"authorAvatar": "https://yt3.ggpht.com/...",
"authorVerified": true,
"authorIsCreator": false,
"likes": 4800000,
"replies": 986,
"published": "6 years ago",
"publishedDate": "2020-11-22",
"edited": false,
"pinned": true,
"heartedByCreator": true
}

A reply has the same fields, with parentCommentId set to the comment it answers and replyPosition set to its place under that comment. The same video written two ways, such as a link and its video ID, comes once and is charged once.

Limitations

  • Top comments is YouTube's own selection. On some videos it shows only a few featured comments. Choose Newest first to get every comment. In both orders a pinned comment stays at the top, as on YouTube.
  • The count YouTube shows under a video includes replies, so it is usually higher than the number of comments.
  • likes and replies are rounded the way YouTube shows them: 4.8M becomes 4,800,000.
  • publishedDate is an estimate. YouTube only says "2 months ago", so the date is the day of the run minus that.
  • A video that doesn't exist, is private, was removed or has its comments turned off has no rows and is not charged. The run log names each one. The first three read «not found», because YouTube doesn't tell a visitor without an account which of them it is. For the rest, the log gives the reason, in YouTube's own words when YouTube gives them («YouTube says: Comments are turned off.»).
  • Comments that YouTube holds for review or that the creator hid are not shown to visitors, so they are not included.
  • Only what YouTube shows without an account is read. Age-restricted videos show their comments only to signed-in viewers, so they come with no rows and are not charged.

FAQ

The Actor collects only public comments that YouTube shows to anyone, without logging in or getting around any block. Comments are personal data of the people who wrote them, and laws like the GDPR protect that data. Collect them only for a legitimate purpose, such as research or reading the feedback on your own videos, and ask a lawyer if you are unsure.

Can I use it as a YouTube comments API?

Yes. Every run can be started and read through the Apify API, and the API tab on this page has examples ready to copy in Python, JavaScript and cURL. Unlike the YouTube Data API, there is no daily quota and no Google project to set up.

Why did I get fewer comments than the count under the video?

The count includes replies, and on some videos Top comments shows only YouTube's featured comments. Choose Newest first and set Replies per comment to get as close as YouTube allows to the full count.

How do I get the comments of many videos at once?

Find the videos with YouTube Search Scraper, or the latest videos of a channel with YouTube Channel Scraper, then paste their links or video IDs here, one per line.

What can I use YouTube comments for?

  • Measure the reaction to a launch, a trailer or an ad with sentiment analysis.
  • Find what viewers ask for in your niche: questions, complaints and ideas for the next video.
  • Follow the feedback on your own videos, or on a competitor's, on a schedule.
  • Build datasets for research or to train and evaluate AI models.
  • Feed comments to an AI agent that summarizes, classifies or answers them.

Support

Found a bug, or need a field that isn't there? Open an issue in the Issues tab with the input you used. The Actor is tested against YouTube every day, so a change on YouTube's side is spotted within a day.