List Facebook profile photos

List photos from a Facebook profile or Page.

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

API key (`sfk_...`)

Parameters
3
urlstringrequiredquery

Public Facebook profile or page URL whose photos should be listed.

min 1 chars · max 4096 chars

cursorstringoptionalquery

Opaque pagination cursor from a previous response.

min 1 chars · max 4096 chars

hostMediabooleanoptional+2 / assetquery

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

Response fields
36

Endpoint-specific response payload.

datalookupStatus
string

Whether the requested profile or page resolved for this request.

one of: found, not_found

Photos returned for the requested profile or page. This array may be empty on the last page.

dataphotos[]id
string

Stable photo item identifier from Facebook.

min 1 chars

dataphotos[]photoId
string

Facebook photo id when available.

min 1 chars

dataphotos[]url
string

Public Facebook URL for this photo.

min 1 chars

dataphotos[]accessibilityCaption
stringnullable

Accessibility or alt-style caption text when Facebook provides one.

dataphotos[]imageUrl
stringnullable

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. Null when no syntactically usable URL is available. For durable hosted copies on this list route, pass `hostMedia=true`.

dataphotos[]thumbnailUrl
stringnullable

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

Image dimensions when available.

dataphotos[]dimensionswidth
integer

Image width in pixels when available.

≥ 0

dataphotos[]dimensionsheight
integer

Image height in pixels when available.

≥ 0

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

dataphotos[]hostedMedia[]status
string

Whether SocialFetch stored a durable copy of this asset.

one of: stored, failed

dataphotos[]hostedMedia[]type
string

Normalized media kind.

one of: image, video

dataphotos[]hostedMedia[]role
stringoptional

Which source field this asset was derived from.

one of: display, thumbnail, video

dataphotos[]hostedMedia[]originalUrl
stringoptional

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

dataphotos[]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.

dataphotos[]hostedMedia[]expiresAt
stringoptional

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

dataphotos[]hostedMedia[]retainedUntil
stringoptional

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

dataphotos[]hostedMedia[]mime
stringoptional

MIME type of the stored bytes when status is stored.

min 1 chars

dataphotos[]hostedMedia[]bytes
integeroptional

Stored size in bytes when status is stored.

≥ 0

dataphotos[]hostedMedia[]width
integernullableoptional

Pixel width when known.

≥ 0

dataphotos[]hostedMedia[]height
integernullableoptional

Pixel height when known.

≥ 0

dataphotos[]hostedMedia[]entityId
stringoptional

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

min 1 chars

dataphotos[]hostedMedia[]postId
stringoptional

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

min 1 chars

dataphotos[]hostedMedia[]errorCode
stringoptional

Typed failure code when status is failed.

min 1 chars

dataphotos[]hostedMedia[]errorMessage
stringoptional

Short customer-safe failure message when status is failed.

min 1 chars

Pagination information for the current response.

datapagenextCursor
stringnullable

Cursor to pass as `cursor` in the next request when `hasMore` is true; otherwise null.

datapagehasMore
boolean

Whether another page of photos can be requested.

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/photos?url=https://www.facebook.com/profile.php?id=61575098504636" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Facebook photos for the requested profile or page.