Facebook Page API
A Facebook Page or public profile as Facebook shows it logged out: name, Page id, category, verified badge, follower and following counts, profile and cover photos, and the intro (who runs it, phone, email, website, address).
GET /v1/facebook/pages/{page}Beta2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/facebook/pages/nike",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "id": "15087023444", "profile_id": "100044541544829", "name": "Nike", "url": "https://www.facebook.com/nike/", "category_name": "Sportswear Store", "is_verified": true, "profile_picture_uri": "https://scontent-dfw6-1.xx.fbcdn.net/v/t39.30808-1/284964043_10159903868513445_7696353984967674128_n.jpg?stp=dst-jpg_tt6…", "cover_photo_uri": "https://scontent-dfw6-1.xx.fbcdn.net/v/t39.30808-6/285211224_10159903868008445_5477337468887983165_n.png?stp=dst-png&cst…", "social_context": [ "39M followers", "24 following" ], "follower_count": 39000000, "following_count": 24, "like_count": null, "intro": [ "Page · Sportswear Store", "NIKE, Inc. is responsible for this Page", "… 2 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
pagepath · required | string | Page URL, vanity name or numeric id. Example: nike. |
Response fields
200 with a FacebookPage, in Facebook’s own JSON.
| Field | Type | Description |
|---|---|---|
id | string | The Page id (the profile id for a person’s profile). |
profile_id | string | null | The id of the profile behind the Page. |
name | string | null | |
url | string | |
category_name | string | null | |
is_verified | boolean | |
profile_picture_uri | string | null | |
cover_photo_uri | string | null | |
social_context | string[] | The header’s counts as Facebook words them (“39M followers”). |
follower_count | integer | null | From the rounded text: 39M is 39000000. |
following_count | integer | null | |
like_count | integer | null | |
intro | string[] | The intro lines: category, who runs the Page, phone, email, website, address, hours. |
Status codes
| Status | Meaning |
|---|---|
200 | The Page. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The ad, Page or advertiser is not in the Meta Ad Library. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Facebook is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Why are follower counts round numbers?
Facebook shows logged-out visitors rounded counts (39M). social_context keeps Facebook’s own wording. Not affiliated with Meta Platforms, Inc.
Facebook is a trademark of Meta Platforms, Inc. We are not affiliated with or endorsed by Meta.