Skip to main content

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​

ParameterInRequiredDescription
urlqueryyesLink to a Facebook group (any type)

Accepted link shapes:

  • https://www.facebook.com/groups/freegarden/ — slug
  • https://www.facebook.com/groups/800246542990860/ — numeric path
  • https://m.facebook.com/groups/freegarden/ — mobile mirror
  • https://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"
}
FieldTypeDescription
urlstringThe normalized input link
group_idstringNumeric group id, ready for the next call

Only successful responses (HTTP 200 and 404) are charged (see Rate limits).

Errors​

HTTPBodyMeaning
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
note

Typical flow: resolve → group_id → overview / members.