Skip to content
//Facebook Comments Scraper example\\

Threaded comments from a post, 10 comments

Comments in threaded order.

Updated December 6, 2026

What this example returns

This example returns up to 10 comments.

The dataset’s “Comments” view shows 8 columns: Name, Profile, Comment, Date, Likes, Depth, Comment URL, and Post URL. See every output field.

What each setting does

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

Facebook URLs startUrls

https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl

Public post, photo, video, or reel URLs: one comment thread is read per URL. A page URL (e.g. https://www.facebook.com/humansofnewyork) reads the comments of the page's latest posts; set how many under Latest posts per page.

Maximum comments resultsLimit

10

How many top-level comments to save per URL. Replies are saved in addition to this number when comment replies are included.

Comments mode viewOption

Most relevant

How Facebook orders the comments before they are saved.

Default: All comments → this example uses Most relevant

Include comment replies includeNestedComments

No

Save replies and replies-to-replies as their own rows, up to three levels.

.json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl"
    }
  ],
  "resultsLimit": 10,
  "includeNestedComments": false,
  "viewOption": "RANKED_THREADED"
}

What it costs

You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices: compute, proxies, browser and storage cost nothing extra.

  • Commentfrom $0.000636One public comment or reply saved to the dataset.
  • Date filterfrom $0.00034A post read with a date filter.

Full pricing

When to use this example

From the Facebook Comments Scraper readme:

Why did I get more rows than Maximum comments?

The limit caps top-level comments. With replies switched on, replies are saved as additional rows.

Why do some comments have no profile link?

Facebook shows a profile link to logged-out visitors only for some people. For the others, the name on the public post is plain text with no link, and the row has no profileUrl. In our checks on public pages, about 6 in 10 commenters had no link. Their name, comment text and date are always saved, and profileId holds the id Facebook gives the commenter.

Other ways to run Facebook Comments Scraper

All examples of Facebook Comments Scraper

About Facebook Comments Scraper

Extract public comments from Facebook posts, reels, photos, and videos. Returns comment text, timestamps, likes, and basic profile details.

Price:
From $0.636 / 1,000 results
Developer:
Echofield
Category:
Social media

Facebook 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.