# Facebook Event details API (facebook.event_detail)

- Canonical page: [https://everyinfra.com/en/facebook-api/event_detail](https://everyinfra.com/en/facebook-api/event_detail?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "facebook", "action": "event_detail", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=facebook&action=event_detail

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | 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. |

## Response fields (items in `results`)

| 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). |

## Example

```bash
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/"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "facebook",
        "action": "event_detail",
        "params": {
            "url": "https://www.facebook.com/events/1427648265972246/",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "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": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=facebook
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
