All guides

How to scrape YouTube Comments

Scrape public YouTube comments and replies from videos, Shorts, channels, playlists or searches: text, author, likes, reply count, creator heart, pinned, date. Top or newest, keyword/likes/date filters, monitor mode. No login.

Open YouTube Comments Scraper on Apify

Scrape public YouTube comments, and the replies under them if you want them, from any video, Short, channel, playlist or search. Every row has the comment text, the author's handle and channel, the like count, the reply count, whether the creator hearted or pinned it, and when it was posted. You can sort by top or newest, filter by keyword, likes or date, and switch on monitor mode to get only new comments on a schedule. You don't need a login, a YouTube API key or a daily quota.

What it outputs

One row per comment or reply:

Example input

{
  "startUrls": [{ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }],
  "maxComments": 100,
  "includeReplies": true
}

Sample output

{
  "commentId": "UgzB5Hn0hc1b1Bk4dYF4AaABAg",
  "text": "Great breakdown, thanks!",
  "author": "@example_viewer",
  "authorChannelId": "UC...",
  "authorChannelUrl": "https://www.youtube.com/channel/UC...",
  "authorIsChannelOwner": false,
  "authorIsVerified": false,
  "likeCount": 15000,
  "replyCount": 214,
  "hasCreatorHeart": true,
  "isPinned": false,
  "isEdited": false,
  "publishedTimeText": "2 years ago",
  "publishedAtApprox": "2024-10-13T12:00:00.000Z",
  "isReply": false,
  "parentCommentId": null,
  "commentUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ&lc=UgzB5Hn0hc1b1Bk4dYF4AaABAg",
  "videoId": "dQw4w9WgXcQ",
  "videoTitle": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
  "channelName": "Rick Astley",
  "channelUrl": "https://www.youtube.com/@RickAstleyYT",
  "videoViewCount": 1826323732,
  "videoCommentsCount": 2459088,
  "sortBy": "TOP",
  "scrapedAt": "2026-10-13T23:50:00.000Z"
}

Sample taken from the actor's README; values shown as placeholders there are placeholders.

FAQ

Do I need a YouTube API key or quota?

No. The actor reads the same public comment section a logged-out browser loads, so the 10,000-unit daily API quota doesn't apply.

How many comments can I get?

Set maxComments: 0 to get all of them. YouTube serves 20 per page, so very large videos take longer; a run of a few thousand comments usually finishes in about a minute.

Does `maxComments` include replies?

No. It counts top-level comments. Replies come on top of that, limited by maxRepliesPerComment. Use maxItems if you need one total cap.

Why is a comment's text empty?

Some comments contain only a sticker or an image. They are kept so that the counts match YouTube.

How exact are the dates?

YouTube only shows "3 days ago" or "2 years ago". publishedAtApprox converts that to a date, so it is accurate to the unit YouTube shows.

Do I need a proxy?

No, not for normal runs. If YouTube starts refusing requests, the run switches to Apify residential proxy on its own. Turn autoProxyFallback off to prevent this.

Is scraping YouTube comments legal?

The actor collects public information only. You are responsible for using the data in line with YouTube's terms and privacy laws such as GDPR, especially because comments carry usernames.

Something missing or broken?

Open an issue on the Issues tab with the run URL and we will reply there.

Where do I run it?

On Apify: https://apify.com/transparent_meteorite/youtube-comments-scraper. Check the Pricing tab there for current prices.

Try YouTube Comments Scraper on Apify