Social Fetch
Facebook

Get Facebook post or reel

Returns public metadata for a single Facebook post or reel URL. Availability is indicated in `data.lookupStatus` as `found` or `not_found`. Optional `includeComments` and `includeTranscript` request extra fields when available.

Operation

GET/v1/facebook/posts
Cost: 1 credit

Headers

x-api-keystringrequired(header)

API key (`sfk_...`)

Parameters

urlstringrequired(query)

Public permalink to the Facebook post or reel.

min 1 chars · max 4096 chars

includeCommentsboolean(query)

When true, includes a sample of top-level comments when available.

includeTranscriptboolean(query)

When true, includes a plain-text transcript when available for the video.

Response fields

data
objectrequired

Endpoint-specific response payload.

datalookupStatus
stringrequired

Whether the URL could be resolved to public content.

one of: found, not_found

datapost
objectrequirednullable

Post details when found.

datapostplatform
stringrequired

Social platform for this content.

one of: facebook

datapostpostId
stringrequired

Platform post id when available.

min 1 chars

dataposturl
stringrequired

Canonical or resolved public URL for this post or reel.

min 1 chars

datapostdescription
stringrequirednullable

Caption or body text when available.

datapostpublishedAt
stringrequirednullable

Publication timestamp in ISO 8601 when available.

datapostfeedbackId
stringrequirednullable

Opaque feedback identifier when exposed by the platform; may be used for related lookups.

dataauthor
objectrequirednullable

Author when found.

dataauthorname
stringrequired

Display name of the author.

min 1 chars

dataauthorprofileUrl
stringrequired

Public profile URL for the author when available.

min 1 chars

dataauthoravatarUrl
stringrequirednullable

Avatar image URL when available.

dataauthorplatformUserId
string

Platform-specific author id when available.

dataauthorverified
booleanrequired

Whether the author is marked as verified.

datametrics
objectrequirednullable

Engagement metrics for the post or reel.

datametricslikes
integerrequirednullable

Like count when available.

≥ 0

datametricscomments
integerrequirednullable

Comment count when available.

≥ 0

datametricsshares
integerrequirednullable

Share count when available.

≥ 0

datametricsviews
integerrequirednullable

View or play count when available.

≥ 0

datamedia
objectrequirednullable

Primary media for the post or reel.

datamediathumbnailUrl
stringrequirednullable

Thumbnail image URL when available.

datamediaimageUrl
stringrequirednullable

Primary image URL when the post is image-based.

datamediavideoUrl
stringrequirednullable

Standard-definition video URL when available.

datamediavideoHdUrl
stringrequirednullable

High-definition video URL when available.

datamediadurationSec
numberrequirednullable

Video duration in seconds when available.

≥ 0

datamediawidth
integerrequirednullable

Video width in pixels when available.

≥ 0

datamediaheight
integerrequirednullable

Video height in pixels when available.

≥ 0

datamediacaptionsUrl
stringrequirednullable

Caption or subtitle asset URL when available.

datamusic
objectrequirednullable

Attached audio metadata when available.

datamusictrackTitle
stringrequirednullable

Track title when the post uses attached audio.

datamusicalbumArtUrl
stringrequirednullable

Album art image URL when available.

datamusicmusicId
string

Audio track id when available.

datamusictype
string

Audio source type label when available.

datacomments
arrayrequired

Sample of top-level comments when requested and available.

datacomments[]commentId
stringrequired

Stable id for the comment when available.

min 1 chars

datacomments[]text
stringrequirednullable

Comment body text.

datacomments[]createdAt
stringrequirednullable

Creation timestamp in ISO 8601 when available.

datacomments[]replyCount
integerrequired

Number of direct replies when available.

≥ 0

datacomments[]reactionCount
integerrequired

Total reactions when available.

≥ 0

datacomments[]authorName
stringrequired

Display name of the commenter.

min 1 chars

datatranscript
stringrequirednullable

Plain-text transcript when requested and 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

Post or reel metadata (found or not found in body).

Error codes

bad_requestinsufficient_creditsinternal_errorlookup_failedtemporarily_unavailableunauthorized

On this page