Facebook post details
Beta GET /v1/facebook/post
GET /v1/facebook/post
One public post or reel: text, counts, reactions, media and the feedback_id that makes post/comments faster. 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).
- Cost: 1 credit
- Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
url | URL | yes | Post, video or reel URL. Accepted hosts: facebook.com, fb.com, fb.watch. |
get_transcript | boolean | no | Include the video's existing captions in extra.transcript (none if it has none; post/transcript also transcribes the audio with AI). Default false. |
Every request also accepts:
trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
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,
)
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": {}
}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
{
"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_cat=1&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=QiTzxIgVfoIQ7kNvwFn8H5f&_nc_oc=AdphdwoBXDhFtOJ...",
"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_cat=101&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=50ce42&_nc_ohc=HVhYyHjJvMkQ7kNvw...",
"video_url": "https://video.flas1-1.fna.fbcdn.net/o1/v/t2/f2/m86/AQNrPdap6OftBP5OG6byX9Zra9AIeTlJgFFSnCnQtKX-YrtZwceyclf7S_s9vyochvQvd5rnHPfbDksk867PaxJsnJKbOjIMokT-UHM.mp4?_nc_cat=103&_nc_oc=AdrJGo8DN78VerjvYx1YdKgR1-XycLu6-A1oeflr2PfjB8aSBFrfb3JWLjt7uF...",
"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_sid=c211c2&_nc_ohc=p28AuIUHb8cQ7kNvwGFJDJF&_nc_oc=Adp-siIJq_jguxFr5z5eOZ5JEaqGLCQUAsR..."
},
{
"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_sid=c211c2&_nc_ohc=TZoy_XvkWcwQ7kNvwEhS0TK&_nc_oc=Adrw6eh4RElh7ytnbayOeR6gbSveOtEOZpb..."
},
{
"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_sid=c211c2&_nc_ohc=fgZ7EzZ9jyQQ7kNvwF1_Cwu&_nc_oc=Adr7cOg9ifYRzRWDtefwhQ4wdlWd5ARuUN4..."
}
],
"hd_url": "https://video.flas1-1.fna.fbcdn.net/o1/v/t2/f2/m86/AQNrPdap6OftBP5OG6byX9Zra9AIeTlJgFFSnCnQtKX-YrtZwceyclf7S_s9vyochvQvd5rnHPfbDksk867PaxJsnJKbOjIMokT-UHM.mp4?_nc_cat=103&_nc_oc=AdrJGo8DN78VerjvYx1YdKgR1-XycLu6-A1oeflr2PfjB8aSBFrfb3JWLjt7uF...",
"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.mp4?_nc_cat=108&_nc_oc=Ado6oELQXqye6u4gYKnmuPdTHpcsBVf9XE0Bu_8wbjAh1BPdTw0KOanOZB3zHh...",
"width": 1080
},
"video_id": "2166091230582141",
"video_view_count": 517602
}
},
"cursor": null,
"has_more": null
}Response#
A Post object in data.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
unsupported_url | 400 | no | The URL is not one this endpoint accepts (wrong platform or form). |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Example error:
{
"ok": false,
"error": {
"code": "not_found",
"message": "The platform says this profile, post or item does not exist.",
"retryable": false
},
"credits_charged": 0,
"request_id": "req_874ff9188fd743c2faf9a92e"
}Related endpoints#
- Facebook Ad Library search (
GET /v1/facebook/ad-library/search) - Facebook Ad Library search (POST body) (
POST /v1/facebook/ad-library/search) - Facebook Ad Library ads by page (
GET /v1/facebook/ad-library/company/ads) - Facebook Ad Library ads by page (POST body) (
POST /v1/facebook/ad-library/company/ads) - Facebook Ad Library ad details (
GET /v1/facebook/ad-library/ad) - Facebook Ad Library ad transcript (
GET /v1/facebook/ad-library/ad/transcript) - Facebook Ad Library advertiser search (
GET /v1/facebook/ad-library/search/companies) - Facebook profile or page (
GET /v1/facebook/profile)