100 free credits. No credit card required. Get a key

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 failure
import 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

NameTypeDescription
pagepath · requiredstringPage URL, vanity name or numeric id. Example: nike.
Response fields

200 with a FacebookPage, in Facebook’s own JSON.

FieldTypeDescription
idstringThe Page id (the profile id for a person’s profile).
profile_idstring | nullThe id of the profile behind the Page.
namestring | null
urlstring
category_namestring | null
is_verifiedboolean
profile_picture_uristring | null
cover_photo_uristring | null
social_contextstring[]The header’s counts as Facebook words them (“39M followers”).
follower_countinteger | nullFrom the rounded text: 39M is 39000000.
following_countinteger | null
like_countinteger | null
introstring[]The intro lines: category, who runs the Page, phone, email, website, address, hours.
Status codes
StatusMeaning
200The Page.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The ad, Page or advertiser is not in the Meta Ad Library.
429Too many requests. Wait for Retry-After seconds.
503Facebook 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.