Facebook API

Facebook Post API

A single Facebook post by URL: text and engagement counts (likes, comments, shares, views).

POST/v1/run/facebook.post
Uptime
100.00%
30d · 1,388 calls
Requests
1,390
30d · weekly, last 12 wks
Response
2.7s
median · 30d

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "found": true,
  "data": {
    "id": "25118307061088489",
    "text": "Watch live as our crew returns home from the International Space Station.",
    "likes": 2095,
    "comments": 48,
    "shares": 133,
    "views": 133000
  }
}
Response interface
interface FacebookPostResponse {
  data: {
    comments: number;
    id: string;
    likes: number;
    shares: number;
    text: string;
    views: number;
  } | null;
  found: boolean;
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

Request, response, and price

Last verified 2026-09-16 · uptime and latency measured over 30d
POST /v1/run/facebook.post
curl -X POST https://api.getanyapi.com/v1/run/facebook.post \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.facebook.com/nasa/posts/1204545088344463"}'
FieldTypeExample value
Request body
urlstring"https://www.facebook.com/nasa/posts/1204545088344463"Full Facebook post URL.
Response
foundbooleantrue
dataobject
data.idstring"25118307061088489"
data.textstring"Watch live as our crew returns home from the International Space Station."
data.likesnumber2095
data.commentsnumber48
data.sharesnumber133
data.viewsnumber133000
Price
Price per requestUSD$0.0012
Price /1k reqUSD$1.20

FAQ

About the Facebook Post API

The AnyAPI Facebook Post API returns Facebook post data as normalized JSON from one POST call to /v1/run/facebook.post. A single Facebook post by URL: text and engagement counts (likes, comments, shares, views). AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of Facebook post calls through AnyAPI succeeded, with a median response time of 2.7 seconds across 1,388 measured calls.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

A single Facebook post by URL: text and engagement counts (likes, comments, shares, views). The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 100.0% of Facebook post calls through AnyAPI succeeded, with a median response time of 2.7 seconds across 1,388 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.