Facebook link resolver API
GET /resolve · base https://api.getsocialapi.com/fb
Resolve any group link to a numeric group_id — the id required by
overview and members.
Resolution follows redirects
(m.facebook, mbasic, share links), so any public URL shape works.
Request
| Parameter | In | Required | Description |
|---|---|---|---|
url | query | yes | Link to a Facebook group (any type) |
Accepted link shapes:
https://www.facebook.com/groups/freegarden/— slughttps://www.facebook.com/groups/800246542990860/— numeric pathhttps://m.facebook.com/groups/freegarden/— mobile mirrorhttps://www.facebook.com/share/g/AbCdEf123/— share link (resolved via mbasic redirect)- any group subpath, e.g.
/groups/freegarden/posts/123456/
Authentication: X-API-Key: gsa_live_... or Authorization: Bearer gsa_live_...
(see Authentication).
Example
curl -G "https://api.getsocialapi.com/fb/resolve" \
--data-urlencode "url=https://www.facebook.com/groups/freegarden/" \
-H "X-API-Key: gsa_live_..."
Response
{
"url": "https://www.facebook.com/groups/freegarden/",
"group_id": "800246542990860"
}
| Field | Type | Description |
|---|---|---|
url | string | The normalized input link |
group_id | string | Numeric group id, ready for the next call |
Only successful responses (HTTP 200 and 404) are charged (see Rate limits).
Errors
| HTTP | Body | Meaning |
|---|---|---|
401 | {"error": "Missing API key"} / {"error": "Invalid API key"} | auth problem |
403 | {"error": "Plan limit or expired plan"} | quota exhausted or plan expired |
429 | — | RPS limit exceeded, retry after Retry-After |
502 | {"error": "could not resolve group id from <url>"} | closed/deleted group, or the link is not a group |