Facebook / Group
Search
Search one page of posts and matching profiles. Each returned post costs 4 credits.
01
Request
POST /facebook/groups/search with your bearer API key. Send the group ID and the text to search for. Each call returns one page.
| group_id | Required numeric Facebook group ID. |
| query | Required search text. |
| recent | Optional boolean. Show newest results first. |
| location_id | Optional numeric Facebook location ID. |
| start_date | First posted date, inclusive, in YYYY-MM-DD form. Send with end_date. |
| end_date | Last posted date, inclusive, in YYYY-MM-DD form. Send with start_date. |
| cursor | Optional data.pagination.cursor from the previous response. Omit it for page one. |
If data.pagination.has_next_page is true, send another request withdata.pagination.cursor as cursor. Pass it back unchanged. Each request fetches one page. Returned posts cost 4 credits each; matching profile cards and pages with no posts cost nothing. You need at least 1 credit before a search starts; an empty balance returns 402. If the page costs more than your remaining balance, you receive the full page and only the remaining credits are deducted. cost shows the actual charge. Failed fetches are not charged.
02
Response sample
A short illustrative response. IDs, names and cursor are examples; the fields match the API response.
▸ ▾ response {} — one page, shortened
{
"created_at": 1790414658,
"cost": 4,
"request_duration": 918,
"parse_duration": 12,
"data": {
"posts": [
{
"id": "1608745650434216",
"url": "https://www.facebook.com/groups/734678554507601/posts/1608745650434216/",
"created_at": 1790410000,
"text": "A post matching the search",
"author": {
"id": "100000000000001",
"name": "Group member",
"url": "https://www.facebook.com/profile.php?id=100000000000001"
},
"group": {
"id": "734678554507601",
"name": "Movies Recommendations 2026",
"url": "https://www.facebook.com/groups/734678554507601"
},
"engagement": {
"reaction_count": 3,
"comment_count": 1,
"share_count": 0
},
"media": []
}
],
"users": [
{
"id": "100000000000002",
"name": "Matching member",
"url": "https://www.facebook.com/profile.php?id=100000000000002",
"profile_picture_url": null,
"is_verified": false
}
],
"pagination": {
"has_next_page": true,
"cursor": "<opaque cursor>"
}
}
}03
Fields
One result page may contain both posts and matching group-profile cards. data.users describes cards returned by this search, not a roster of the group's members.
data.posts []
▸ ▾ authorobjectThe post's author.
▸ ▾ groupobjectThe group containing the post.
▸ ▾ engagementobjectCounts shown on the post.
▸ ▾ mediaobject[]Images, links and other attachments. Empty when none were parsed.
▸ ▾ album_imagesobject[]Images inside an album attachment.
data.users []
data.pagination {}