- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
Call it per reel for exact like, comment and view counts (Facebook shows no share count on a video page; profile/posts has it).
You send url.
Part of the Facebook Scraper API: 23 Facebook endpoints on one key.
Request
Send your key in the x-api-key header.
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 timeout=60,12)13body = res.json()1415if body["ok"]:16 print(body["data"])17else:18 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}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 examples, not your data.
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_...",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...",41 "video_url": "https://video.flas1-1.fna.fbcdn.net/o1/v/t2/f2/m86/AQNrPdap6OftBP5OG6byX9Zra9AIeTlJgFFSnCnQtKX-YrtZwceyclf7S_s9vyochvQvd5rnHPfbDksk867PaxJsnJKbOjIMokT-UHM.mp...",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_si..."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_si..."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_si..."84 }85 ],86 "hd_url": "https://video.flas1-1.fna.fbcdn.net/o1/v/t2/f2/m86/AQNrPdap6OftBP5OG6byX9Zra9AIeTlJgFFSnCnQtKX-YrtZwceyclf7S_s9vyochvQvd5rnHPfbDksk867PaxJsnJKbOjIMokT-UHM.mp...",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.mp...",90 "width": 108091 }92 }93 },94 "cursor": null,95 "has_more": null96}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 Python client has client.facebook.post(...) and the TypeScript client client.facebook.post(). Both return the same envelope as the HTTP API. Install them from PyPI (socialscrape-sdk) or npm (socialscrape); plain HTTP works in any language.
Can an AI agent call it?
Yes. The MCP server, which you run on your own machine, reaches every built endpoint, with the same prices.