Facebook profile reels API
Up to 10 reels a page: id, URL, view count (Facebook's rounded public badge, so 27K becomes 27000), description, time, video URL, duration and music.
GET /v1/facebook/profile/reels
GET /v1/facebook/profile/reels
Up to 10 reels a page: id, URL, view count (Facebook's rounded public badge, so 27K becomes 27000), description, time, video URL, duration and music. For exact counts, call post per reel.
- 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 | Profile or page URL. Accepted hosts: facebook.com, fb.com, fb.watch. |
Every request also accepts:
cursor: the cursor from the previous page (Pagination).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/profile/reels" \2 -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3 --data-urlencode "url=https://www.facebook.com/nike"1import os2import requests34params = {5 "url": "https://www.facebook.com/nike",6}7res = requests.get(8 "https://api.socialscrape.dev/v1/facebook/profile/reels",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/profile/reels");2url.search = new URLSearchParams({3 "url": "https://www.facebook.com/nike"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 profile reels",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/profile/reels",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "url",19 "value": "https://www.facebook.com/nike"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_c0c9d6a225ef30bb273b7353",8 "data": {9 "object": "list",10 "items": [11 {12 "object": "post",13 "platform": "facebook",14 "id": "2166091230582141",15 "url": "https://www.facebook.com/reel/2166091230582141",16 "type": "reel",17 "author": {18 "id": "100044541544829",19 "handle": "nike",20 "name": "Nike",21 "url": "https://www.facebook.com/nike",22 "avatar_url": "https://scontent-phl2-1.xx.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=QiTzxIgVfoIQ7kNvwGIpB6V&_nc_oc=AdqzhXE72AEstMesC...",23 "verified": true24 },25 "title": null,26 "text": null,27 "published_at": null,28 "duration_seconds": 30.025,29 "language": null,30 "hashtags": null,31 "mentions": null,32 "stats": {33 "views": 3700000,34 "likes": null,35 "comments": null,36 "shares": null,37 "saves": null,38 "dislikes": null39 },40 "media": {41 "thumbnail_url": "https://scontent-phl2-1.xx.fbcdn.net/v/t51.82787-10/549104239_18565912819020081_2330706867671026439_n.jpg?stp=dst-jpg_tt6&cstp=mx1080x1920&ctp=s960x960&_nc_cat=101&ccb=1-7&_nc_sid=50ce42&_nc_ohc=HVhYyHjJvMkQ7kNvwH2fmZD&_nc_oc=AdqzJbc4dWyovq...",42 "video_url": "https://video-phl2-1.xx.fbcdn.net/o1/v/t2/f2/m86/AQNrPdap6OftBP5OG6byX9Zra9AIeTlJgFFSnCnQtKX-YrtZwceyclf7S_s9vyochvQvd5rnHPfbDksk867PaxJsnJKbOjIMokT-UHM.mp4?_nc_cat=103&_nc_sid=5e9851&_nc_ht=video-phl2-1.xx.fbcdn.net&_nc_ohc=hbem2Qqlov8Q7kN...",43 "audio_url": null,44 "image_urls": null,45 "width": 1080,46 "height": 192047 },48 "song": {49 "id": "795820239655851",50 "title": "Nike · Original audio",51 "artist": null,52 "url": null53 },54 "location": null,55 "is_pinned": null,56 "is_sponsored": null,57 "extra": {58 "media_urls_expire_at": "2026-10-31T12:33:48Z",59 "sound_type": "CUSTOM_AUDIO",60 "source": "logged_out_public_view",61 "views_display": "3.7M",62 "views_note": "rounded as Facebook shows it; call post for exact counts"63 }64 },65 {66 "object": "post",67 "platform": "facebook",68 "id": "752115997659579",69 "url": "https://www.facebook.com/reel/752115997659579",70 "type": "reel",71 "author": {72 "id": "100044541544829",73 "handle": "nike",74 "name": "Nike",75 "url": "https://www.facebook.com/nike",76 "avatar_url": "https://scontent-phl2-1.xx.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=QiTzxIgVfoIQ7kNvwGIpB6V&_nc_oc=AdqzhXE72AEstMesC...",77 "verified": true78 },79 "title": null,80 "text": null,81 "published_at": null,82 "duration_seconds": 30.03,83 "language": null,84 "hashtags": null,85 "mentions": null,86 "stats": {87 "views": 2700000,88 "likes": null,89 "comments": null,90 "shares": null,91 "saves": null,92 "dislikes": null93 },94 "media": {95 "thumbnail_url": "https://scontent-phl2-1.xx.fbcdn.net/v/t51.82787-10/548838919_18565615666020081_158902364425729178_n.jpg?stp=dst-jpg_tt6&cstp=mx1080x1920&ctp=s960x960&_nc_cat=104&ccb=1-7&_nc_sid=50ce42&_nc_ohc=GyyfrFhPcT8Q7kNvwF4SH25&_nc_oc=AdquGBuKDNkyM0f...",96 "video_url": "https://video-phl2-1.xx.fbcdn.net/o1/v/t2/f2/m86/AQMbeHcXo9hAKjLtybBL5F-u9ckGBATrpoefzASDmb2UPx3DEMR89UOccphdiplLAzwbvDVuFotIM9f2rO29fuO5_qwpsjHElCdfp80.mp4?_nc_cat=103&_nc_sid=5e9851&_nc_ht=video-phl2-1.xx.fbcdn.net&_nc_ohc=Y7b_TCj36D0Q7kN...",97 "audio_url": null,98 "image_urls": null,99 "width": 1080,100 "height": 1920101 },102 "song": {103 "id": "757313750459243",104 "title": "Nike · Original audio",105 "artist": null,106 "url": null107 },108 "location": null,109 "is_pinned": null,110 "is_sponsored": null,111 "extra": {112 "media_urls_expire_at": "2026-10-31T09:40:48Z",113 "sound_type": "CUSTOM_AUDIO",114 "source": "logged_out_public_view",115 "views_display": "2.7M",116 "views_note": "rounded as Facebook shows it; call post for exact counts"117 }118 }119 ],120 "cursor": null,121 "has_more": false,122 "parent": null123 },124 "cursor": null,125 "has_more": false126}Response#
A list of Post objects in data.items, with data.cursor and data.has_more.
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.
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)