API · Facebook
GET /facebook/events/city
The events a city’s Facebook events page shows (logged out).
| Request | GET /v1/facebook/events/city |
| Operation id | facebook.event.city |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
The events a city’s Facebook events page shows (logged out).
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | yes | The city’s events page URL. Example: https://www.facebook.com/events/explore/us-new_york/108424279189115/. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Events in the city. | FacebookCityEvents |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The ad, Page or advertiser is not in the Meta Ad Library. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Facebook is temporarily unavailable. Retryable; nothing was charged. | Error |
FacebookCityEvents fields
| Field | Type | Description |
|---|---|---|
events | FacebookCityEvent[] |
Errors use one shape everywhere; see Errors for every code and what to do.