Social Media Scraper
Facebook

Facebook Group Details API

Look up a public Facebook group to identify the community associated with a group URL.

GET/v1/facebook/group

$0.002444 USD per request

Open API playground

Use Facebook Group Details API with Python

On this page

Request example

Send your customer API key in x-api-key. Generate a new Idempotency-Key for each logical request and preserve it with identical input for retries.

JavaScript examples use Node.js with built-in fetch; Python examples use the standard library. Configure SOCIALSCRAPER_API_KEY in the execution environment.

cURL
curl --request GET 'https://socialmediascraper.org/v1/facebook/group?url=https%3A%2F%2Fwww.facebook.com%2Fgroups%2F366190054572553%2Fabout' \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Idempotency-Key: example-request-0001' \
  --header 'x-price-version: 2026-11-23.retail-1'

Authentication

x-api-keystring

Your customer API key.

Idempotency-Keystring · 8–128

A unique identity for one logical request. Reuse it with identical input for a retry.

x-price-version2026-11-23.retail-1

Optional price version. A changed version is rejected before billing.

Request parameters

Query string

Choose your inputs

  • Provide at least one of: url, group_id.
urlstringOptional

Public facebook content or profile URL to retrieve. Paste the complete URL, including https://.

Example"https://www.facebook.com/groups/366190054572553/about"

group_idstringOptional

Facebook group identifier used by facebook. Send the identifier as text to preserve its full value.

Example"366190054572553"

Response and fields

The response uses request_id, data and meta. The table below describes the returned data object; keep null values when a source field has no value.

200
{
  "request_id": "example-request-id",
  "data": {
    "platform": "facebook",
    "resource": "profile",
    "id": "123456789",
    "handle": "example",
    "display_name": "Example creator",
    "bio": "Example description",
    "profile_url": "https://example.com/public-content",
    "avatar_url": null,
    "verified": null,
    "private": null,
    "metrics": {
      "followers": null,
      "following": null,
      "posts": null,
      "likes": null,
      "views": null
    }
  },
  "meta": {
    "platform": "facebook",
    "fetched_at": "2026-11-28T00:00:00.000Z",
    "cached": false,
    "schema_version": "2026-11-23.2",
    "route_version": 1,
    "billing": {
      "capability": "facebook.group",
      "version": "2026-11-23.retail-1",
      "currency": "USD",
      "unit_scale": 1000000000,
      "amount_units": 2444000,
      "amount_usd": "0.002444000",
      "billing_basis": "request"
    }
  }
}
request_idIdentity of this API request. Keep it for status checks and support.
dataNormalized result for the selected operation.
metaRetrieval, contract, route and billing metadata.
data.platformstring

Source platform identifier.

data.resourcestring

Operation resource identifier.

data.idstring

Source identity preserved as text.

data.handlestring

Public account username or handle.

data.display_namestring

Account or creator display name.

data.biostring

Public account biography or description.

data.profile_urlstring

Public account or channel URL.

data.avatar_urlnull

Account avatar reference.

data.verifiednull

Source verification flag when returned.

data.privatenull

Source privacy flag when returned.

data.metricsobject

Available source metrics grouped by measurement.

data.metrics.followersnull

Source-reported followers measurement when present.

data.metrics.followingnull

Source-reported following measurement when present.

data.metrics.postsnull

Source-reported posts measurement when present.

data.metrics.likesnull

Source-reported likes measurement when present.

data.metrics.viewsnull

Source-reported views measurement when present.

Pagination

Use the returned record or result set directly, then choose a related operation when your task needs additional data.

Errors and recovery

Read the error code and request_id before deciding how to recover. Retain your original input and request identity when retrying the same operation.

400

Review parameter types and identifier-combination rules.

401

Check x-api-key and the key in your workspace.

402

Check the quoted request price and your available USD balance.

429

Wait for Retry-After before retrying with the original request identity.

Track a saved request

If a request outcome is uncertain, read GET /v1/requests/:id using the returned request_id before starting a replacement.

GET /v1/requests/:id
curl "https://socialmediascraper.org/v1/requests/REQUEST_ID" \
  -H "x-api-key: YOUR_API_KEY"

Price version: 2026-11-23.retail-1. Each additional page is billed as a request. Inspect meta.billing for the amount applied to your request.

Build a workflow with Facebook Group Details API

Choose a Facebook community as a focused research source. Keep community identity with the collected records so your application can distinguish discussion within different audiences.

Choose the right input

Review url, group_id in the GET input list below. Follow the required-field and identifier-combination rules before adding optional filters.

Work with the returned records

The JSON example below shows this operation’s normalized fields: id, handle, display_name, bio, profile_url, avatar_url, verified, private, metrics. Keep request_id with stored results for request tracking.

Related API operations