GET /v1/facebook/event_details

Facebook event API: name, time and place of an event by id

Returns one public Facebook event as FacebookEvent: name, description, start and end time, place and URL. Send the event id or URL as event. Facebook answers an unknown id with a page that reads as a block, so take ids from the page events API or the events search API.

Price
$0.0005 per call
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/facebook/event_details?event=298448234317243' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/facebook/event_details",
    params={
        "event": "298448234317243",
    },
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Parameters

NameInTypeDescription
event requiredquerystringAn event’s numeric id or https://www.facebook.com/events/<id> URL. Example 298448234317243.
cached queryauto | cache_only | liveauto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts Facebook (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. Default auto.
get_raw querybooleanNot available on this operation: the upstream document is an HTML page, and true answers 400. The default false returns the normalized type. Default false.

Example response

The example response of the API reference.

json
{
  "data": {
    "id": "298448234317243",
    "name": "Shoot The Style. VOGUE X NIKE",
    "description": null,
    "url": "https://www.facebook.com/events/298448234317243/",
    "starts_at": "2018-09-21T14:00:00+00:00",
    "ends_at": null,
    "timezone": null,
    "location_name": "Carrer de l'Atlàntida, 78, 08003 Barcelona (Barcelona), Espanya",
    "address": null,
    "lat": null,
    "lng": null,
    "host": null,
    "going": null,
    "interested": null,
    "is_online": false
  },
  "meta": {
    "source": "live",
    "fetched_at": "2026-10-27T20:35:49.505600+00:00",
    "cost": "$0.0005",
    "balance": "$9.9995",
    "request_id": "req_ce091767ee86ba9038d4bd60dc4443b0"
  }
}

How it works

One event by id or URL. Facebook answers an unknown event id with a generic page that reads as a block, so take ids from /v1/facebook/profile_events or /v1/facebook/events_search. Returns FacebookEvent under data; the upstream document is an HTML page, so get_raw is not available.

A field Facebook does not carry is null, a list it does not carry is [], and Facebook-only facts sit under extra. Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
404cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the Facebook account or item does not exist (not_found). You are not charged.
429Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged.
502The upstream fetch failed. You are not charged.
503Billing could not be confirmed, so no upstream data was returned.
504The upstream request timed out. You are not charged.