# Facebook Event API

Get one public Facebook event by its numeric id: name, cancelled, online and past flags, start, end and creation timestamps, the place node with latitude, longitude and reverse geocode, the cover image, RSVP counts for interested, going and maybe, and up to three related events with joinable ids. RSVP counts are absent rather than zero on events with no attendance, and are returned as null. An event About tab is not available to a signed-out client and is not exposed.

- **Documentation:** [https://scrappa.co/docs/facebook-api/facebook_event](https://scrappa.co/docs/facebook-api/facebook_event)
- **API group:** Facebook API
- **Endpoint:** `GET https://scrappa.co/api/facebook/event`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `event_id` | string | Yes | Facebook event numeric id (e.g. 3304701543049439). |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/facebook/event?event_id=3304701543049439"
```

## Example response

```json
{
    "success": true,
    "event": {
        "id": "3304701543049439",
        "name": "Event Name",
        "is_canceled": false,
        "is_online": false,
        "is_past": false,
        "start_timestamp": 1790872565,
        "end_timestamp": 1790879765,
        "creation_timestamp": 1780000000,
        "place": {
            "name": "Venue Name",
            "place_id": "100000000000000",
            "latitude": 28.387,
            "longitude": -80.604,
            "city": "Cape Canaveral",
            "state": "Florida",
            "country": "United States"
        },
        "cover_image": {
            "uri": "https://...",
            "width": 1920,
            "height": 1080
        },
        "rsvp": {
            "interested": 361,
            "going": 44,
            "maybe": null
        },
        "related_events": [
            {
                "id": "3304701543049440",
                "name": "Related Event",
                "start_timestamp": 1790900000
            }
        ]
    },
    "meta": {
        "classification": "ok",
        "billable": true,
        "endpoint_family": "facebook_event",
        "duration_ms": 6800
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter is missing or malformed, for example a handle with characters Facebook does not allow or a non-numeric id. |
| 404 | Not Found | The page, profile, group, event, photo, reel, post or listing does not exist, is not public, or was served by Facebook without the requested record. This is the truthful answer, not a temporary fault: it is never billed and retrying the same permalink will not change it. |
| 503 | Records Not Read | Facebook returned records for this request that the parser could not read. The origin status is 502 and it is reported here as 503 because Cloudflare replaces 502 and 504 bodies with its own page. This request is never billed: the customer received no data. |
| 503 | Temporarily Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
