Facebook post details API
One public post or reel: text, counts, reactions, media and the `feedback_id` that makes `post/comments` faster.
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 no share count on a video page; profile/posts has it).
- Cost: 1 credit
- 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).
1curl -G "https://api.socialscrape.dev/v1/facebook/post" \2 -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3 --data-urlencode "url=https://www.facebook.com/reel/2166091230582141/"1import os2import requests34params = {5 "url": "https://www.facebook.com/reel/2166091230582141/",6}7res = requests.get(8 "https://api.socialscrape.dev/v1/facebook/post",9 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},10 params=params,11)12body = res.json()1314if body["ok"]:15 print(body["data"])16else:17 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/facebook/post");2url.search = new URLSearchParams({3 "url": "https://www.facebook.com/reel/2166091230582141/"4}).toString();5const res = await fetch(url, {6 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },7});8const body = await res.json();910if (body.ok) {11 console.log(body.data);12} else {13 console.error(body.error.code, body.error.message);14}1{2 "nodes": [3 {4 "name": "SocialScrape Facebook post details",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/facebook/post",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "url",19 "value": "https://www.facebook.com/reel/2166091230582141/"20 }21 ]22 },23 "sendHeaders": true,24 "headerParameters": {25 "parameters": [26 {27 "name": "x-api-key",28 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"29 }30 ]31 }32 }33 }34 ],35 "connections": {}36}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
1{2 "ok": true,3 "credits_charged": 1,4 "credits_remaining": 4999,5 "cached": false,6 "cached_at": null,7 "request_id": "req_d884274a570fe743056b4676",8 "data": {9 "object": "post",10 "platform": "facebook",11 "id": "2166091230582141",12 "url": "https://www.facebook.com/reel/2166091230582141/",13 "type": "reel",14 "author": {15 "id": "100044541544829",16 "handle": "nike",17 "name": "Nike",18 "url": "https://www.facebook.com/nike",19 "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...",20 "verified": null21 },22 "title": null,23 "text": "Leave your limits at the surface. #JustDoIt",24 "published_at": "2025-09-15T16:01:55Z",25 "duration_seconds": 30.025,26 "language": null,27 "hashtags": [28 "JustDoIt"29 ],30 "mentions": null,31 "stats": {32 "views": 3713362,33 "likes": 8498,34 "comments": 2724,35 "shares": null,36 "saves": null,37 "dislikes": null38 },39 "media": {40 "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...",41 "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...",42 "audio_url": null,43 "image_urls": null,44 "width": 1080,45 "height": 192046 },47 "song": null,48 "location": null,49 "is_pinned": null,50 "is_sponsored": null,51 "extra": {52 "feedback_id": "ZmVlZGJhY2s6MTM5MzQ2MTExNTQ4MTkyNw==",53 "live_status": "NEVER_LIVE",54 "play_count": 3713362,55 "reactions": {56 "angry": 36,57 "care": 141,58 "haha": 32,59 "like": 7026,60 "love": 1213,61 "sad": 4,62 "wow": 4663 },64 "source": "logged_out_public_view",65 "video": {66 "captions": [67 {68 "language": "Bahasa Indonesia",69 "locale": "id_ID",70 "method": "Terjemahan otomatis",71 "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..."72 },73 {74 "language": "Español",75 "locale": "es_LA",76 "method": "Traducido automáticamente",77 "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..."78 },79 {80 "language": "ไทย",81 "locale": "th_TH",82 "method": "แปลอัตโนมัติ",83 "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..."84 }85 ],86 "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...",87 "height": 1920,88 "media_urls_expire_at": "2026-10-31T08:33:48Z",89 "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...",90 "width": 108091 },92 "video_id": "2166091230582141",93 "video_view_count": 51760294 }95 },96 "cursor": null,97 "has_more": null98}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:
1{2 "ok": false,3 "error": {4 "code": "not_found",5 "message": "The platform says this profile, post or item does not exist.",6 "retryable": false7 },8 "credits_charged": 0,9 "request_id": "req_874ff9188fd743c2faf9a92e"10}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)