List Facebook profile posts

List posts from a Facebook profile or Page.

GET/v1/facebook/profiles/posts
x-api-keystringheader

API key (`sfk_...`)

Parameters
4
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.

min 1 chars

hostMediaboolean+2 / assetquery

When true, hosts source media for 90 days and returns delivery URLs in each post's `hostedMedia`.

Response fields
50

Endpoint-specific response payload.

datalookupStatus
string

Whether the requested profile or page resolved for this request.

one of: found, not_found

Facebook posts for the requested input. May be empty when `lookupStatus` is `found` and no public posts are returned, or when `lookupStatus` is `not_found`.

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[]createdAt
stringoptional

When the post was published (ISO-8601) 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

Source-platform CDN URL for the primary image when available. It can expire or be rejected outside the original retrieval context; it is not a SocialFetch-hosted asset. Omitted when no syntactically usable URL is available. For durable hosted copies on this list route, pass `hostMedia=true`.

Source-platform CDN gallery image URLs when the post includes multiple images. Each URL can expire or be rejected outside the original retrieval context; they are not SocialFetch-hosted assets. For durable hosted copies on this list route, pass `hostMedia=true`.

dataposts[]imageUrls[]
stringoptional

min 1 chars

dataposts[]videoSdUrl
stringoptional

Source-platform CDN URL for standard-definition video when available. It can expire or be rejected outside the original retrieval context; it is not a SocialFetch-hosted asset. For durable hosted copies on this list route, pass `hostMedia=true` (HD is preferred when both are present).

dataposts[]videoHdUrl
stringoptional

Source-platform CDN URL for high-definition video when available. It can expire or be rejected outside the original retrieval context; it is not a SocialFetch-hosted asset. For durable hosted copies on this list route, pass `hostMedia=true`.

dataposts[]videoThumbnailUrl
stringoptional

Source-platform CDN URL for the video thumbnail when available. It can expire or be rejected outside the original retrieval context; it is not a SocialFetch-hosted asset. For durable hosted copies on this list route, pass `hostMedia=true`.

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[]createdAt
stringoptional

When the comment was published (ISO-8601) 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.

Present only when `hostMedia=true`. Hosted copies and/or per-asset failures for this post.

dataposts[]hostedMedia[]status
string

Whether SocialFetch stored a durable copy of this asset.

one of: stored, failed

dataposts[]hostedMedia[]type
string

Normalized media kind.

one of: image, video

dataposts[]hostedMedia[]role
stringoptional

Which source field this asset was derived from.

one of: display, thumbnail, video

dataposts[]hostedMedia[]originalUrl
stringoptional

Source-platform CDN URL that was requested for hosting. Still transient; prefer `url` when status is stored.

dataposts[]hostedMedia[]url
stringoptional

Time-limited SocialFetch delivery URL when status is stored. Re-request hostMedia (or a future refresh route) before this expires if you still need access; object retention may outlive the delivery URL.

dataposts[]hostedMedia[]expiresAt
stringoptional

ISO-8601 timestamp when the returned delivery URL stops working.

dataposts[]hostedMedia[]retainedUntil
stringoptional

ISO-8601 timestamp when the stored object is deleted from SocialFetch storage (90-day tier).

dataposts[]hostedMedia[]mime
stringoptional

MIME type of the stored bytes when status is stored.

min 1 chars

dataposts[]hostedMedia[]bytes
integeroptional

Stored size in bytes when status is stored.

≥ 0

dataposts[]hostedMedia[]width
integernullableoptional

Pixel width when known.

≥ 0

dataposts[]hostedMedia[]height
integernullableoptional

Pixel height when known.

≥ 0

dataposts[]hostedMedia[]entityId
stringoptional

Opaque parent entity id for this asset (post, reel, photo, or video id).

min 1 chars

dataposts[]hostedMedia[]postId
stringoptional

Legacy Instagram media id alias for `entityId`. Prefer `entityId`.

min 1 chars

dataposts[]hostedMedia[]errorCode
stringoptional

Typed failure code when status is failed.

min 1 chars

dataposts[]hostedMedia[]errorMessage
stringoptional

Short customer-safe failure message when status is failed.

min 1 chars

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

metacached
booleanoptional

True when served from shared response cache. Credits still apply (full endpoint price); Age header may be present.

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. Check `data.lookupStatus` when `posts` is empty.