API para Facebook: Eventos
Liste eventos públicos do Facebook de uma cidade ou local pela URL da página de eventos (nome do evento, data, local e participação) em JSON normalizado.
Preços
Um preço, em dólares
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,
"isHappeningNow": true,
"isOnline": true,
"isPast": true,
"name": "Example title",
"placeId": "a1b2c3d4",
"placeName": "Example title",
"startTimestamp": 42,
"url": "https://example.com/page"
}
],
"nextCursor": "example"
},
"found": true,
"reason": "not_found"
}interface FacebookEventsResponse {
data: {
events: {
coverImage?: string;
dayTimeSentence: string;
eventKind?: string;
goingCount: number;
id: string;
interestedCount: number;
isHappeningNow?: boolean;
isOnline: boolean;
isPast?: boolean;
name: string;
placeId?: string;
placeName: string;
startTimestamp: number;
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 \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| url | string | "https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547"URL da página de Eventos do Facebook de uma cidade ou local (ex.: https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547). |
| cursor | string | Cursor de paginação de uma resposta anterior para buscar a próxima página. |
| time | enum | Filtro de período para os eventos retornados. O padrão é todo o período. |
| Resposta | ||
| data | object | |
| data.events | object[] | |
| data.events[].coverImage | string | Cover photo image URL of the event. |
| 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[].isHappeningNow | boolean | Whether the event is happening right now. |
| data.events[].isOnline | boolean | |
| data.events[].isPast | boolean | Whether the event has already finished. |
| 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[].startTimestamp | integer | Populated whenever the provider has data for the entity. |
| 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 Eventos da API para Facebook
O endpoint Eventos da AnyAPI para Facebook retorna dados de Facebook em JSON normalizado com uma chamada POST para /v1/run/facebook.events. Liste eventos públicos do Facebook de uma cidade ou local pela URL da página de eventos (nome do evento, data, local e participação) em JSON normalizado. A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. 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 Eventos da API para Facebook feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 1,4 segundos, em 1 chamadas medidas.