Skip to Content

Profile Posts

A Page's or person's posts, newest first, 3 a page.

GET
/v1/facebook/profile/posts

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

handle?string

The page's or person's name in its link, or its numeric id.

url?string

Its link, instead of handle.

cursor?string

nextCursor of the previous page.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.

data*array<>
pagination*
Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.facebook.profilePosts({ handle: "NASA" });
Example Response
{  "data": [    {      "id": "pfbid02sZQLRpCntK2pPvttuB2JQn1d1HRLMgxGgM6qSeAKoxKg4stR91djJcHy4AKipjk1l",      "url": "https://www.facebook.com/NASA/posts/pfbid02sZQLRpCntK2pPvttuB2JQn1d1HRLMgxGgM6qSeAKoxKg4stR91djJcHy4AKipjk1l",      "text": "A home away from home 🌕\n \nWe're building a Moon Base, where astronauts will live, work, and explore the lunar surface.\n \nLearn how humanity's first lunar outpost will be built and how it'll prepare us for future missions: https://go.nasa.gov/4jamgox",      "createdAt": "2026-11-24T16:50:00.000Z",      "author": {        "id": "100044561550831",        "username": "NASA",        "displayName": "NASA - National Aeronautics and Space Administration",        "avatarUrl": null,        "verified": false,        "url": "https://www.facebook.com/NASA"      },      "stats": {        "views": null,        "likes": 1763,        "comments": 89,        "shares": 154,        "saves": null,        "engagementRate": null      },      "media": [],      "hashtags": [],      "mentions": [],      "ext": {        "kind": "post",        "postId": "1697460178416018",        "reactions": [          {            "kind": "Like",            "count": 1317          },          {            "kind": "Love",            "count": 407          },          {            "kind": "Care",            "count": 20          }        ],        "plays": null,        "captions": [],        "altText": "The heavily cratered Moon as seen by the Artemis II crew as they traveled around the Moon. The boundary between lunar day and night, or the terminator, is visible at the top of the image. This area is the South Pole-Aitken basin, the largest and oldest basin on the Moon."      }    }  ],  "pagination": {    "nextCursor": "Cg8Ob3JnYW5pY19jdXJzb3IJAAACREFRSFRjeTZQbHJyUllzRVJuZ3ZnYVFDVUFTUjFZU3hhZ1FnLXhPRkNjZG93TUFSOEhVeDVtYVo1SGZBbXBTTEpBMzVIMENZeWtOVHh5M2dvU3ZUdzZET0Rpd2F2b29LTzQtVnZ1WVNsclRlUVZPZThyZVFuSjNKbmtJUkpsMGtMWUlLOTdNYXE3RFRKVEJkdFVpODdZUjV5dWtFaWZwdzNhYV9IbXN2ai00RUV6SnNPWGIzSmVXRmZxWVd5Nm82dmRGcFg5eVNkbGRnUF9Ec1BSYkN4Q05OS3dKU1hvSHlVX3RhYmpxQ1ptUzlXNF9lemRxT2ViM1Y2MV81NG83b2E1LWNWM01zNFJsT3ZvdUVPR3lMYzcw…",    "hasMore": true  }}