Skip to Content

Post

One post, reel or video with its counts and media.

GET
/v1/facebook/post

Authorization

apiKey
headerAuthorizationBearer <token>

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

Query Parameters

url?string

The post's link (https://www.facebook.com/nike/posts/pfbid…, a reel's, a video's).

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

One item, as every single-item endpoint answers: { "data": … }.

data*

A Facebook post: a story, a photo, a video or a reel.

Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.facebook.post({ url: "https://www.facebook.com/NASA/posts/pfbid02sZQLRpCntK2pPvttuB2JQn1d1HRLMgxGgM6qSeAKoxKg4stR91djJcHy4AKipjk1l" });
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."    }  }}