API para Facebook: Fotos
Obtenha fotos recentes publicadas por qualquer página ou perfil público do Facebook (URLs das imagens, legendas e dimensões) em JSON normalizado.
Rede de provedores
Provedores ordenados por tráfego
Teste
Faça sua primeira requisição
{
"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,
"reason": "not_found"
}interface FacebookPhotosResponse {
data: {
nextCursor: string | null;
nextPageId: string | null;
photos: {
caption: string;
id: string;
imageHeight: number | null;
imageUrl: string;
imageWidth: number | null;
photoId: string;
thumbnail: string;
url: string;
}[];
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30dcurl -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"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| url | string | "https://www.facebook.com/Spurs"URL da página ou perfil público do Facebook de onde buscar fotos (ex.: https://www.facebook.com/Spurs). |
| cursor | string | Cursor de paginação de uma resposta anterior para buscar a próxima página. |
| requireFields | array | Opcional; se omitido, o roteamento não muda e a fonte mais barata atende. Informe os campos de saída que esta requisição precisa poder retornar, por exemplo `imageWidth`, e ela só será atendida por uma fonte que retorne todos eles. Os campos que você não informar continuam sendo retornados sempre que a fonte que atende os tiver. Isso pode aumentar o seu preço: quando a fonte mais barata não consegue retornar um campo informado, uma fonte mais cara atende, e você recebe a cotação e é cobrado pelo preço dela. Um campo informado ainda pode vir ausente em uma foto que realmente não o tenha. Se você informar uma combinação de campos que nenhuma fonte retorna sozinha, a requisição é recusada como entrada inválida, sem cobrança. |
| Resposta | ||
| data | object | |
| data.nextCursor | string | Opaque cursor for the next page of photos, or null when this lane has no more. Pass it back as cursor to continue. |
| data.nextPageIdpode ser exigido | string | Facebook's own id for the next page of photos. Null when the serving source does not report it; pass nextCursor back as cursor to continue either way. |
| data.photos | object[] | Populated whenever the provider has data for the entity. |
| data.photos[].caption | string | Populated whenever the provider has data for the entity. |
| data.photos[].id | string | Populated whenever the provider has data for the entity. |
| data.photos[].imageHeightpode ser exigido | integer | Height of imageUrl in pixels. Null when the serving source does not report it. |
| data.photos[].imageUrl | string | Populated whenever the provider has data for the entity. |
| data.photos[].imageWidthpode ser exigido | integer | Width of imageUrl in pixels. Null when the serving source does not report it. |
| data.photos[].photoId | string | Populated whenever the provider has data for the entity. |
| data.photos[].thumbnail | string | Populated whenever the provider has data for the entity. |
| data.photos[].url | string | Populated whenever the provider has data for the entity. |
| found | boolean | |
| reason | "not_found" | Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost. |
| Preço | ||
| Preço por requisição | USD | US$ 0,0012 |
| Preço /mil req. | USD | US$ 1,20 |
Dúvidas frequentes
Sobre o endpoint Fotos da API para Facebook
O endpoint Fotos da AnyAPI para Facebook retorna dados de Facebook em JSON normalizado com uma chamada POST para /v1/run/facebook.photos. Obtenha fotos recentes publicadas por qualquer página ou perfil público do Facebook (URLs das imagens, legendas e dimensões) em JSON normalizado. A AnyAPI distribui cada requisição entre 2 fontes, com failover automático quando uma falha. Custa a partir de US$ 1,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Fotos da API para Facebook feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 1,6 segundos, em 2 chamadas medidas.