Skip to main content
GET
Get Post Comments
Fetch the comment thread on a post. Every page — the first included — replays Facebook’s own comment-list GraphQL query, which is why this endpoint costs double. Facebook serves 10 comments per page; follow end_cursor while has_next_page is true to walk the whole thread. Credits: 10

Authorization

string
required
Your ScrapeBadger API key.

Path Parameters

string
required
Post id — numeric or pfbid. Ignored when url is supplied, but still required as a path segment (pass any placeholder, e.g. 0).

Query Parameters

string
Full post permalink or reel URL. Overrides post_id.
string
Pagination cursor — the end_cursor from a previous response.
string
default:"relevance"
One of relevance (Facebook’s ranked order), newest (reverse chronological), or most_relevant (an alias of relevance). The sort applies from the first page on, so do not mix orders across a single traversal — the cursors are not interchangeable.

Response

Comment[]
Each Comment includes id, message, author (Actor — id, name, url, profile_picture, is_verified, typename), creation_time_utc, created_at, reaction_count and reply_count.
integer
Number of comments in this page.
integer
Facebook’s own reported comment total for the post. It can exceed the number of comments actually reachable through pagination.
string
Pass as after for the next page.
boolean
Whether more comments are reachable.

Example

Response
total_count is what Facebook advertises, not what it will serve. Treat has_next_page: false as the real end of the thread — deep comment traversal is silently capped.