Recent public posts of a Facebook page by URL or page id, with cursor pagination: text, time, reactions, comments and media.
2 credits/ call
Never more than 17 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/facebook.profile_posts" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.facebook.com/nike"}'{
"output": {
"found": true,
"data": {
"nextCursor": "<string | null>",
"posts": [
{
"likes": "<integer | null>",
"comments": "<integer | null>",
"shares": "<integer | null>",
"text": "<string | null>", …
}
]
}
},
"credits": 2
}Input and output
3 fields
https://www.facebook.com/nike.12 fields
Good to know
Facebook shows logged-out visitors 3 posts per page. A limited depth (a few dozen posts).
Flat price per page.
One page per call. Send nextCursor back as cursor to read the next page.
The same key and credits work for every API.