Skip to main content
GET
Get Group & Group Posts
Fetch a Facebook Group’s metadata, and its feed from the companion endpoint. Credits: 5 (each)

Authorization

string
required
Your ScrapeBadger API key.

Path Parameters

string
required
Numeric group id or the group’s vanity slug — the facebook.com/groups/<group_id> segment.

Query Parameters

string
/posts only. Pagination cursor — the end_cursor from a previous response.

Response — /groups/{group_id}

Returns a single Group object.
string
Numeric group id.
string
Group name.
string
Canonical facebook.com/groups/ URL.
string
Facebook’s privacy setting — typically Public or Private.
string
Whether the group is listed in search (visible) or hidden.
integer
Number of members.
string
Group intro / rules text.
string
Cover image URL.
number
Group creation time, Unix seconds.
string
Group creation time, ISO 8601 UTC.

Response — /groups/{group_id}/posts

Post[]
Full Post objects — id, post_id, url, permalink_url, message, creation_time_utc, created_at, author (Actor), attachments[] (Media), reaction_count, reaction_count_text, top_reactions[], comment_count, share_count, story_type. See Get Page or Profile Posts for the field-by-field breakdown.
integer
Number of posts in this page.
string
Pass as after for the next page.
boolean
Whether more posts are reachable.
A private group returns metadata but an empty posts[] — Facebook serves no feed units to a non-member session. Check privacy before treating an empty feed as an error.

Example

Response
Discover groups with /search/groups — it returns SearchResult objects with type: "group"; take the id here for full metadata.