Facebook Scraping
Get Facebook Photo Data
POST /v1/facebook/photo
#Request
curl -X POST https://scrapingapi.qoest.com/v1/facebook/photo \
-H "Authorization: Bearer your-token" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.facebook.com/photo/?fbid=555"}'
#Parameters
| Name | Type | Required | Notes |
|---|---|---|---|
url |
string | yes | /photo?fbid=<id>, /photo.php?fbid=<id>, /{owner}/photos/{id} or /{owner}/photos/{album}/{id}. |
#Response
{
"response": {
"id": "555",
"type": "photo",
"post_id": "666",
"album_id": "777",
"text": "Caption",
"created_at": "2026-01-01T12:00:00+00:00",
"author": {
"id": "100000000000001",
"username": "examplepage",
"name": "Example Page",
"profile_url": "https://www.facebook.com/examplepage",
"verified": false
},
"stats": { "reactions": 10, "comments": 2, "shares": 1 },
"media": [{ "id": "555", "type": "image", "url": "https://scontent.example/....jpg", "alt": "May be an image of the sea" }],
"tagged_users": [{ "id": "888", "name": "Example Person" }],
"comments": []
}
}
When Facebook serves only basic page data, the response is reduced to id, type, text, author.name and media. Comments use the same shape as on posts.
#Pricing
3 credits per successful request.
#Errors
| Status | Body | Charged |
|---|---|---|
403 |
Not enough credits | no |
403 |
The photo is private or not publicly accessible | no |
404 |
{"message": "Facebook photo not found."} |
no |
422 |
Not a photo URL, or the photo could not be retrieved | no |