Facebook Groups API Alternative: Search Public Groups
Meta removed the Facebook Groups API in April 2024. Search public groups by keyword, get member counts and privacy, and read posts with three GET endpoints.
Meta removed the Facebook Groups API in April 2024. A Facebook Groups API alternative has to do three jobs: find public groups for a topic, tell you how big and how open each one is, and read their posts. SocialCrawl covers those with GET /v1/facebook/search/groups, GET /v1/facebook/group and GET /v1/facebook/group/posts. All three work on public groups only.
What happened to the Facebook Groups API?
Meta deprecated the Facebook Groups API in Graph API v19.0 on 23 January 2024 and removed it from all versions on 22 April 2024. The v19 announcement states the 90-day window, and the v19 changelog lists what went with it: the publish_to_groups and groups_access_member_info permissions, the reviewable Groups API feature, and the ability for group admins to install apps on a group.
Meta's announcement and changelog cover publishing and member info for groups an admin had connected an app to. Neither mentions a keyword search over public groups you don't run. If you want to know which groups talk about a topic, how many members they have, and what they post, you need a different source.
How do you search Facebook groups by keyword?
Send a keyword to GET /v1/facebook/search/groups and you get one row per public group, in the order the search found them. A page holds up to 10 groups and costs 1 credit. Pass pagination.next_cursor back as cursor for the next page.
curl "https://www.socialcrawl.dev/v1/facebook/search/groups?query=sourdough" \
-H "x-api-key: $SOCIALCRAWL_API_KEY"Each row uses the same author shape as the single-group endpoint. A trimmed row looks like this:
{
"author": {
"id": "1234567890",
"url": "https://www.facebook.com/groups/1234567890/",
"display_name": "Sourdough for Beginners",
"followers": null,
"ext": {
"search_hit": {
"match": "group_page",
"title": "Sourdough for Beginners"
}
}
},
"computed": { "relevance": 0.98 }
}Groups are found through a search index limited to Facebook group pages, so a group turns up either through its own page or through a post inside it. author.ext.search_hit.match tells you which: group_page or post_in_group. When a group was found through a post, display_name is null, because a post title is not the group's name. computed.relevance scores each row against your query for free, and relevance=filter drops rows that are about something else.
author.url is already in the form the other two endpoints take as url, so you can pass it straight through.
How do you get member counts and privacy for each group?
Add include=details to the same search and every group on the page is looked up in the same call. The row then carries the member count in author.followers, the description in author.bio, the creation date in author.joined_at, the name where it was missing, and the group's labels and posting activity under author.ext.group.
curl "https://www.socialcrawl.dev/v1/facebook/search/groups?query=sourdough&include=details" \
-H "x-api-key: $SOCIALCRAWL_API_KEY"{
"author": {
"id": "1234567890",
"display_name": "Sourdough for Beginners",
"followers": 120000,
"joined_at": "2020-04-09",
"ext": {
"group": {
"id": "1234567890",
"privacy_label": "Public",
"visibility_label": "Visible",
"activity": { "posts_last_month": 6000 }
}
}
}
}When you use the details:
- Dedupe on
author.ext.group.id. The same group can appear on a later page, and once under its vanity name and once under its numeric id. Afterinclude=details, the numeric id is the stable key. - Check
privacy_labelbefore you read posts. A group can be public in search and still private to read. followersis a count only. No member list comes back.
If you already have one group's URL, GET /v1/facebook/group returns the same record for 1 credit, with url or group_id.
How do you read posts from a public group?
Call GET /v1/facebook/group/posts with the group's url (or group_id). Each post comes with its text, reaction, comment and share counts, author name, publish time and any attached image or video.
curl "https://www.socialcrawl.dev/v1/facebook/group/posts?url=https://www.facebook.com/groups/1234567890/&sort_by=CHRONOLOGICAL" \
-H "x-api-key: $SOCIALCRAWL_API_KEY"Facebook serves a group feed 3 to 4 posts at a time, so depth is a cursor walk. Send pagination.next_cursor back as cursor and repeat until has_more is false; see pagination. Each page is 1 credit. sort_by=CHRONOLOGICAL keeps a busy group in date order, while the default and TOP_POSTS mix older high-engagement posts into the first pages.
Which endpoint does what?
| Job | Endpoint | Credits | Key parameters |
|---|---|---|---|
| Find public groups by keyword | GET /v1/facebook/search/groups | 1 per page | query, cursor |
| Same, with members, description and privacy | GET /v1/facebook/search/groups?include=details | 1, plus 1 per group filled (11 at most) | query, include=details |
| One group's profile | GET /v1/facebook/group | 1 | url or group_id |
| A group's posts | GET /v1/facebook/group/posts | 1 per page | url or group_id, sort_by, cursor |
With include=details, groups already in cache are free, groups that could not be filled are refunded, and a repeat of the same call within the cache window costs nothing. Full pricing rules are on the credits page, and the Facebook endpoints are documented in the Facebook docs. A new account starts with 100 free credits.
What doesn't it do?
- Private groups. Only public groups are searchable and readable. There is no way in to a private group.
- Member lists.
followersis a count; the members themselves are not returned. - Posting and admin actions. The old Groups API let admins publish to a group. These endpoints only read.
- A complete list of groups on a topic. Search returns what the group-page index surfaces for your keywords. Run a few phrasings of the same topic and merge the results on
author.ext.group.id.
For Facebook pages, page posts and the Ad Library, see how to scrape Facebook and the comparison of Facebook data APIs.
Frequently asked questions
Is the Facebook Groups API deprecated?
Yes. Meta deprecated it in Graph API v19.0 and removed it from every version in April 2024, along with the publish_to_groups and groups_access_member_info permissions. Apps that used it now need another source for group data.
What is the best Facebook Groups API alternative for public groups?
SocialCrawl's GET /v1/facebook/search/groups finds public groups by keyword, GET /v1/facebook/group returns one group's record, and GET /v1/facebook/group/posts reads its posts. Each call is 1 credit, and include=details on the search fills member counts and privacy for every group on the page.
Can I search Facebook groups by keyword with an API?
Yes. Send query to GET /v1/facebook/search/groups with your x-api-key header. You get up to 10 public groups per page, each with a link you can pass to the group and group-posts endpoints, and a cursor for the next page.
Can I get a Facebook group's member list?
No. include=details and GET /v1/facebook/group return the member count in author.followers, and nothing lists the people in the group.
Does it work for private groups?
No. Only public groups are covered. A group can show up in search and still be private to read, so check author.ext.group.privacy_label before you call the posts endpoint.
Run this request yourself
GET /v1/facebook/search/groups?query=sourdoughIt opens with the request filled in, and nothing runs or costs credits until you press Run. Without an account you sign up first, then land on the same request.
Related posts
Kalodata API Alternative for TikTok Shop Sales Data
Kalodata and FastMoss are TikTok Shop dashboards that now offer APIs. What their pages and terms say, and which SocialCrawl calls return shop and sales data.
TikTok Research API Alternative for Developers
TikTok's Research API is only for non-profit academic and research bodies in named regions. Its rules and limits, and the API call that does each job instead.
Best Twitter Analytics Tools: 4 Options Compared
Compare native X analytics, social suites, benchmark reports and a data API for Twitter analytics, plus a 0.57% median engagement rate from 363 public posts.
