Recent posts of a public Facebook group by URL, with sort order and cursor pagination: text, author, reaction and comment counts.
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.group_posts" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.facebook.com/groups/instantpotcommunity/"}'{
"output": {
"found": true,
"data": {
"nextCursor": "<string | null>",
"posts": [
{
"commentCount": "<integer | null>",
"reactionCount": "<integer | null>",
"text": "<string | null>",
"publishTime": "<integer | null>", …
}
]
}
},
"credits": 2
}Input and output
4 fields
https://www.facebook.com/groups/instant….10 fields
Good to know
Facebook shows logged-out visitors 3 group posts per page. So every call returns up to 3 posts. Follow nextCursor for more.
Private groups are not reachable. Group posts are member-generated personal data.
Unknown URL? It comes back as not found, not as an error.
The same key and credits work for every API.