Skip to content

Structured Facebook data: send urls. Single lookup, 1 credit per successful call.

GET · POST1 credit / successful callSingle lookup
GEThttps://api.scrapier.io/api/v2/facebook-single-photo-scraper/Open in Playground

Call GET /api/v2/facebook-single-photo-scraper/ with urls. The results are in data.photo. 2 optional parameters refine the call (see Parameters).

Terminal window
curl -G "https://api.scrapier.io/api/v2/facebook-single-photo-scraper/" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "urls=https://www.facebook.com/photo/?fbid=1616406629842169&set=a.271269304355915" \
--max-time 210
NameTypeRequiredDefaultDescription
X-API-Key headerstringyes—Your API key from the dashboard.
urlsstringyese.g. https://www.facebook.com/photo/?fbid=1616406629842169&set=a.271269304355915Facebook photo URL or bare fbid. One photo per call.
cursorstringno—Pagination cursor returned in the previous response's next_cursor. Pass it back unchanged to fetch the next page. When next_cursor is null, you have reached the last page.
post_statsbooleannotrueAlso fetch containing-post comments/shares/reactions (default true).
Advanced
NameTypeDefaultDescription
use_proxybooleantrueRoute the request through Scrapier's residential proxy pool. Default: true. Leave as is unless support tells you otherwise.
raw_databooleanfalseWhen true, the response carries the full raw upstream payload(s) the scraper received (GraphQL / JSON API bodies, HTML, embedded JSON-LD -- exactly as the platform returned them) under raw_responses, in place of the formatted items. When false (default) you get the formatted output. Pagination (cursor / next_cursor) works the same in both modes.
{
"success": true,
"data": {
"urls": "https://www.facebook.com/photo/?fbid=1616406629842169&set=a.271269304355915",
"photo": {
"facebookUrl": "https://www.facebook.com/IamSRK",
"pageName": "IamSRK",
"photoId": "1616406629842169",
"postId": "1616406666508832",
"url": "https://www.facebook.com/photo/?fbid=1616406629842169&set=a.271269304355915",
"dataType": "photo",
"image": "https://scontent.fdac185-1.fna.fbcdn.net/v/t39.99422-6/772685931_2510090782827787_6665756630923711670_n.png",
"width": 1023,
"height": 1537,
"time": "2026-08-15T12:42:31.000Z",
"user": {
"id": "100044185428261",
"name": "Shah Rukh Khan"
},
"likes": 111336,
"comments": 5881,
"shares": 890,
"albumId": "271269304355915",
"inputUrl": "https://www.facebook.com/photo/?fbid=1616406629842169&set=a.271269304355915",
"scraped_at": "2026-09-17T05:21:41.806Z"
},
"next_cursor": null
}
}

Sample from the live catalog; arrays trimmed to 3 items. Results are in data.photo.

FieldTypeExampleDescription
urlsstringhttps://www.facebook.com/photo/?fbid=16164066…—
photoobject{…}The results.
next_cursornullnullPass back as cursor for the next page. null on the last page.
photo.facebookUrlstringhttps://www.facebook.com/IamSRK—
photo.pageNamestringIamSRK—
photo.photoIdstring1616406629842169—
photo.postIdstring1616406666508832—
photo.urlstringhttps://www.facebook.com/photo/?fbid=16164066…—
photo.dataTypestringphoto—
photo.imagestringhttps://scontent.fdac185-1.fna.fbcdn.net/v/t3…—
photo.widthinteger1023—
photo.heightinteger1537—
photo.timestring2026-08-15T12:42:31.000Z—
photo.userobject{…}—
photo.likesinteger111336—
photo.commentsinteger5881—
photo.sharesinteger890—
photo.albumIdstring271269304355915—
photo.inputUrlstringhttps://www.facebook.com/photo/?fbid=16164066…—
photo.scraped_atstring2026-09-17T05:21:41.806Z—

Returns everything in one call; next_cursor is always null.

Failed calls are free. Branch on the HTTP status and read the message from error (or detail). Full details in Errors.

StatusMeaningRetry?Charged?
400Bad or missing input.No — fix the paramsNo
401 / 403Missing, invalid or revoked API key.No — fix the keyNo
402Out of credits (body has balance).No — top upNo
404Unknown endpoint slug.No — check the slugNo
429 / 503Busy or throttled.Yes — after Retry-AfterNo
5xxTarget site or upstream failure, or timeout.Yes — with backoffNo
  • Nothing special: send the inputs, read the result.