Skip to content
//YouTube Comments Scraper example\\

Top comments on Gangnam Style, 10 comments

The most liked comments on a video.

Updated November 14, 2026

What this example returns

This example returns up to 10 comments.

The dataset’s “Overview” view shows 10 columns: Author, Comment, Type, Likes, Replies, Published, Creator heart, Channel owner, Video title, and Video URL. See every output field.

What each setting does

The input this example runs YouTube Comments Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Video URLs startUrls

https://www.youtube.com/watch?v=9bZkp7q19f0

Links to public YouTube videos. Watch, youtu.be, shorts, embed, and live links all work.

Maximum comments per video maxComments

10

How many comments to return for each video.

Sort comments by sortCommentsBy

Top comments

Newest first or top comments. A date filter always reads newest first.

Default: Newest first → this example uses Top comments

.json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=9bZkp7q19f0"
    }
  ],
  "maxComments": 10,
  "sortCommentsBy": "TOP_COMMENTS"
}

What it costs

From about $0.0051 for 10 comments

An estimate at the lowest plan price: 10 × $0.000508 per comment (One public comment returned). A run is charged for the events it reports, so one that finds fewer comments costs less. Platform usage is included in the event price.

Full pricing

When to use this example

From the YouTube Comments Scraper readme:

Does it include replies?

Not as separate rows. Only top-level comments are returned, with replyCount showing how many replies each one has.

Known limit

publishedTimeText is relative ("6 minutes ago"), not an exact timestamp.

Other ways to run YouTube Comments Scraper

All examples of YouTube Comments Scraper

About YouTube Comments Scraper

Extract public YouTube comments from video links: text, author, likes, replies, publish time, and the video title.

Price:
From $0.508 / 1,000 results
Developer:
Echofield
Categories:
Social media, Videos

YouTube Comments Scraper pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.