1. Platforms
  2. Facebook Scraper API
  3. Facebook public group API

Facebook public group API

What a public group's About page shows.

GET api.socialscrape.dev/v1/facebook/group

Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits

Description, privacy, member and activity counts, categories, admins and moderators where shown, history and rules.

You send one of url or id.

Part of the Facebook Scraper API: 23 Facebook endpoints on one key.

Request

Send your key in the x-api-key header.

1curl -G "https://api.socialscrape.dev/v1/facebook/group" \2  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3  --data-urlencode 'url=https://www.facebook.com/groups/366190054572553'

Parameters

NameTypeRequiredDescription
urlurlone ofPublic group URL (facebook.com/groups/...). Sub-pages such as /about work too.
idstringone ofNumeric group id; use it instead of `url` if you have it. Also accepted as group_id.

Every request also accepts trim, raw and max_age_days.

Response

Sample from a recorded response, shortened. Values are examples, not your data.

200 OKSample response
1{2  "ok": true,3  "credits_charged": 1,4  "credits_remaining": 4999,5  "cached": false,6  "cached_at": null,7  "request_id": "req_d05ae521cb97f1a25d8a6524",8  "data": {9    "object": "community",10    "platform": "facebook",11    "id": "366190054572553",12    "url": "https://www.facebook.com/groups/366190054572553/",13    "kind": "group",14    "name": "Python Programming",15    "title": "Python Programming",16    "description": "Let's share our knowledge on Python Programming",17    "avatar_url": "https://scontent-iad6-1.xx.fbcdn.net/v/t1.6435-9/121615771_3201454343306997_2348901429098757975_n.jpg?stp=dst-jpg_tt6&cstp=mx640x400&ctp=s640x400&_nc_cat=106...",18    "banner_url": null,19    "member_count": 759600,20    "online_count": null,21    "is_nsfw": null,22    "is_private": false,23    "verified": null,24    "created_at": "2020-10-14T11:05:03Z",25    "extra": {26      "activity": {27        "new_members_text": "No new members in the last week",28        "posts_last_day": 28,29        "posts_last_month": 154230      },31      "administrator_count": 3,32      "administrators": [33        {34          "id": "pfbid029gmqPLAMDT2z4drrFEsicJ4ivhnAGkEPBNUPTujKbSYf6bMCjTzRKrNNPmePAotrl",35          "name": "Nusrat Jahan",36          "profile_picture_url": "https://scontent-iad6-1.xx.fbcdn.net/v/t39.30808-1/297738489_149183324449711_6655284279259187616_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx720x730&ctp=s32x32&_nc_cat=...",37          "url": null38        },39        {40          "id": "100079525026696",41          "name": "Thesoftwarelion",42          "profile_picture_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.30808-1/242977119_109642788145497_5023972278328162431_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx1200x1200&ctp=s32x32&_nc_ca...",43          "url": null44        },45        {46          "id": "pfbid0pzs33rRB9YA54hRjvjaPeA62UVZTg73Aqbnn8jSjS9Mo1DUAZNyzV6wFUgYgnDwhl",47          "name": "Jamil Ahmed",48          "profile_picture_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.30808-1/795255518_27959759933716428_4332290339331851799_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx1568x1556&ctp=s32x32&_nc_...",49          "url": null50        }51      ],52      "categories": [53        {54          "id": "242504017103922",55          "name": "Software & tech"56        },57        {58          "id": "202183377053878",59          "name": "Engineering"60        }61      ],62      "history_summary": "Group created on October 14, 2020. Name last changed on October 16, 2020.",63      "member_count_text": "759.6K members"64    }65  },66  "cursor": null,67  "has_more": null68}

Fields

One Community in data.

A field the platform does not give is null, never made up. Extra platform details are in extra.

FieldTypeAlwaysNotes
object"community"
platformPlatformyes
idstring or null
urlstring or null
kind"subreddit" or "group" or "community" or "channel" or "unknown"
namestring or nullthe slug, "python" for r/python
titlestring or null
descriptionstring or null
avatar_urlstring or null
banner_urlstring or null
member_countinteger or null
online_countinteger or null
is_nsfwboolean or null
is_privateboolean or null
Show the other 3 fields
FieldTypeAlwaysNotes
verifiedboolean or nullthe platform's verified badge (Telegram channels)
created_atstring (ISO 8601 date-time) or null
extraobject or null

Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.

Questions

Which errors can it return?

invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.

Is there an SDK call for it?

The Python client has client.facebook.group(...) and the TypeScript client client.facebook.group(). Both return the same envelope as the HTTP API. Install them from PyPI (socialscrape-sdk) or npm (socialscrape); plain HTTP works in any language.

Can an AI agent call it?

Yes. The MCP server, which you run on your own machine, reaches every built endpoint, with the same prices.