Social Fetch
Facebook

List Facebook profile posts

Get posts from a Facebook profile or page.

Call `GET /v1/facebook/profiles` first when you need `found` / `private` / `not_found` before interpreting an empty posts page.

An empty `data.posts` page with `hasMore: false` can represent no public posts, restricted visibility, or an unresolvable URL or id—there is no `lookupStatus` field on this route.

GET/v1/facebook/profiles/posts
1credit
x-api-key*stringheader

API key (`sfk_...`)

Parameters
3
urlstringquery

Full public Facebook profile or page URL.

min 1 chars · max 4096 chars

pageIdstringquery

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

min 1 chars · max 4096 chars

cursorstringquery

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

min 1 chars

Response fields
32

Endpoint-specific response payload.

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
string

Facebook post id.

min 1 chars

dataposts[]text
stringnullable

Post caption or text when present.

dataposts[]url
string

Public Facebook URL for this post.

min 1 chars

dataposts[]publishTime
integeroptional

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

dataposts[]authorDisplayName
stringnullableoptional

Display name for the post author when available.

dataposts[]authorShortName
stringnullableoptional

Short display label for the author when Facebook provides one.

dataposts[]authorId
stringoptional

Facebook id for the post author when available.

dataposts[]reactionCount
integeroptional

Reaction count when available.

≥ 0

dataposts[]commentCount
integeroptional

Comment count when available.

≥ 0

dataposts[]videoViewCount
integernullableoptional

Video view count when available.

≥ 0

dataposts[]imageUrl
stringoptional

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

Gallery image URLs when the post includes multiple images.

dataposts[]imageUrls[]
stringoptional

min 1 chars

dataposts[]videoSdUrl
stringoptional

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

dataposts[]videoHdUrl
stringoptional

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

dataposts[]videoThumbnailUrl
stringoptional

Video thumbnail image URL when available.

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

dataposts[]topComments[]id
string

Comment id.

min 1 chars

dataposts[]topComments[]text
stringnullable

Comment text when available.

dataposts[]topComments[]publishTime
integeroptional

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

dataposts[]topComments[]authorDisplayName
stringnullableoptional

Display name for the comment author when available.

dataposts[]topComments[]authorId
stringoptional

Facebook id for the comment author when available.

dataposts[]topComments[]authorUrl
stringnullableoptional

Public Facebook URL for the comment author when available.

Pagination state for the current response.

datapagenextCursor
stringnullable

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

datapagehasMore
boolean

Whether another page of posts is available.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/facebook/profiles/posts?url=https://www.facebook.com/profile.php?id=61575098504636" \
  -H "x-api-key: YOUR_API_KEY"

Responses

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

On this page

No Headings