Download a photo
Streams a photo a result returned, by its link, with Range support. Only Marketplace photo links are accepted. Photo links expire after a few days: read the listing again for fresh ones. 1 credit per request.
GET
/media Utilities https://api.fetchlayer.dev/facebook-marketplace/media Headers
Authorization string required Bearer token — your FetchLayer API key.
Parameters
url string required A photo link as a result gave it (photo.url or photos[].url). Only Marketplace photo links; anything else is a 400.
Response Fields
media
Download a photo
(binary) file The photo, streamed with its own content type. A Range request is answered with 206.
Request
curl -X GET "https://api.fetchlayer.dev/facebook-marketplace/media?url=https%3A%2F%2Fscontent.xx.fbcdn.net%2Fv%2F%E2%80%A6%2Fexample.jpg" \
-H "Authorization: Bearer ss-your-key"Response
{
"note": "The photo’s bytes, streamed with its own content type."
}