Facebook post details API
One public post or reel: text, counts, reactions, media and the feedback_id that makes post/comments faster.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
Call it per reel for exact like, comment and view counts (Facebook shows a logged-out visitor no share count on a video page; profile/posts has it).
You send url.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/facebook/post" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'url=https://www.facebook.com/reel/2166091230582141/'import os
import requests
params = {
"url": "https://www.facebook.com/reel/2166091230582141/",
}
res = requests.get(
"https://api.socialscrape.io/v1/facebook/post",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/facebook/post");
url.search = new URLSearchParams({
url: "https://www.facebook.com/reel/2166091230582141/",
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape Facebook post details",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/facebook/post",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "url",
"value": "https://www.facebook.com/reel/2166091230582141/"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | url | yes | Post, video or reel URL. |
get_transcript | boolean | Include the video's existing captions in `extra.transcript` (none if it has none; `post/transcript` also transcribes the audio with AI). |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_d884274a570fe743056b4676",
"data": {
"object": "post",
"platform": "facebook",
"id": "2166091230582141",
"url": "https://www.facebook.com/reel/2166091230582141/",
"type": "reel",
"author": {
"id": "100044541544829",
"handle": "nike",
"name": "Nike",
"url": "https://www.facebook.com/nike",
"avatar_url": "https://scontent.flas1-1.fna.fbcdn.net/v/t39.30808-1/284964043_10159903868513445_7696353984967674128_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx400x400&ctp=s40x40&_nc_...",
"verified": null
},
"title": null,
"text": "Leave your limits at the surface. #JustDoIt",
"published_at": "2025-09-15T16:01:55Z",
"duration_seconds": 30.025,
"language": null,
"hashtags": [
"JustDoIt"
],
"mentions": null,
"stats": {
"views": 3713362,
"likes": 8498,
"comments": 2724,
"shares": null,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://scontent.flas1-2.fna.fbcdn.net/v/t51.82787-10/549104239_18565912819020081_2330706867671026439_n.jpg?stp=dst-jpg_tt6&cstp=mx1080x1920&ctp=s960x960&_nc...",
"video_url": "https://video.flas1-1.fna.fbcdn.net/o1/v/t2/f2/m86/AQNrPdap6OftBP5OG6byX9Zra9AIeTlJgFFSnCnQtKX-YrtZwceyclf7S_s9vyochvQvd5rnHPfbDksk867PaxJsnJKbOjIMokT-UHM.mp...",
"audio_url": null,
"image_urls": null,
"width": 1080,
"height": 1920
},
"song": null,
"location": null,
"is_pinned": null,
"is_sponsored": null,
"extra": {
"feedback_id": "ZmVlZGJhY2s6MTM5MzQ2MTExNTQ4MTkyNw==",
"live_status": "NEVER_LIVE",
"play_count": 3713362,
"reactions": {
"angry": 36,
"care": 141,
"haha": 32,
"like": 7026,
"love": 1213,
"sad": 4,
"wow": 46
},
"source": "logged_out_public_view",
"video": {
"captions": [
{
"language": "Bahasa Indonesia",
"locale": "id_ID",
"method": "Terjemahan otomatis",
"url": "https://scontent.flas1-2.fna.fbcdn.net/v/t39.2093-6/548271297_2166112247246706_6460886379719362365_n.srt?_nc_cat=103&_nc_map=urlgen_bucketless&ccb=1-7&_nc_si..."
},
{
"language": "Español",
"locale": "es_LA",
"method": "Traducido automáticamente",
"url": "https://scontent.flas1-1.fna.fbcdn.net/v/t39.2093-6/548282549_2166112250580039_6123634284162169231_n.srt?_nc_cat=102&_nc_map=urlgen_bucketless&ccb=1-7&_nc_si..."
},
{
"language": "ไทย",
"locale": "th_TH",
"method": "แปลอัตโนมัติ",
"url": "https://scontent.flas1-1.fna.fbcdn.net/v/t39.2093-6/547573475_2166112243913373_4698068582494192814_n.srt?_nc_cat=101&_nc_map=urlgen_bucketless&ccb=1-7&_nc_si..."
}
],
"hd_url": "https://video.flas1-1.fna.fbcdn.net/o1/v/t2/f2/m86/AQNrPdap6OftBP5OG6byX9Zra9AIeTlJgFFSnCnQtKX-YrtZwceyclf7S_s9vyochvQvd5rnHPfbDksk867PaxJsnJKbOjIMokT-UHM.mp...",
"height": 1920,
"media_urls_expire_at": "2026-10-31T08:33:48Z",
"sd_url": "https://video.flas1-1.fna.fbcdn.net/o1/v/t2/f2/m86/AQN_d55OewP32rlaSZcqUhJpzoq0UPil1hva-6NJse7-pSsLfeyZ1i-XAv1T7deHVk1ANQ86oODPzQ4n-_IpCACCu4wxI5xY0mDCcxk.mp...",
"width": 1080
}
}
},
"cursor": null,
"has_more": null
}Fields
One Post in data.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "post" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
type | "video" or "short" or "reel" or "image" or "carousel" or "story" or "live" or "clip" or "text" or "link" or "tweet" or "pin" or "community_post" or "episode" or "unknown" | ||
author | Author or null | ||
title | string or null | ||
text | string or null | ||
published_at | string (ISO 8601 date-time) or null | ||
duration_seconds | number or null | ||
language | string or null | ||
hashtags | string[] or null | ||
mentions | string[] or null | ||
stats | Stats |
Show the other 6 fields
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
Is there an SDK call for it?
The preview Python client has client.facebook.post(...) and the TypeScript client client.facebook.post(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.