API para Facebook: Detalhes do evento
Obtenha os detalhes completos de um evento do Facebook por ID ou URL (nome, programação, local, organizadores e participação) em JSON normalizado.
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"data": {
"address": "123 Main St",
"attendanceCount": 12500,
"canViewMembers": true,
"city": "San Francisco",
"cityId": "San Francisco",
"coverPhotoUrl": "https://example.com/image.jpg",
"creatorId": "a1b2c3d4",
"creatorName": "Example title",
"dayTimeSentence": "2024-01-15T09:30:00Z",
"description": "A short example description of this item.",
"duration": "example",
"endTime": "2024-01-15T09:30:00Z",
"eventKind": "general",
"goingCount": 12500,
"hostContextText": "example.com",
"hostNames": [
"example.com"
],
"hosts": [
{
"id": "a1b2c3d4",
"image": "https://example.com/image.jpg",
"name": "Example title",
"type": "general",
"url": "https://example.com/page",
"verified": true
}
],
"id": "a1b2c3d4",
"interestedCount": 12500,
"isCanceled": true,
"isOnline": true,
"isPast": true,
"latitude": 37.7749,
"locationName": "Example title",
"longitude": -122.4194,
"name": "Example title",
"placeId": "a1b2c3d4",
"privacy": "example",
"rsvpStyle": "example",
"startTime": "2024-01-15T09:30:00Z",
"startTimeFormatted": "2024-01-15T09:30:00Z",
"startTimestamp": 42,
"url": "https://example.com/page"
},
"found": true,
"reason": "not_found"
}interface FacebookEventDetailsResponse {
data: {
address?: string;
attendanceCount?: number;
canViewMembers?: boolean;
city: string;
cityId?: string;
coverPhotoUrl: string;
creatorId?: string;
creatorName?: string;
dayTimeSentence: string;
description: string;
duration?: string;
endTime: string;
eventKind?: string;
goingCount: number;
hostContextText?: string;
hostNames?: string[];
hosts?: {
id?: string;
image?: string;
name?: string;
type?: string;
url?: string;
verified?: boolean;
}[];
id: string;
interestedCount: number;
isCanceled: boolean;
isOnline: boolean;
isPast?: boolean;
latitude?: number;
locationName: string;
longitude?: number;
name: string;
placeId?: string;
privacy?: string;
rsvpStyle?: string;
startTime: string;
startTimeFormatted?: string;
startTimestamp?: number;
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.event_details \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"4045709448982422"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| id | string | "4045709448982422"O identificador numérico do evento. |
| url | string | A URL do evento no Facebook. |
| Resposta | ||
| data | object | |
| data.address | string | Street address of the event venue. |
| data.attendanceCount | integer | Number of people Facebook reports as attending. |
| data.canViewMembers | boolean | Whether the event's member list is publicly viewable. |
| data.city | string | Populated whenever the provider has data for the entity. |
| data.cityId | string | Numeric Facebook id of the event's city page, as a string. |
| data.coverPhotoUrl | string | Populated whenever the provider has data for the entity. |
| data.creatorId | string | Numeric Facebook id of the event's creator, as a string. |
| data.creatorName | string | Display name of the event's creator. |
| data.dayTimeSentence | string | Populated whenever the provider has data for the entity. |
| data.description | string | Populated whenever the provider has data for the entity. |
| data.duration | string | Human-readable event duration, e.g. "2 days". |
| data.endTime | string | |
| data.eventKind | string | Event kind Facebook reports, e.g. "PUBLIC_TYPE". |
| data.goingCount | integer | |
| data.hostContextText | string | Host line Facebook shows for the event, e.g. "Event by Kansas Comic Con". |
| data.hostNames | string[] | Names of the event's hosts. |
| data.hosts | object[] | Pages or profiles hosting the event. |
| data.hosts[].id | string | Numeric Facebook id of the host, as a string. |
| data.hosts[].image | string | Profile picture URL of the host. |
| data.hosts[].name | string | Display name of the host. |
| data.hosts[].type | string | Kind of Facebook entity the host is, e.g. "User" or "Page". |
| data.hosts[].url | string | Canonical Facebook URL of the host. |
| data.hosts[].verified | boolean | Whether the host carries a Facebook verification badge. |
| data.id | string | Populated whenever the provider has data for the entity. |
| data.interestedCount | integer | |
| data.isCanceled | boolean | |
| data.isOnline | boolean | |
| data.isPast | boolean | Whether the event has already finished. |
| data.latitude | number | Latitude of the event venue. |
| data.locationName | string | Populated whenever the provider has data for the entity. |
| data.longitude | number | Longitude of the event venue. |
| data.name | string | Populated whenever the provider has data for the entity. |
| data.placeId | string | Numeric Facebook id of the event's place, as a string. |
| data.privacy | string | Privacy setting of the event, e.g. "public". |
| data.rsvpStyle | string | RSVP style of the event, e.g. "PUBLIC_RSVP_STYLE". |
| data.startTime | string | |
| data.startTimeFormatted | string | Human-readable start time Facebook shows, e.g. "Sat, Oct 31 - Nov 1". |
| data.startTimestamp | integer | UTC epoch timestamp in seconds (Unix time) the event starts. Multiply by 1000 for a JS Date in milliseconds. |
| data.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 Detalhes do evento da API para Facebook
O endpoint Detalhes do evento da AnyAPI para Facebook retorna dados de Facebook em JSON normalizado com uma chamada POST para /v1/run/facebook.event_details. Obtenha os detalhes completos de um evento do Facebook por ID ou URL (nome, programação, local, organizadores 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, 98,7% das chamadas ao endpoint Detalhes do evento da API para Facebook feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 1,7 segundos, em 149 chamadas medidas.