Facebook Event details API
API health
- 24h health
- Normal
- Healthy / normal
- Available
Last 24 hours
Last 30 days
Read one public Facebook event from its link or numeric event ID. Get the name, description, start and end time in UTC, the date and length as the page shows them, the venue with address, city and coordinates, online, past and canceled flags, hosts, how many people responded, the ticket link and price when listed, and the cover image. An event that was deleted, is not public or has a wrong ID returns an empty result and is not charged.
Send POST https://api.everyinfra.com/api/v1/social with platform set to facebook and action set to event_detail. Price $0.56 per 1,000 requests ($0.000556 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
AI prompt
#Please help me write a data collection script with the EveryInfra Facebook Event details endpoint (facebook/event_detail).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to facebook and action to event_detail, and put the parameters inside params.
- Required parameters:
- url: One event: an event link (https://www.facebook.com/events/<ID>/, the url of an events_search or page_events row) or the numeric event ID.
- Returns one object. Main fields: id, url, name, description, starts_at (Event start time (events_search, page_e…), ends_at (Event end time (event_detail), date_text (Event time as written on the Facebook p…), duration_text (Event length as written on the page (ev…), place_name (Event venue name or address (events_sea…), place_id (Facebook page ID of the event location…), address, city; 23 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=facebook.
- Example request body:
{
"platform": "facebook",
"action": "event_detail",
"params": {
"url": "https://www.facebook.com/events/1427648265972246/"
}
}
- Price: $0.56 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | facebook | Platform identifier, fixed value. |
action | body | string | Yes | event_detail | Capability identifier, fixed value. |
url | body.params | string | Yes | - | One event: an event link (https://www.facebook.com/events/<ID>/, the url of an events_search or page_events row) or the numeric event ID. An event that was deleted, is not public or has a wrong ID returns 200 with an empty result and is not charged. |
Code samples
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "facebook",
"action": "event_detail",
"params": {
"url": "https://www.facebook.com/events/1427648265972246/"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "id": "req_…", "platform": "facebook", "action": "event_detail", "results": { "id": …, "url": …, "name": …, "description": …, "starts_at": …, "ends_at": …, "date_text": …, "duration_text": …, "place_name": …, "place_id": …, "address": …, "city": …, "latitude": …, "longitude": …, "is_online": …, "is_past": …, "is_canceled": …, "host_name": …, "hosts": …, "responded_count": …, "price_text": …, "ticket_url": …, "image_url": …, "platform": … }, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain. Values the platform does not show are never made up.
| Field | Meaning |
|---|---|
id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
url | Link to the record on the platform. |
name | Name of the object itself, for account, product and business capabilities. |
description | Summary or description, usually shorter than text. |
starts_at | Event start time (events_search, page_events, event_detail; ISO 8601, UTC). |
ends_at | Event end time (event_detail; ISO 8601, UTC), worked out from the date line on the event page; absent when the event lists no end time. |
date_text | Event time as written on the Facebook page (events_search, page_events), such as "Sat, Oct 31 at 8:00 PM CDT"; language and time zone may vary. |
duration_text | Event length as written on the page (event_detail), such as 3 days or 6 hr; absent when the page shows none. |
place_name | Event venue name or address (events_search, page_events); online events may not have one. |
place_id | Facebook page ID of the event location (events_search, page_events, event_detail). |
address | Full address, passed through as is. |
city | City name in the platform's language, not normalized. |
latitude | Latitude: the approximate item location in marketplace_item, the event venue in event_detail (absent for events with no venue). |
longitude | Longitude: the approximate item location in marketplace_item, the event venue in event_detail. |
is_online | Whether the event is online (events_search, page_events, event_detail). |
is_past | Whether the event has already ended (events_search, page_events, event_detail). |
is_canceled | Whether the event is canceled (page_events, event_detail). |
host_name | Name of the page hosting the event (page_events, event_detail); for co-hosted events it may be the partner's page. In event_detail it is the first of hosts. |
hosts | Event hosts (event_detail): each with id and name, plus url, is_verified and avatar_url when present; co-hosted events list several. |
responded_count | Number of people who responded to the event as the page shows it (event_detail): interested and going together, since the page does not split them. |
price_text | Ticket price text as written (events_search, event_detail); absent when the event is free or no price is given. |
ticket_url | Ticket link (event_detail); absent when there is none. |
image_url | Image link. Capabilities with several images may return an image_urls array. |
platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.