Skip to main content
GET
Get Post Comments
Fetch the comment thread on a post. The first page comes from the post’s own server-rendered shell; deeper pages replay Facebook’s comment-list GraphQL query — which is why this endpoint costs double. 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, newest, most_relevant.

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.