Facebook API

Facebook Photos API

Fetch recent photos posted by any public Facebook page or profile (image URLs, captions, and dimensions) as normalized JSON.

POST/v1/run/facebook.photos
Requests
-
30d

Provider network

Providers ranked by traffic

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "data": {
    "nextCursor": "example",
    "nextPageId": "a1b2c3d4",
    "photos": [
      {
        "caption": "A short example description of this item.",
        "id": "a1b2c3d4",
        "imageHeight": 29,
        "imageUrl": "https://example.com/image.jpg",
        "imageWidth": 29,
        "photoId": "https://example.com/image.jpg",
        "thumbnail": "https://example.com/image.jpg",
        "url": "https://example.com/page"
      }
    ]
  },
  "found": true
}
Response interface
interface FacebookPhotosResponse {
  data: {
    nextCursor: string | null;
    nextPageId: string;
    photos: {
      caption: string;
      id: string;
      imageHeight: number;
      imageUrl: string;
      imageWidth: number;
      photoId: string;
      thumbnail: string;
      url: string;
    }[];
  } | null;
  found: boolean;
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

Request, response, and price

Last verified 2026-09-16 · uptime and latency measured over 30d
POST /v1/run/facebook.photos
curl -X POST https://api.getanyapi.com/v1/run/facebook.photos \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.facebook.com/Spurs"}'
FieldTypeExample value
Request body
urlstring"https://www.facebook.com/Spurs"URL of the public Facebook page or profile to fetch photos from (e.g. https://www.facebook.com/Spurs).
cursorstringPagination cursor from a previous response to fetch the next page.
Response
dataobject
data.nextCursorstringOpaque cursor for the next page of photos, or null when this lane has no more. Pass it back as cursor to continue.
data.nextPageIdstring
data.photosobject[]Populated whenever the provider has data for the entity.
data.photos[].captionstringPopulated whenever the provider has data for the entity.
data.photos[].idstringPopulated whenever the provider has data for the entity.
data.photos[].imageHeightinteger
data.photos[].imageUrlstringPopulated whenever the provider has data for the entity.
data.photos[].imageWidthinteger
data.photos[].photoIdstringPopulated whenever the provider has data for the entity.
data.photos[].thumbnailstringPopulated whenever the provider has data for the entity.
data.photos[].urlstringPopulated whenever the provider has data for the entity.
foundboolean
Price
Price per requestUSD$0.0012
Price /1k reqUSD$1.20

FAQ

About the Facebook Photos API

The AnyAPI Facebook Photos API returns Facebook photos data as normalized JSON from one POST call to /v1/run/facebook.photos. Fetch recent photos posted by any public Facebook page or profile (image URLs, captions, and dimensions) as normalized JSON. AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

Fetch recent photos posted by any public Facebook page or profile (image URLs, captions, and dimensions) as normalized JSON. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.