API · Facebook
GET /facebook/posts
A public Facebook post: message, author, attachments, reactions, comments, shares, views, top comments.
| Request | GET /v1/facebook/posts |
| Operation id | facebook.post.get |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A public Facebook post: message, author, attachments, reactions, comments, shares, views, top comments.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | yes | The post URL. Example: https://www.facebook.com/zuck/posts/pfbid0Cj47VyownRywjfYupyWgyDKSmv3bFUDRWLpwjDzPZdF2mFfRMTWkyMS3vVRo5reyl. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The post. | FacebookPost |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The ad, Page or advertiser is not in the Meta Ad Library. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Facebook is temporarily unavailable. Retryable; nothing was charged. | Error |
FacebookPost fields
| Field | Type | Description |
|---|---|---|
post_id | string | |
id | string | null | Facebook’s opaque node id for the story. |
feedback_id | string | null | Pass to facebook_post_comments to page through every comment. |
url | string | |
creation_time | integer | null | Published, Unix seconds (UTC). |
message | string | null | |
author | object | null | |
attachments | object[] | Facebook’s attachments: photos, the video (with media.id), links. |
reaction_count | integer | null | |
comment_count | integer | null | |
share_count | integer | null | |
video_view_count | integer | null | |
top_comments | object[] | The few top comments a logged-out visitor sees. |
Errors use one shape everywhere; see Errors for every code and what to do.