API para Facebook

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.

POST/v1/run/facebook.event_details
Disponibilidade
98,66%
30d · 149 chamadas
Requisições
151
30d
Resposta
1,7s
mediana · 30d

Preços

Um preço, em dólares

Teste

Faça sua primeira requisição

Abrir em
Obter chave grátis
Resposta de exemplo
Execuções grátis retornam só os primeiros 3 resultados. Recarregue uma chave para receber a resposta completa.
{
  "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 da resposta
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 30d
POST /v1/run/facebook.event_details
curl -X POST https://api.getanyapi.com/v1/run/facebook.event_details \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"4045709448982422"}'
CampoTipoValor de exemplo
Corpo da requisição
idstring"4045709448982422"O identificador numérico do evento.
urlstringA URL do evento no Facebook.
Resposta
dataobject
data.addressstringStreet address of the event venue.
data.attendanceCountintegerNumber of people Facebook reports as attending.
data.canViewMembersbooleanWhether the event's member list is publicly viewable.
data.citystringPopulated whenever the provider has data for the entity.
data.cityIdstringNumeric Facebook id of the event's city page, as a string.
data.coverPhotoUrlstringPopulated whenever the provider has data for the entity.
data.creatorIdstringNumeric Facebook id of the event's creator, as a string.
data.creatorNamestringDisplay name of the event's creator.
data.dayTimeSentencestringPopulated whenever the provider has data for the entity.
data.descriptionstringPopulated whenever the provider has data for the entity.
data.durationstringHuman-readable event duration, e.g. "2 days".
data.endTimestring
data.eventKindstringEvent kind Facebook reports, e.g. "PUBLIC_TYPE".
data.goingCountinteger
data.hostContextTextstringHost line Facebook shows for the event, e.g. "Event by Kansas Comic Con".
data.hostNamesstring[]Names of the event's hosts.
data.hostsobject[]Pages or profiles hosting the event.
data.hosts[].idstringNumeric Facebook id of the host, as a string.
data.hosts[].imagestringProfile picture URL of the host.
data.hosts[].namestringDisplay name of the host.
data.hosts[].typestringKind of Facebook entity the host is, e.g. "User" or "Page".
data.hosts[].urlstringCanonical Facebook URL of the host.
data.hosts[].verifiedbooleanWhether the host carries a Facebook verification badge.
data.idstringPopulated whenever the provider has data for the entity.
data.interestedCountinteger
data.isCanceledboolean
data.isOnlineboolean
data.isPastbooleanWhether the event has already finished.
data.latitudenumberLatitude of the event venue.
data.locationNamestringPopulated whenever the provider has data for the entity.
data.longitudenumberLongitude of the event venue.
data.namestringPopulated whenever the provider has data for the entity.
data.placeIdstringNumeric Facebook id of the event's place, as a string.
data.privacystringPrivacy setting of the event, e.g. "public".
data.rsvpStylestringRSVP style of the event, e.g. "PUBLIC_RSVP_STYLE".
data.startTimestring
data.startTimeFormattedstringHuman-readable start time Facebook shows, e.g. "Sat, Oct 31 - Nov 1".
data.startTimestampintegerUTC epoch timestamp in seconds (Unix time) the event starts. Multiply by 1000 for a JS Date in milliseconds.
data.urlstringPopulated whenever the provider has data for the entity.
foundboolean
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çãoUSDUS$ 0,0012
Preço /mil req.USDUS$ 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.

Custa a partir de US$ 1,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Você recarrega uma carteira em dólares e cada chamada desconta dela. Algumas requisições pagas pela carteira que falham geram cobranças de processamento, que repassamos pelo custo, sem margem; a resposta de erro mostra o valor cobrado.

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 resposta é JSON normalizado, com o mesmo envelope que todo endpoint da AnyAPI retorna, então processar um segundo endpoint é só trocar a URL, e nada mais.

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. Estas são medições da própria AnyAPI sobre o tráfego que passa pelo gateway, recalculadas continuamente, e não uma meta de nível de serviço publicada.