Top-level comments of a public Facebook post or reel with cursor pagination: text, author, reactions and reply count.
2 credits/ call
Never more than 27 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/facebook.post_comments" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.facebook.com/reel/2166091230582141/"}'{
"output": {
"found": true,
"data": {
"hasNextPage": "<boolean | null>",
"nextCursor": "<string | null>",
"comments": [
{
"reactions": "<integer | null>",
"replies": "<integer | null>",
"text": "<string | null>",
"createdUtc": "<integer | null>", …
}
]
}
},
"credits": 2
}Input and output
3 fields
https://www.facebook.com/reel/216609123….10 fields
Good to know
One page per call. Send nextCursor back as cursor to read the next page.
The same key and credits work for every API.