Social Fetch
Facebook

List Facebook profile posts

Lists public posts for a Facebook profile or page identified by `url` or `pageId`, with cursor-based pagination. Private profiles, missing pages, and profiles with no public posts can all surface as HTTP `200` with an empty `data.posts` page—this route does not expose `lookupStatus`. Call `GET /v1/facebook/profiles` first when you need explicit `found` / `private` / `not_found` before interpreting an empty list.

Operation

GET/v1/facebook/profiles/posts

Headers

x-api-keystringrequired(header)

API key (`sfk_...`)

Parameters

urlstring(query)

Full public Facebook profile or page URL.

min 1 chars · max 4096 chars

pageIdstring(query)

Facebook page or profile id when you have it instead of a full URL.

min 1 chars · max 4096 chars

cursorstring(query)

Opaque pagination cursor from a previous response (`data.page.nextCursor`).

min 1 chars

Response fields

data
objectrequired

Endpoint-specific response payload.

dataposts
arrayrequired

Facebook posts for the requested input. An empty array can mean no public posts were returned, the profile does not expose posts publicly, or the URL or id could not be resolved—there is no separate lookup status on this route.

dataposts[]id
stringrequired

Facebook post id.

min 1 chars

dataposts[]text
stringrequirednullable

Post caption or text when present.

dataposts[]url
stringrequired

Public Facebook URL for this post.

min 1 chars

dataposts[]publishTime
integer

When the post was published (Unix epoch seconds) when available.

dataposts[]authorDisplayName
stringnullable

Display name for the post author when available.

dataposts[]authorShortName
stringnullable

Short display label for the author when Facebook provides one.

dataposts[]authorId
string

Facebook id for the post author when available.

dataposts[]reactionCount
integer

Reaction count when available.

≥ 0

dataposts[]commentCount
integer

Comment count when available.

≥ 0

dataposts[]videoViewCount
integernullable

Video view count when available.

≥ 0

dataposts[]imageUrl
string

Primary image URL when the post includes a single primary image.

dataposts[]imageUrls
array

Gallery image URLs when the post includes multiple images.

dataposts[]imageUrls[]
string

min 1 chars

dataposts[]videoSdUrl
string

Standard-definition video URL when this post includes playable video.

dataposts[]videoHdUrl
string

High-definition video URL when this post includes playable video.

dataposts[]videoThumbnailUrl
string

Video thumbnail image URL when available.

dataposts[]topComments
array

A small set of top comments when Facebook exposes them for the post.

dataposts[]topComments[]id
stringrequired

Comment id.

min 1 chars

dataposts[]topComments[]text
stringrequirednullable

Comment text when available.

dataposts[]topComments[]publishTime
integer

When the comment was published (Unix epoch seconds) when available.

dataposts[]topComments[]authorDisplayName
stringnullable

Display name for the comment author when available.

dataposts[]topComments[]authorId
string

Facebook id for the comment author when available.

dataposts[]topComments[]authorUrl
stringnullable

Public Facebook URL for the comment author when available.

datapage
objectrequired

Pagination state for the current response.

datapagenextCursor
stringrequirednullable

Cursor to pass as `cursor` in the next request when more posts are available.

datapagehasMore
booleanrequired

Whether another page of posts is available.

meta
objectrequired

Metadata describing the request and billing outcome.

metarequestId
stringrequired

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integerrequired

Credits charged for this request.

≥ 0

metaversion
stringrequired

Public API version that served the response.

one of: v1

Code example

Responses

Facebook posts for the requested profile or page. Empty `data.posts` is ambiguous without a profile preflight—see the operation description.

Error codes

bad_requestinsufficient_creditsinternal_errorlookup_failedtemporarily_unavailableunauthorized

On this page