Facebook Profile API
Returns a Facebook page's public profile: page id, display name, profile image, bio, follower count, and page-like count.
GET /v1/facebook/profileLast updated November 2026Maintained by the SocialCrawl team
Try the Facebook Profile API
See real data before writing a single line
When to use the Facebook Profile API
Use it when you have a page URL and want a quick snapshot before pulling that page's posts, photos, or reels.
From the API reference
Returns a unified Facebook Author profile with page ID, display name, profile URL, profile image, bio (the page intro), follower count, page-like count, and creation date. Two things to know before grading on the numbers: author.followers is Facebook's ROUNDED public display figure (106,000,000 on the Meta page, where the exact page-like count alongside it reads 106,588,412), and author.joined_at is an ISO DATE (YYYY-MM-DD), not an instant, because Facebook publishes page creation to the day. A **business page** carries considerably more than a personal profile, and all of it rides in author.ext: business_category, website, links[], public_phone, public_email, address, price_range, rating (Facebook's recommendation string, e.g. "74% recommend (9,493 reviews)") with rating_count (that review count as a number), talking_about_count, cover_url, page_active, and ad_library_page_id / ad_library_status: the Ad Library page id is a different id from author.id and is the one /v1/facebook/adlibrary/company/ads takes, so you can chain profile → ads off a single lookup. A personal profile returns null for the listing fields it has no equivalent for rather than omitting them. links[] and business_hours[] are also mapped, the latter only when you pass get_business_hours=true, but Facebook returned both empty on every page measured on 2026-08-11, so treat them as best effort rather than data you can depend on. author.following and author.posts_count remain null because the upstream profile response does not provide those totals.
Searching 69 platforms in parallel
What can you do with the Profile API?
The Profile endpoint gives you structured Facebook data with computed fields in a single request. No scraping infrastructure to build or maintain.
Example Request
# GET /v1/facebook/profile: 1 credit per call. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
# --max-time 14: this endpoint's measured p99 latency x 1.5.
# --retry 3: retries timeouts, 429 and 5xx, honoring Retry-After.
# -o response.json keeps only the final attempt's body.
# One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
IDEMPOTENCY_KEY=$(od -An -N16 -tx1 /dev/urandom | tr -d ' \n')
curl -sS --max-time 14 --retry 3 -o response.json \
-H "x-api-key: YOUR_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
"https://www.socialcrawl.dev/v1/facebook/profile?url=https%3A%2F%2Fwww.facebook.com%2FMeta" && cat response.json# GET /v1/facebook/profile: 1 credit per call. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
import os
import random
import time
import uuid
import requests
API_KEY = os.environ.get("SOCIALCRAWL_API_KEY", "YOUR_API_KEY")
TIMEOUT_S = 14 # this endpoint's measured p99 latency x 1.5.
MAX_RETRIES = 3
URL = "https://www.socialcrawl.dev/v1/facebook/profile"
def backoff(attempt):
# Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
return 2 ** attempt * (0.5 + random.random() / 2)
def socialcrawl(params):
# One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
idempotency_key = str(uuid.uuid4())
for attempt in range(MAX_RETRIES + 1):
try:
res = requests.get(
URL,
params=params,
headers={"x-api-key": API_KEY, "Idempotency-Key": idempotency_key},
timeout=TIMEOUT_S,
)
body = res.json()
except (requests.RequestException, ValueError):
# A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
if attempt == MAX_RETRIES:
raise
time.sleep(backoff(attempt))
continue
if body["success"]:
return body
error = body["error"]
# Branch on error["type"], never on the message text.
if error["type"] == "RESOURCE_NOT_FOUND":
return None # refunded: nothing to read
retry_after = res.headers.get("Retry-After")
# SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
permanent = error["type"] == "SERVICE_UNAVAILABLE" and retry_after is None
if not error.get("retryable") or permanent or attempt == MAX_RETRIES:
raise RuntimeError(f"{error['type']}: {error['message']} (request_id {body['request_id']})")
# Retry-After (seconds) wins; otherwise back off.
time.sleep(float(retry_after) if retry_after else backoff(attempt))
params = {
"url": "https://www.facebook.com/Meta",
}
body = socialcrawl(params)
if body is not None:
print(body["data"])// GET /v1/facebook/profile: 1 credit per call. Cache hits are free and failed calls are refunded.
// Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
const API_KEY = process.env.SOCIALCRAWL_API_KEY ?? "YOUR_API_KEY";
const TIMEOUT_MS = 14_000; // this endpoint's measured p99 latency x 1.5.
const MAX_RETRIES = 3;
type Page = { next_cursor: string | null; has_more: boolean };
type SocialCrawlResponse =
| { success: true; data: any; pagination?: Page; credits_used: number; request_id: string }
| { success: false; error: { type: string; message: string; retryable: boolean }; request_id: string };
const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
// Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
const backoffMs = (attempt: number) => 2 ** attempt * 1000 * (0.5 + Math.random() / 2);
async function socialcrawl(url: URL) {
// One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
const idempotencyKey = crypto.randomUUID();
for (let attempt = 0; ; attempt++) {
let res: Response;
let body: SocialCrawlResponse;
try {
res = await fetch(url, {
headers: {
"x-api-key": API_KEY,
"Idempotency-Key": idempotencyKey,
},
signal: AbortSignal.timeout(TIMEOUT_MS),
});
body = (await res.json()) as SocialCrawlResponse;
} catch (error) {
// A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
if (attempt >= MAX_RETRIES) throw error;
await sleep(backoffMs(attempt));
continue;
}
if (body.success) return body;
// Branch on error.type, never on the message text.
if (body.error.type === "RESOURCE_NOT_FOUND") return null; // refunded: nothing to read
const retryAfter = res.headers.get("Retry-After");
// SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
const permanent = body.error.type === "SERVICE_UNAVAILABLE" && retryAfter === null;
if (!body.error.retryable || permanent || attempt >= MAX_RETRIES) {
throw new Error(`${body.error.type}: ${body.error.message} (request_id ${body.request_id})`);
}
// Retry-After (seconds) wins; otherwise back off.
await sleep(retryAfter ? Number(retryAfter) * 1000 : backoffMs(attempt));
}
}
const url = new URL("https://www.socialcrawl.dev/v1/facebook/profile");
url.searchParams.set("url", "https://www.facebook.com/Meta");
const body = await socialcrawl(url);
if (body) console.log(body.data);Parameters
| Parameter | Required | Description |
|---|---|---|
| url | Yes | Full URL of the Facebook page or profile. A profile share link (`https://www.facebook.com/share/…`) is accepted. |
| get_business_hours | No | Get the business's hours |
What does the Facebook Profile API return?
Every response follows one unified schema. Here is a real, unmodified response body, so you can see the exact fields you get back before spending a credit.
Example response
{
"success": true,
"platform": "facebook",
"endpoint": "/v1/facebook/profile",
"data": {
"author": {
"id": "100080376596424",
"username": "Meta",
"display_name": "Meta",
"avatar_url": "https://scontent-hou1-1.xx.fbcdn.net/v/t39.30808-1/825292571_1146841521338390_8821495995170295283_n.jpg?stp=c0.11.852.852a_cp6_dst-jpg_tt6&cstp=mx852x852&ctp=s480x480&_nc_cat=1&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=idzu8UNXz1IQ7kNvwHhC0C8&_nc_oc=AdqNhRJL8z_YtPHACsto0Boytx2ija-r7Jhr5KdgfXTMphnePVaEk6tgYfBemFxsw70&_nc_zt=24&_nc_ht=scontent-hou1-1.xx&_nc_gid=bFVpq5p-rF2pZsdu_C6r2w&_nc_ss=78289&oh=00_AQPibNoQSJp3Er77__ctuG8mFX5zTYsJ_W21HL1hjbXxLA&oe=6AC5A181",
"bio": "Connect with what you love to make things happen.",
"verified": null,
"followers": 106000000,
"following": null,
"posts_count": null,
"likes_count": 106755832,
"url": "https://www.facebook.com/Meta",
"private": null,
"joined_at": "2020-01-31",
"ext": {
"public_email": null,
"public_phone": null,
"business_category": "Company",
"website": "https://www.meta.com/connect/",
"cover_url": "https://scontent-hou1-1.xx.fbcdn.net/v/t39.30808-6/825292146_1146841188005090_7443674991975795954_n.jpg?stp=cp6_dst-jpg_tt6&cstp=mx3366x1246&ctp=p720x720&_nc_cat=108&ccb=1-7&_nc_sid=cc71e4&_nc_ohc=vncXg57GIL0Q7kNvwExY470&_nc_oc=AdoGlOyFynBhNfZulWq68_SISVnbpQM7q_MAgZ4qAYATRtumC56KvTUGBv58hCJlMQ0&_nc_zt=23&_nc_ht=scontent-hou1-1.xx&_nc_gid=bFVpq5p-rF2pZsdu_C6r2w&_nc_ss=78289&oh=00_AQN8jjJgo9Y_qHTjRRovLbVN5LdH9vbDbAHjT7NicpGwbw&oe=6AC59930",
"page_active": false,
"address": null,
"price_range": null,
"rating": "74% recommend (9,653 reviews)",
"rating_count": 9653,
"talking_about_count": 807057,
"business_hours": null,
"links": [
"https://www.instagram.com/meta"
],
"ad_library_page_id": "108824017345866",
"ad_library_status": "This Page is currently running ads.",
"followers_approximate": true
}
},
"computed": {
"engagement_rate": null,
"language": "en",
"content_category": "other",
"estimated_reach": null
},
"_warnings": [
"computed.engagement_rate: author ratio exceeded 1.0 (raw: 1.00713); returned null. A lifetime likes/followers ratio is not a real engagement rate"
]
},
"credits_used": 1,
"request_id": "req_example000000",
"cached": false,
"credits_remaining": 9999,
"source": "captured",
"captured_at": "2026-10-02T15:36:50.863Z",
"redacted": true
}Live sample illustrating the unified response shape. Field values reflect the record you query.
How does the Facebook Profile API work?
Send a GET request with your API key and get back clean, structured JSON in our unified schema. Supported computed fields are populated when the source provides the required inputs.
Method
GET
Response
JSON
How do you scrape social media data in seconds?
The fastest social media scraping API for developers. Scrape profiles, posts, comments, and analytics from 69 platforms covering 10B+ monthly active users.
One schema, every platform
Query 69 platforms with identical response structures. Write your integration once.
Computed fields, not just scraped
When an endpoint supports these metrics and the source provides the required inputs, the normalized record includes engagement_rate, estimated_reach, content_category, and language. Ready to use.
See your data before you code
Visual Data Explorer. Paste any URL, get rich result cards, sortable tables, CSV export.
import requests
response = requests.get(
'https://www.socialcrawl.dev/v1/tiktok/profile',
params={'handle': 'charlidamelio'},
headers={'x-api-key': 'sc_YOUR_API_KEY'}
)
data = response.json(){
"success": true,
"platform": "tiktok",
"data": {
"author": {
"username": "charlidamelio",
"followers": 152400000
},
"engagement": {
"likes": 12400000000,
"engagement_rate": 0.087
},
"metadata": {
"language": "en",
"content_category": "lifestyle"
}
}
}Have a question? We got answers
Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.
Contact usHow do I get Facebook page data with an API?
What fields does GET /v1/facebook/profile return?
Can I scrape Facebook profiles without a Graph API token?
How much does the Facebook Profile API cost?
Can I get business hours for a Facebook page?
Ask AI about SocialCrawl
Ready to scrape Facebook Profile data?
Get your API key and start pulling Facebook data in under 60 seconds.
