1. Platforms
  2. Facebook Scraper API
  3. Facebook profile posts API

Facebook profile posts API

Public posts of a page, 3 a page: text, reactions, comments, time, video URLs and top comments.

GET api.socialscrape.dev/v1/facebook/profile/posts

Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits

You send one of url or id.

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/profile/posts" \2  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3  --data-urlencode 'url=https://www.facebook.com/NASA'

Parameters

NameTypeRequiredDescription
urlurlone ofProfile or page URL.
idstringone ofThe profile or page id, as `profile` returns it in `id`. Also accepted as pageId, page_id.
cursorstringOpaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page.

Every request also accepts trim, raw and max_age_days.

Response

Sample from a recorded response, shortened. Values are examples, not your data.

200 OKSample response
1{2  "ok": true,3  "credits_charged": 1,4  "credits_remaining": 4999,5  "cached": false,6  "cached_at": null,7  "request_id": "req_f162836fecf7a7be2fbc307f",8  "data": {9    "object": "list",10    "items": [11      {12        "object": "post",13        "platform": "facebook",14        "id": "1671214107707292",15        "url": "https://www.facebook.com/NASA/posts/pfbid02i7hXRsxkXQbb9mvtxBb5jCBdb4pk8xitpnP3cCZF6C56PXk5SNU8sfuwEobZzV5zl",16        "type": "image",17        "author": {18          "id": "100044561550831",19          "handle": "NASA",20          "name": "NASA - National Aeronautics and Space Administration",21          "url": "https://www.facebook.com/NASA",22          "avatar_url": null,23          "verified": null24        },25        "title": null,26        "text": "Welcome to the Artemis Accords, Vietnam 🇻🇳\n\nVietnam has become the 78th nation to sign the Artemis Accords, and in doing so, support the safe and sustainab...",27        "published_at": "2026-10-29T21:45:00Z",28        "duration_seconds": null,29        "language": null,30        "hashtags": null,31        "mentions": null,32        "stats": {33          "views": null,34          "likes": 1735,35          "comments": 72,36          "shares": 138,37          "saves": null,38          "dislikes": null39        },40        "media": {41          "thumbnail_url": "https://scontent-lga3-1.xx.fbcdn.net/v/t39.99422-6/868627006_28850651794628695_4626767610305041650_n.png?stp=dst-jpg_tt6&cstp=mx2048x1162&ctp=p180x540&_nc_ca...",42          "video_url": null,43          "audio_url": null,44          "image_urls": [45            "https://scontent-lga3-1.xx.fbcdn.net/v/t39.99422-6/868627006_28850651794628695_4626767610305041650_n.png?stp=dst-jpg_tt6&cstp=mx2048x1162&ctp=p180x540&_nc_ca..."46          ],47          "width": null,48          "height": null49        },50        "song": null,51        "location": null,52        "is_pinned": null,53        "is_sponsored": null,54        "extra": {55          "accessibility_caption": "This graphic shows the list of countries that have signed the Artemis Accords. Flags from 78 different nations are listed over an image of the shadowed lunar...",56          "feedback_id": "ZmVlZGJhY2s6MTY3MTIxNDEwNzcwNzI5Mg==",57          "permalink": "https://www.facebook.com/NASA/posts/pfbid02i7hXRsxkXQbb9mvtxBb5jCBdb4pk8xitpnP3cCZF6C56PXk5SNU8sfuwEobZzV5zl",58          "reactions": {59            "angry": 1,60            "care": 28,61            "haha": 7,62            "like": 1137,63            "love": 555,64            "wow": 765          },66          "source": "logged_out_public_view",67          "top_comments": [68            {69              "author": {70                "id": "1000000001",71                "handle": "sample_user",72                "name": "Sample User",73                "url": null,74                "avatar_url": null,75                "verified": false76              },77              "extra": {78                "depth": 0,79                "feedback_id": "ZmVlZGJhY2s6cGZiaWQwMjFxVmk3UGFVY2tHUWVpaURFVVBHdjViYnA4ZTNzMWpVYmM1WFUzSmI5NmVqeWszYWtpRE1MOFVFVVNock1YdU5CU1o4Q21jMnk5cWtjdGI4Z2FUNW45TDdUWUZ5a0syNkdIbA==",80                "graphql_id": "Y29tbWVudDoxNjcxMjE0MTA3NzA3MjkyXzE0MzYwNzAxMzc5MDMxMTE="81              },82              "id": "1436070137903111",83              "object": "comment",84              "platform": "facebook",85              "post_id": "1671214107707292",86              "published_at": "2026-10-29T22:48:11Z",87              "stats": {88                "likes": 6,89                "replies": 490              },91              "text": "VN tham gia chương trình này để vượn vin phân lô mặt trăng à :))",92              "url": "https://www.facebook.com/NASA/posts/pfbid02i7hXRsxkXQbb9mvtxBb5jCBdb4pk8xitpnP3cCZF6C56PXk5SNU8sfuwEobZzV5zl?comment_id=1436070137903111"93            }94          ]95        }96      },97      {98        "object": "post",99        "platform": "facebook",100        "id": "1671157847712918",101        "url": "https://www.facebook.com/NASA/posts/pfbid02MwBh6T5CRKK5itNeD6znFoeU1GiT8z7Maew9FQbK92y6VgsrfrrejWmdx59QSyeFl",102        "type": "image",103        "author": {104          "id": "100044561550831",105          "handle": "NASA",106          "name": "NASA - National Aeronautics and Space Administration",107          "url": "https://www.facebook.com/NASA",108          "avatar_url": null,109          "verified": null110        },111        "title": null,112        "text": "Your name could fly on Saturn’s largest moon.\n\nNASA’s Dragonfly mission will launch in 2028 to explore the dunes, lakes, and rivers of Saturn’s moon, Titan, ...",113        "published_at": "2026-10-29T20:15:01Z",114        "duration_seconds": null,115        "language": null,116        "hashtags": null,117        "mentions": null,118        "stats": {119          "views": null,120          "likes": 357,121          "comments": 24,122          "shares": 76,123          "saves": null,124          "dislikes": null125        },126        "media": {127          "thumbnail_url": "https://scontent-lga3-1.xx.fbcdn.net/v/t39.99422-6/866215691_1164547923190376_1280503157796965888_n.png?stp=dst-jpg_tt6&cstp=mx2048x1152&ctp=s960x960&_nc_cat...",128          "video_url": null,129          "audio_url": null,130          "image_urls": [131            "https://scontent-lga3-1.xx.fbcdn.net/v/t39.99422-6/866215691_1164547923190376_1280503157796965888_n.png?stp=dst-jpg_tt6&cstp=mx2048x1152&ctp=s960x960&_nc_cat..."132          ],133          "width": null,134          "height": null135        },136        "song": null,137        "location": null,138        "is_pinned": null,139        "is_sponsored": null,140        "extra": {141          "accessibility_caption": "A poster-style graphic of the the Dragonfly rotorcraft and two example boarding passes with a reddish-tan background. Text on the graphic reads \"Journey to T...",142          "feedback_id": "ZmVlZGJhY2s6MTY3MTE1Nzg0NzcxMjkxOA==",143          "permalink": "https://www.facebook.com/NASA/posts/pfbid02MwBh6T5CRKK5itNeD6znFoeU1GiT8z7Maew9FQbK92y6VgsrfrrejWmdx59QSyeFl",144          "reactions": {145            "care": 10,146            "haha": 1,147            "like": 252,148            "love": 92,149            "wow": 2150          },151          "source": "logged_out_public_view",152          "top_comments": [153            {154              "author": {155                "id": "1000000001",156                "handle": "sample_user",157                "name": "Sample User",158                "url": null,159                "avatar_url": null,160                "verified": false161              },162              "extra": {163                "depth": 0,164                "feedback_id": "ZmVlZGJhY2s6MTY3MTE1Nzg0NzcxMjkxOF8xNzg5MjYxNDMyMzA2NjE5",165                "graphql_id": "Y29tbWVudDoxNjcxMTU3ODQ3NzEyOTE4XzE3ODkyNjE0MzIzMDY2MTk="166              },167              "id": "1789261432306619",168              "object": "comment",169              "platform": "facebook",170              "post_id": "1671157847712918",171              "published_at": "2026-10-29T21:11:44Z",172              "stats": {173                "likes": 4174              },175              "text": "Eren yeager?",176              "url": "https://www.facebook.com/NASA/posts/pfbid02MwBh6T5CRKK5itNeD6znFoeU1GiT8z7Maew9FQbK92y6VgsrfrrejWmdx59QSyeFl?comment_id=1789261432306619"177            }178          ]179        }180      }181    ],182    "cursor": "eyJrIjoicG9zdHMiLCJpZCI6IjEwMDA0NDU2MTU1MDgzMSIsImFmdGVyIjoiQ2c4T2IzSm5ZVzVwWTE5amRYSnpiM0lKQUFBQ1JFRlJTRlIyU1RJMGRXeFlMVTlRVm1aTVNGUk9TblJYUjFaT2VsOTZlRTFhW...",183    "has_more": true,184    "parent": null185  },186  "cursor": "eyJrIjoicG9zdHMiLCJpZCI6IjEwMDA0NDU2MTU1MDgzMSIsImFmdGVyIjoiQ2c4T2IzSm5ZVzVwWTE5amRYSnpiM0lKQUFBQ1JFRlJTRlIyU1RJMGRXeFlMVTlRVm1aTVNGUk9TblJYUjFaT2VsOTZlRTFhW...",187  "has_more": true188}

Fields

A page of results. Each entry in items is a Post. cursor and has_more page through the rest.

A field the platform does not give is null, never made up. Extra platform details are in extra.

FieldTypeAlwaysNotes
object"post"
platformPlatformyes
idstringyes
urlstring 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"
authorAuthor or null
titlestring or null
textstring or null
published_atstring (ISO 8601 date-time) or null
duration_secondsnumber or null
languagestring or null
hashtagsstring[] or null
mentionsstring[] or null
statsStats
Show the other 6 fields
FieldTypeAlwaysNotes
mediaMedia
songSongRef or null
locationPlace or null
is_pinnedboolean or null
is_sponsoredboolean or null
extraobject or null

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.

How do I get more than one page?

Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.

Is there an SDK call for it?

The Python client has client.facebook.profile_posts(...) and the TypeScript client client.facebook.profilePosts(). 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.