FacebookPOSTS
Get Facebook post details
Retrieve a single post, video, or reel with metrics, media, and author. Post fields match those in /v1/facebook/user/posts; details additionally nests a user object for the author. The username parameter is optional when id is a story_id from the posts endpoint, a post URL, or a video URL — the API resolves the owner from those. It is required when id is a reel URL, a watch URL, or a bare numeric post, video, or reel ID; omitting it then returns 400 with { error: "username is required for this id" }.
/v1/facebook/posts/detailsSingle lookuphttps://social-api.airaa.xyzcurl "https://social-api.airaa.xyz/v1/facebook/posts/details?id=https%3A%2F%2Fwww.facebook.com%2Fstory.php%3Fstory_fbid%3Dpfbid02q43HZPPzdRUFnCmFdtEHdHpvpXTUkMaMUNbAeieUQf7WnUqzizMPwjeus2AuYFGgl%26id%3D100044561550831&username=nasa" \ -H "X-API-KEY: $AIRAA_KEY"
{
"post": {
"id": "1690599575768745",
"story_id": "UzpfSTEwMDA0NDU2MTU1MDgzMToxNjkwNTk5NTc1NzY4NzQ1OjE2OTA1OTk1NzU3Njg3NDU=",
"post_url": "https://www.facebook.com/story.php?story_fbid=pfbid02q43HZPPzdRUFnCmFdtEHdHpvpXTUkMaMUNbAeieUQf7WnUqzizMPwjeus2AuYFGgl&id=100044561550831",
"type": "photo",
"caption": "Beauty in chaos 🎨\n\nThis photo from our Chandra X-ray Observatory is the clearest view we have of the remains of an exploded star located in the center of the Milky Way. Scientists can use this…",
"published_at": "2026-11-17T22:03:34.000Z",
"user": {
"id": "100044561550831",
"username": "NASA",
"display_name": "NASA - National Aeronautics and Space Administration",
"profile_url": "https://www.facebook.com/NASA",
"profile_picture_url": "https://scontent.falg5-2.fna.fbcdn.net/v/t39.30808-1/243095782_416661036495945_3843362260429099279_n.png"
},
"metrics": {
"reaction_count": 483,
"like_count": 352,
"comment_count": 11,
"share_count": 55
},
"media": [
{
"type": "photo",
"id": "1690599555768747",
"url": "https://scontent.falg5-2.fna.fbcdn.net/v/t39.30808-6/916765074_1690599559102080_8008653452099091270_n.jpg",
"width": 1080,
"height": 1080
}
]
}
}Parameters
Query stringidstringrequiredA post, video, or reel URL, a story_id, or a numeric post/video/reel ID
Example https://www.facebook.com/story.php?story_fbid=pfbid02q43HZPPzdRUFnCmFdtEHdHpvpXTUkMaMUNbAeieUQf7WnUqzizMPwjeus2AuYFGgl&id=100044561550831
usernamestringoptionalThe post owner's username, numeric ID, or profile URL. Required for reel URLs, watch URLs, and bare numeric IDs
Example nasa
Response
200 · application/jsonAbsent fields are omitted, never null. Response conventions
| Field | Type | Description |
|---|---|---|
| post | object | The post, video or reel |
| post.id | string | Canonical post ID |
| post.story_id | string | Story ID; works as id on /v1/facebook/posts/details without username |
| post.post_url | string · url | Absolute URL of the post on facebook.com |
| post.type | string | Post kind, such as reel |
| post.caption | string | Caption text |
| post.published_at | string · date-time | When the post was published, ISO 8601 UTC timestamp |
| post.user | object | The author of the post |
| post.user.id | string | Canonical Facebook ID of the profile or Page |
| post.user.username | string | Facebook username, as in the profile URL |
| post.user.display_name | string | Name shown on the profile or Page |
| post.user.profile_url | string · url | Absolute URL of the profile on facebook.com |
| post.user.profile_picture_url | string · url | Profile picture URL on the Facebook CDN |
| post.metrics | object | Engagement counts for the post |
Errors
{ "error": "message" }| Status | Meaning | Retry |
|---|---|---|
| 400 | Missing { "error": "username is required for this id" } | No. Fix the request. |
| 401 | Missing or invalid { "error": "Invalid API key." } | No. Check the key. |
| 404 | The requested account or post does not exist { "error": "This account does not exist." } | No. It doesn't exist. |
| 429 | Request quota exceeded — contact light@airaa.xyz to upgrade your plan { "error": "Request quota exceeded — contact light@airaa.xyz to upgrade your plan." } | After your quota resets |
| 500 | Server misconfiguration — API key environment variable not set { "error": "Server configuration error" } | No. Contact us. |
| 502 | Upstream provider temporarily unavailable — please try again { "error": "Upstream service unavailable" } | Yes, with backoff |
| 504 | Request timed out — please try again { "error": "Request timed out — please try again." } | Yes, with backoff |