API para Facebook: Buscar páginas
Busque Páginas do Facebook por palavra-chave, opcionalmente restritas a uma localização, e receba perfis estruturados das páginas (nome, categoria, seguidores, dados de contato).
Como chamar
Faça sua primeira requisição
import os, requests res = requests.post( "https://api.getanyapi.com/v1/run/facebook.search_pages", headers={"Authorization": f"Bearer {os.environ['ANYAPI_KEY']}"}, json={ "query": "" }, ) print(res.json())
{
"data": {
"items": [
{
"about": "A short example description of this item.",
"adStatus": "active",
"categories": [
"example"
],
"category": "general",
"coverPhotoUrl": "https://example.com/image.jpg",
"createdUtc": 12.5,
"followers": 12500,
"id": "a1b2c3d4",
"image": "https://example.com/image.jpg",
"likes": 12500,
"owner": "Alex Rivera",
"pageAlias": "example",
"phone": "+1 555-0142",
"title": "Example title",
"url": "https://example.com/page",
"website": "https://example.com/page"
}
]
},
"found": true,
"reason": "not_found"
}interface FacebookSearchPagesResponse {
data: {
items: {
about?: string;
adStatus?: string;
categories?: string[];
category?: string;
coverPhotoUrl?: string;
createdUtc?: number;
followers?: number;
id: string;
image?: string;
likes?: number;
owner?: string;
pageAlias?: string;
phone?: string;
title: string;
url: string;
website?: 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.search_pages \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"limit":3,"query":"nike"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| query | string | "nike"Palavra-chave para buscar Páginas do Facebook (ex.: 'coffee roasters'). |
| limit | integer | 3Número máximo de resultados a retornar (1-10, padrão 10). A cobrança é por resultado retornado, então um limite menor custa menos. |
| location | string | Localização opcional em texto livre para restringir a busca: uma cidade, província ou país (ex.: 'Berlin'). |
| Resposta | ||
| data | object | |
| data.items | object[] | Matching Facebook Page records for the query. Populated whenever the provider has data for the entity. |
| data.items[].about | string | The page's intro text. |
| data.items[].adStatus | string | Facebook Ad Library status sentence for the page, e.g. whether it is currently running ads. |
| data.items[].categories | string[] | Categories Facebook lists the page under. |
| data.items[].category | string | The page's primary category (e.g. "Sportswear Store"). Empty when the upstream omits it. |
| data.items[].coverPhotoUrl | string | Cover photo image URL of the page. |
| data.items[].createdUtc | number | UTC epoch timestamp in seconds (Unix time) the page was created. Multiply by 1000 for a JS Date in milliseconds. |
| data.items[].followers | integer | The page's follower count. |
| data.items[].id | string | The page's numeric Facebook ID, as a string. Populated whenever the provider has data for the entity. |
| data.items[].image | string | URL of the page's profile picture, with tracking query params stripped. Empty when the upstream omits it. |
| data.items[].likes | integer | The page's like count. |
| data.items[].owner | string | Confirmed owner of the page, when Facebook publishes one. |
| data.items[].pageAlias | string | The page's vanity URL alias, e.g. "nikesportswear". |
| data.items[].phone | string | The page's public phone number. Empty when the upstream omits it. |
| data.items[].title | string | The page's public name. Populated whenever the provider has data for the entity. |
| data.items[].url | string | Canonical URL of the Facebook Page, with tracking query params stripped. Populated whenever the provider has data for the entity. |
| data.items[].website | string | The page's public website URL. Empty when the upstream omits it. |
| found | boolean | Whether any matching pages were returned for the query. |
| 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 (teto) | USD | US$ 0,123 |
| Preço /mil resultados | USD | US$ 11,18 |
Dúvidas frequentes
Sobre o endpoint Buscar páginas da API para Facebook
O endpoint Buscar páginas da AnyAPI para Facebook retorna dados de Facebook em JSON normalizado com uma chamada POST para /v1/run/facebook.search_pages. Busque Páginas do Facebook por palavra-chave, opcionalmente restritas a uma localização, e receba perfis estruturados das páginas (nome, categoria, seguidores, dados de contato). A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa US$ 11,18 por mil resultados, e nunca mais de US$ 0,123 por requisição, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 97,0% das chamadas ao endpoint Buscar páginas da API para Facebook feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 24,9 segundos, em 199 chamadas medidas.