Facebook Profile Full API
Returns a page's profile plus its latest 3 posts and computed figures: engagement rate by views and by followers, posting cadence, top post, and format mix.
GET /v1/facebook/profile/fullLast updated October 2026Maintained by the SocialCrawl team
When to use the Facebook Profile Full API
Use it instead of calling profile and profile/posts yourself; the profile still comes back even if the posts part fails.
From the API reference
Fans out to the Facebook profile and recent-posts endpoints in parallel and returns the unified author, the recent-post list, and computed metrics: avg_engagement_rate, avg_engagement_rate_by_followers, posting cadence (with the window it was measured over), the top post, and the format mix. avg_engagement_rate is view-based: the mean of each post's (likes + comments + shares) / views, so only posts that carry a view count contribute, and it is null when none does. avg_engagement_rate_by_followers is the mean of likes + comments per post divided by the account's follower count, over every post that carries both, so it covers posts with no view count. One call reads one page of recent posts, which on Facebook is 3 posts, and computes the metrics over that page: posts can shorten the window but not lengthen it past one page, and _warnings says so when fewer posts came back than posts asked for. Pass posts_cursor back as cursor to read the next page, 5 credits a call. The profile leg is the only critical leg: if posts can't be fetched the call still returns the profile with post-dependent metrics null, and every leg's status is surfaced in legs[]. Flat 5 credits. For Facebook, author.following and author.posts_count remain null because the profile upstream does not provide those totals.
Searching 69 platforms in parallel
What can you do with the Profile Full API?
The Profile Full 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/full: 5 credits 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 18: 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 18 --retry 3 -o response.json \
-H "x-api-key: YOUR_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
"https://www.socialcrawl.dev/v1/facebook/profile/full?url=https%3A%2F%2Fwww.facebook.com%2Fmrbeast&posts=25" && cat response.json# GET /v1/facebook/profile/full: 5 credits 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 = 18 # this endpoint's measured p99 latency x 1.5.
MAX_RETRIES = 3
URL = "https://www.socialcrawl.dev/v1/facebook/profile/full"
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/mrbeast",
"posts": "25",
}
body = socialcrawl(params)
if body is not None:
print(body["data"])// GET /v1/facebook/profile/full: 5 credits 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 = 18_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/full");
url.searchParams.set("url", "https://www.facebook.com/mrbeast");
url.searchParams.set("posts", "25");
const body = await socialcrawl(url);
if (body) console.log(body.data);Parameters
| Parameter | Required | Description |
|---|---|---|
| url | No | Full Facebook profile or page URL. One of the identity params is required. |
| posts | No | How many of the fetched recent posts to return and compute the metrics over (1-100, default 25). One call reads one page, which on Facebook is 3 posts, so a larger value returns that page and a `_warnings` note; pass posts_cursor back as cursor for the next page. |
| cursor | No | Pass a prior response's posts_cursor to read the next page of posts. Each call is a separate 5-credit call whose metrics cover that page only. |
| include | No | CSV subset of posts,computed (default both). include=computed omits the raw posts[] array from the response to save payload. The metrics are computed from the same fetched posts either way, so they do not change. |
What does the Facebook Profile Full 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/full",
"data": {
"profile": {
"id": "100044548384499",
"username": "mrbeast",
"display_name": "MrBeast",
"avatar_url": "https://scontent-dfw6-1.xx.fbcdn.net/v/t39.30808-1/351196722_2401743193333639_5070533686922392871_n.png?stp=dst-png&cstp=mx900x900&ctp=s480x480&_nc_cat=1&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=FilSKOcQBRIQ7kNvwFxAT9R&_nc_oc=AdrfaHL3RBJ0bihnyCK04XpVjsJFd0GGeJg-9YgQ6m94rjBhspvhy9AMmYnWKwJpm9s&_nc_zt=24&_nc_ht=scontent-dfw6-1.xx&_nc_gid=Bm1PjPzPGCOO4jaIM8P6pQ&_nc_ss=78289&oh=00_AQMmWJrvITFky5Iuzxlw8Fe7k2CO8YTOyZf5mjPnKaCMnQ&oe=6AC57BC5",
"bio": "I want to make the best videos in the world and help as many people as possible :)",
"verified": null,
"followers": 49000000,
"following": null,
"posts_count": null,
"likes_count": 49277196,
"url": "https://www.facebook.com/mrbeast",
"private": null,
"joined_at": "2015-09-03",
"ext": {
"public_email": null,
"public_phone": null,
"business_category": "Reel creator",
"website": "http://linktr.ee/beastgames",
"cover_url": "https://scontent-dfw6-1.xx.fbcdn.net/v/t39.30808-6/608992901_1437092241119042_2462126656363561737_n.jpg?stp=dst-jpg_tt6&cstp=mx2048x1152&ctp=s2048x1152&_nc_cat=1&ccb=1-7&_nc_sid=cc71e4&_nc_ohc=AWiXaxHSvn8Q7kNvwENmKaY&_nc_oc=AdpDeXic1c5V1CwoMZf-TpRwuahdXc1o1puZ0FYHXl3nklX0Z4dVwz-aYKydypbjS4M&_nc_zt=23&_nc_ht=scontent-dfw6-1.xx&_nc_gid=Bm1PjPzPGCOO4jaIM8P6pQ&_nc_ss=78289&oh=00_AQM_sXq1af2zC4nbhGCzx6PW2WwGSrrLv-D9tYJAPRUzfA&oe=6AC566C5",
"page_active": false,
"address": null,
"price_range": null,
"rating": "96% recommend (5,781 reviews)",
"rating_count": 5781,
"talking_about_count": 7912642,
"business_hours": null,
"links": [
"https://www.instagram.com/mrbeast",
"https://youtube.com/@mrbeast"
],
"ad_library_page_id": "1521410468170410",
"ad_library_status": "This Page is currently running ads.",
"followers_approximate": true
}
},
"posts": [
{
"post": {
"id": "1663763328451931",
"url": "https://www.facebook.com/reel/1413572895166486/",
"content": {
"text": "Build A Bridge With Only 5 Boards To Get Your Team Across",
"media_urls": "https://scontent-lga3-1.xx.fbcdn.net/v/t15.5256-10/827907112_1654069412822186_1432508272408472120_n.jpg?stp=dst-jpg_p843x403_tt6&_nc_cat=1&ccb=1-7&_nc_sid=d2b52d&_nc_ohc=N_k1cpG6AP4Q7kNvwFrJd4_&_nc_oc=Adrp6aAs1GfUY8_KTyRn4whl2_wYaZGOeIHpOvM-qPo7CjpgbCXcOiMEI4elfblq-Q0&_nc_zt=23&_nc_ht=scontent-lga3-1.xx&_nc_gid=xGbN3PPSFk-vtESLhpT1gQ&_nc_ss=78289&oh=00_AQM04G5xj7SqOso971agoTV5HKmN__AsKfoj1ucVpbqh7Q&oe=6AC57E1D",
"thumbnail_url": "https://scontent-lga3-1.xx.fbcdn.net/v/t15.5256-10/827907112_1654069412822186_1432508272408472120_n.jpg?stp=dst-jpg_s960x960_tt6&_nc_cat=1&ccb=1-7&_nc_sid=be8305&_nc_ohc=N_k1cpG6AP4Q7kNvwFrJd4_&_nc_oc=Adrp6aAs1GfUY8_KTyRn4whl2_wYaZGOeIHpOvM-qPo7CjpgbCXcOiMEI4elfblq-Q0&_nc_zt=23&_nc_ht=scontent-lga3-1.xx&_nc_gid=xGbN3PPSFk-vtESLhpT1gQ&_nc_ss=78289&oh=00_AQPaekYrFlXt6wmBy3WpHozPaRi1y0YY3F_bS5eygMc1Jg&oe=6AC57E1D",
"duration_seconds": null
},
"author": {
"username": "mrbeast",
"display_name": "MrBeast",
"avatar_url": "https://example.com/redacted",
"verified": null
},
"engagement": {
"views": null,
"likes": 184531,
"comments": 1416,
"shares": null,
"saves": null
},
"flags": {
"nsfw": null,
"spoiler": null,
"pinned": null,
"deleted": false
},
"published_at": "2026-10-01T16:00:51.000Z",
"ext": {
"author_id": "100044548384499",
"published_at_epoch": 1790870451,
"reaction_counts": [
{
"type": "like",
"count": 180301
},
{
"type": "love",
"count": 3366
}
],
"feedback_id": "ZmVlZGJhY2s6MTY2Mzc2MzMyODQ1MTkzMQ=="
}
},
"computed": {
"engagement_rate": null,
"language": null,
"content_category": "other",
"estimated_reach": null
}
},
{
"post": {
"id": "1662492328579031",
"url": "https://www.facebook.com/reel/1446671710687969/",
"content": {
"text": "Chicken Trap On Deserted Island 🐔",
"media_urls": "https://scontent-lga3-1.xx.fbcdn.net/v/t15.5256-10/455247863_876140724434878_519476312287318084_n.jpg?stp=dst-jpg_p843x403_tt6&_nc_cat=1&ccb=1-7&_nc_sid=4eef78&_nc_ohc=oKISaff8ntsQ7kNvwHJGQJL&_nc_oc=Adr1iAmZnz2ESYOw4vGSZ8yNWDQOZc-q1IZ5ff9cC0eUc4amM_K2rm1cklOU8ODLoi0&_nc_zt=23&_nc_ht=scontent-lga3-1.xx&_nc_gid=xGbN3PPSFk-vtESLhpT1gQ&_nc_ss=78289&oh=00_AQM-QHrh0iTDOXrkbuJP7TWwzd0hTF3Gd2ONhrLsyQodmg&oe=6AC5728B",
"thumbnail_url": "https://scontent-lga3-1.xx.fbcdn.net/v/t15.5256-10/455247863_876140724434878_519476312287318084_n.jpg?stp=dst-jpg_s960x960_tt6&_nc_cat=1&ccb=1-7&_nc_sid=83a10b&_nc_ohc=oKISaff8ntsQ7kNvwHJGQJL&_nc_oc=Adr1iAmZnz2ESYOw4vGSZ8yNWDQOZc-q1IZ5ff9cC0eUc4amM_K2rm1cklOU8ODLoi0&_nc_zt=23&_nc_ht=scontent-lga3-1.xx&_nc_gid=xGbN3PPSFk-vtESLhpT1gQ&_nc_ss=78289&oh=00_AQMBo0UGhkLCxbPLNqTNRmccu5o4EhwqvmSPC5G0rE8Wzw&oe=6AC5728B",
"duration_seconds": null
},
"author": {
"username": "mrbeast",
"display_name": "MrBeast",
"avatar_url": "https://example.com/redacted",
"verified": null
},
"engagement": {
"views": null,
"likes": 38304,
"comments": 1138,
"shares": null,
"saves": null
},
"flags": {
"nsfw": null,
"spoiler": null,
"pinned": null,
"deleted": false
},
"published_at": "2026-09-30T16:01:37.000Z",
"ext": {
"author_id": "100044548384499",
"published_at_epoch": 1790784097,
"reaction_counts": [
{
"type": "like",
"count": 35174
},
{
"type": "love",
"count": 2618
}
],
"feedback_id": "ZmVlZGJhY2s6MTY2MjQ5MjMyODU3OTAzMQ=="
}
},
"computed": {
"engagement_rate": null,
"language": null,
"content_category": "other",
"estimated_reach": null
}
}
],
"computed": {
"avg_engagement_rate": null,
"avg_engagement_rate_by_followers": 0.002407,
"posts_per_week": 18.67,
"cadence_window_days": 1.1,
"top_post": {
"url": "https://www.facebook.com/reel/1413572895166486/",
"engagement_total": 185947
},
"format_mix": {
"video": 3
}
},
"posts_cursor": "Cg8Ob3JnYW5pY19jdXJzb3IJAAACmkFRSFQ0WkRpcVVUTFpaUTBVVTdBZnBtZ1JMdVRtWkpGdTFGdWJoNHRrVlZHakJOUTdXeDY5LTVHWVR0UEpZN01ZZERDSUlJTlE3TVlDR1EwNzdIQ2FKNEdkLXNhd3B1VmNNZG5vSjZZekQ3R0ZmZGxwTC0wdDhVNHUxYVNPSVhCT3NMU1hhYUpaT2xDNy12OGJROWk1OFpSS3h6SUdVZEN3UG1DY3hLeG5VM1MxV01ldVg0N1c5ZXZneXVaMXI5RVhadXh3Y09OejNnM0I5NEh6ajhmVk90WHIzc1Y2WjNOeEFwSE9SbmFIOVhfRzRuSUwwU3NKWTcwX250TC1zcVlmdnhkRVVGaFk2dW9FbVc4T3ptZ3JwSUJQbVhqVlF0OWpWeW5DREtma2hnZ0M0YlcwM0Y3QW1qLVI3U2tnRTMtYmJXY0Q4aUIzWm03Qkc2RTNlSUdPcVRPUFBuVnA4ZVd6M2lYRDUtSmNMTEZReUJ5NVV2VVBhWHd1LVNYYWtuakh2b2pHX0stWThlWE9XSjJPWnVJMF9fbmFNaGg3VEREY0o1bUVQUG9fMTlUM2dDR2hLTjFiYWtxM2pBN09fM1hWTUc1RDl6akUwU1l1SHRYemNLZUhnV3B0cTZsUTJScHlMN19rbEdDdGtJTlJoNnk3Mk1VTTdTRkN0WHlEUTZjcHBMczRCYU9jRDZNdktoZE9VeU1rRDlqdWZIS3BOZ0UzZFBOWHFMeWFKN3lYZzI4dThXQkJxb3VFSTZTMTR0WUZRRE1GNWU4M01RT19QOWpscXVTMjJXbjFTTE5xMU8tSVpMbVgzekxwSWkzZV9laGp4dkxRaDFSZ2p1bE93cEpQR19FSHk0ZlhIMDNWMWp2RnlkS3dvTlZjdw8JYWRfY3Vyc29yDg8PZ2xvYmFsX3Bvc2l0aW9uAgAPBm9mZnNldAIADxBsYXN0X2FkX3Bvc2l0aW9uAv8B",
"legs": [
{
"endpoint": "/v1/facebook/profile",
"status": 200,
"credits_used": 1,
"latency_ms": 7413,
"error": null
},
{
"endpoint": "/v1/facebook/profile/posts",
"status": 200,
"credits_used": 1,
"latency_ms": 4245,
"error": null
}
],
"_warnings": [
"computed.engagement_rate: author ratio exceeded 1.0 (raw: 1.005657); returned null. A lifetime likes/followers ratio is not a real engagement rate",
"computed.avg_engagement_rate is null because no post in this window carries a view count; use computed.avg_engagement_rate_by_followers, which divides likes and comments by the follower count."
]
},
"credits_used": 5,
"request_id": "req_example000000",
"cached": false,
"credits_remaining": 9999,
"source": "captured",
"captured_at": "2026-10-02T12:41:37.822Z",
"redacted": true
}Live sample illustrating the unified response shape. Field values reflect the record you query.
How does the Facebook Profile Full 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 usWhat does the Facebook Analytics API return in one call?
How do I fetch a page's page, posts, and analytics together?
What analytics does the facebook analytics api compute?
How much does the facebook analytics api cost per call?
How many posts can I pull and can I page deeper?
What happens if a page has no recent posts?
Ask AI about SocialCrawl
Ready to scrape Facebook Profile Full data?
Get your API key and start pulling Facebook data in under 60 seconds.
