Skip to content

Facebook Post API

One public Facebook post, video or reel by URL, with its text and engagement counts. Calls cost 1 credit each. A cache hit is free, and a failed or empty response is never charged.

Try it

Prefilled with the request that produced the example below. No key yet? Get a free key.

Request

GET/v1/facebook/post
ParameterTypeRequiredDescription
urlstringyesFull post, video, or reel URL

Also accepts cache_max_age (a hit costs 0 credits) and include_raw (returns the untouched upstream payload under raw).

curl
curl "$API/v1/facebook/post?url=https%3A%2F%2Fwww.facebook.com%2Freel%2F2166091230582141%2F&cache_max_age=7d" \
  -H "x-api-key: $KEY"
JavaScript
const query = new URLSearchParams({
  url: 'https://www.facebook.com/reel/2166091230582141/',
  cache_max_age: '7d',
});

const response = await fetch(`${API}/v1/facebook/post?${query}`, {
  headers: { 'x-api-key': KEY },
});

const body = await response.json();
if (!body.success) throw new Error(body.error.code);

// 1 credit, 0 on a cache hit
console.log(body.data, body.meta.creditsCharged);
Python
import os, httpx

r = httpx.get(
    f"{os.environ['API']}/v1/facebook/post",
    params={
        "url": "https://www.facebook.com/reel/2166091230582141/",
        "cache_max_age": "7d",
    },
    headers={"x-api-key": os.environ["KEY"]},
    timeout=30,
)

body = r.json()
if not body["success"]:
    raise RuntimeError(body["error"]["code"])

print(body["data"], body["meta"]["creditsCharged"])

Example response

Captured on , with raw removed and lists cut to two items. A live call returns current data.

response
{
  "success": true,
  "data": {
    "platform": "facebook",
    "id": "2166091230582141",
    "type": "reel",
    "url": "https://www.facebook.com/reel/2166091230582141/",
    "title": null,
    "text": "Leave your limits at the surface. #JustDoIt",
    "authorId": "100044541544829",
    "authorHandle": "nike",
    "authorName": "Nike",
    "thumbnailUrl": "https://scontent-nrt1-2.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=rVdYD4wcxDkQ7kNvwHRrzj_&_nc_oc=AdpKjAG2Ol6Rh40L1z1m8JL5H9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saW5lXzNfdjERAHUCZeadAQA&_nc_gid=adwkNI4zZcZvjkOWNf9VRQ&_nc_ss=70289&_nc_zt=28&oh=00_AQOHwzwWvqGcUOnXvO3vmOy00HfmSIftB7Kqpue7gBKXuw&oe=6AD9E471&bitrate=264209&tag=dash_baseline_3_v1"
    ],
    "durationSeconds": 30,
    "viewCount": 3655801,
    "likeCount": 8380,
    "commentCount": 2689,
    "shareCount": 1100,
    "hashtags": [
      "JustDoIt"
    ],
    "mentions": [],
    "isSponsored": false,
    "publishedAt": "2025-09-15T16:01:55.000Z",
    "fetchedAt": "2026-10-21T01:58:51.431Z"
  },
  "meta": {
    "platform": "facebook",
    "endpoint": "facebook.post",
    "creditsCharged": 1,
    "cached": false,
    "cacheAgeSeconds": null,
    "durationMs": 4827,
    "requestId": "req_2zvtekejyjb0pfkg0p30"
  }
}

Returns

Returns one Post.

Cost and behaviour

Credits1 per live request, 0 on a cache hit
Cacheableyes: cache_max_age accepts a cached copy
Batchableyes: usable as a target in POST /v1/jobs/batch
Subscribableyes: as often as every 3600 seconds, firing a webhook only on a change

Other Facebook endpoints