API para Facebook: Busca de eventos
Busque eventos públicos do Facebook por palavra-chave e receba registros estruturados de eventos (nome, programação, local, preços e participação) em JSON normalizado.
Rede de provedores
Provedores ordenados por tráfego
Teste
Faça sua primeira requisição
{
"data": {
"events": [
{
"coverImage": "https://example.com/image.jpg",
"dayTimeSentence": "2024-01-15T09:30:00Z",
"eventKind": "general",
"goingCount": 12500,
"id": "a1b2c3d4",
"interestedCount": 12500,
"isOnline": true,
"isPast": true,
"name": "Example title",
"placeId": "a1b2c3d4",
"placeName": "Example title",
"priceRangeText": "A short example description of this item.",
"startTimestamp": 42,
"type": "general",
"url": "https://example.com/page"
}
],
"nextCursor": "example"
},
"found": true,
"reason": "not_found"
}interface FacebookEventsSearchResponse {
data: {
events: {
coverImage: string;
dayTimeSentence: string;
eventKind?: string;
goingCount: number;
id: string;
interestedCount: number;
isOnline: boolean;
isPast: boolean;
name: string;
placeId?: string;
placeName: string;
priceRangeText: string;
startTimestamp: number;
type?: string;
url: string;
}[];
nextCursor: string | null;
} | 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.events_search \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"music festival"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| query | string | "music festival"A consulta usada para buscar eventos. |
| cursor | string | Cursor de paginação de uma resposta anterior. |
| Resposta | ||
| data | object | |
| data.events | object[] | |
| data.events[].coverImage | string | Populated whenever the provider has data for the entity. |
| data.events[].dayTimeSentence | string | Populated whenever the provider has data for the entity. |
| data.events[].eventKind | string | Event kind Facebook reports, e.g. "PUBLIC_TYPE". |
| data.events[].goingCount | integer | |
| data.events[].id | string | Populated whenever the provider has data for the entity. |
| data.events[].interestedCount | integer | |
| data.events[].isOnline | boolean | |
| data.events[].isPast | boolean | |
| data.events[].name | string | Populated whenever the provider has data for the entity. |
| data.events[].placeId | string | Numeric Facebook id of the event's place, as a string. |
| data.events[].placeName | string | Populated whenever the provider has data for the entity. |
| data.events[].priceRangeText | string | |
| data.events[].startTimestamp | integer | Populated whenever the provider has data for the entity. |
| data.events[].type | string | Entity type of the record, e.g. "Event". |
| data.events[].url | string | Populated whenever the provider has data for the entity. |
| data.nextCursor | string | Opaque cursor for the next page of events, or null when this lane has no more. Pass it back as cursor to continue. |
| 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 Busca de eventos da API para Facebook
O endpoint Busca de eventos da AnyAPI para Facebook retorna dados de Facebook em JSON normalizado com uma chamada POST para /v1/run/facebook.events_search. Busque eventos públicos do Facebook por palavra-chave e receba registros estruturados de eventos (nome, programação, local, preços e participação) 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 Busca de eventos da API para Facebook feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 4,5 segundos, em 161 chamadas medidas.