Skip to main content
GET
Get Group & Group Posts
Fetch a Facebook Group’s metadata, and its feed from the companion endpoint. Credits: 10 (each). A /posts page that returns no posts, and any error, costs nothing. Facebook decides the feed’s page size and serves 3 posts per page to a logged-out client, regardless of how many are asked for — the same on every plan. Follow end_cursor while has_next_page is true to walk back through older posts.

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. Keep the same sort for every page of one walk.
string
default:"newest"
/posts only. newest — newest first by post time, and each page continues with older posts. relevance — Facebook’s “top posts” ranking, which moves older posts with fresh comments up, so the order can change between calls.

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.
Album, sale and listing posts list each photo once in attachments[], with its uri, width and height. Facebook includes up to 5 photos per post in a feed.
A private group’s /posts returns 503 with a message saying Facebook serves its feed only to signed-in members — not an empty posts[]. An empty posts[] with has_next_page: false means the end of the feed.

Example

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