GroundsocialDocs

API · Facebook

GET /facebook/posts

A public Facebook post: message, author, attachments, reactions, comments, shares, views, top comments.

RequestGET /v1/facebook/posts
Operation idfacebook.post.get
Cost2 credits, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

A public Facebook post: message, author, attachments, reactions, comments, shares, views, top comments.

Query parameters

NameTypeRequiredDescription
urlstringyesThe post URL. Example: https://www.facebook.com/zuck/posts/pfbid0Cj47VyownRywjfYupyWgyDKSmv3bFUDRWLpwjDzPZdF2mFfRMTWkyMS3vVRo5reyl.

Responses

StatusMeaningSchema
200The post.FacebookPost
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404The ad, Page or advertiser is not in the Meta Ad Library.Error
429Too many requests. Wait for Retry-After seconds.Error
503Facebook is temporarily unavailable. Retryable; nothing was charged.Error

FacebookPost fields

FieldTypeDescription
post_idstring
idstring | nullFacebook’s opaque node id for the story.
feedback_idstring | nullPass to facebook_post_comments to page through every comment.
urlstring
creation_timeinteger | nullPublished, Unix seconds (UTC).
messagestring | null
authorobject | null
attachmentsobject[]Facebook’s attachments: photos, the video (with media.id), links.
reaction_countinteger | null
comment_countinteger | null
share_countinteger | null
video_view_countinteger | null
top_commentsobject[]The few top comments a logged-out visitor sees.

Errors use one shape everywhere; see Errors for every code and what to do.