Recent photos of a public Facebook page by URL: image URL, thumbnail, size, caption and photo id, with cursor pagination.
2 credits/ call
Never more than 27 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/facebook.photos" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.facebook.com/Spurs"}'{
"output": {
"found": true,
"data": {
"nextCursor": "<string | null>",
"photos": [
{
"imageWidth": "<integer | null>",
"imageHeight": "<integer | null>",
"thumbnail": "<string | null>",
"caption": "<string | null>", …
}
],
"nextPageId": "<string | null>"
}
},
"credits": 2
}Input and output
2 fields
https://www.facebook.com/Spurs.8 fields
Good to know
Follow nextCursor for more.
Image URLs expire. Save the file if you need to keep it.
Do not rehost.
Unknown URL? It comes back as not found, not as an error.
The same key and credits work for every API.