Facebook Post API
A single Facebook post by URL: text and engagement counts (likes, comments, shares, views).
Provider network
Providers ranked by traffic
Try it
Make your first request
{
"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
}
}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 30dcurl -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"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| url | string | "https://www.facebook.com/nasa/posts/1204545088344463"Full Facebook post URL. |
| Response | ||
| found | boolean | true |
| data | object | |
| data.id | string | "25118307061088489" |
| data.text | string | "Watch live as our crew returns home from the International Space Station." |
| data.likes | number | 2095 |
| data.comments | number | 48 |
| data.shares | number | 133 |
| data.views | number | 133000 |
| Price | ||
| Price per request | USD | $0.0012 |
| Price /1k req | USD | $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.