Skip to main content
POST /v1/data/facebook/comments/run Pricing: $0.0025 per comment ($2.50 per 1,000).

Request

Send the inputs under params. Only the keys below are accepted; any other key returns 422 invalid_params.
string
required
A Facebook post, reel, or photo permalink to scrape comments from.Format e.g. https://www.facebook.com/100044541544829/posts/1393461115481927.
integer
Number of comments to return. Use 0 for all.
boolean
default:"true"
On: also pull replies under each comment (returned as their own rows). Off: top-level comments only.
string
default:"RANKED_UNFILTERED"
How Facebook orders the comments it returns.Allowed values: RANKED_UNFILTERED (All comments, ranked), RANKED_THREADED (Ranked, grouped by thread), RECENT_ACTIVITY (Most recent activity first).

Example

Response fields

Each row in data is one comment, keyed by these fields.

Example response

Abridged: long text and lists are shortened.
For the posts themselves use facebook/posts.