Facebook Page events API
The events on a Facebook Page’s Events tab: name, when, venue, host and image, as Facebook shows a logged-out visitor.
GET /v1/facebook/pages/{page}/eventsBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/facebook/pages/riverstreetjazzcafe/events",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "events": [ { "id": "1649516750156210", "name": "TOM PETTY APPRECIATION BAND -w/Joe Burke", "url": "https://www.facebook.com/events/1649516750156210/", "day_time_sentence": "Fri, Nov 27 at 8:30 PM EST", "is_canceled": false, "event_place": { "__typename": "FreeformPlace", "contextual_name": "667 N River St, Plains, PA", "location": { "reverse_geocode": { "city": "Wilkes-Barre" } }, "__isNode": "FreeformPlace", "id": "1735520278576672" }, "event_creator": { "__typename": "User", "__isEntity": "User", "url": "https://www.facebook.com/riverstreetjazzcafe", "name": "River Street Jazz Cafe", "id": "100063561491454" }, "image": "https://scontent-atl3-1.xx.fbcdn.net/v/t39.30808-6/850305393_1735520408576659_7787654639296658701_n.jpg?stp=c0.646.1320.…", "__typename": "Event", "gif_cover_photo": null, "cover_video": null, "__isEntity": "Event" }, { "id": "1693362465741211", "name": "THE THROWBACK/ A 90’s-2000’s party!", "url": "https://www.facebook.com/events/1693362465741211/", "day_time_sentence": "Sat, Nov 28 at 7:00 PM EST", "is_canceled": false, "event_place": { "__typename": "FreeformPlace", "contextual_name": "667 N River St, Plains, PA", "location": { "reverse_geocode": { "city": "Wilkes-Barre" } }, "__isNode": "FreeformPlace", "id": "1735533495242017" }, "event_creator": { "__typename": "User", "__isEntity": "User", "url": "https://www.facebook.com/riverstreetjazzcafe", "name": "River Street Jazz Cafe", "id": "100063561491454" }, "image": "https://scontent-atl3-2.xx.fbcdn.net/v/t39.30808-6/850992002_1735533581908675_36148111732735842_n.jpg?stp=c0.646.1320.91…", "__typename": "Event", "gif_cover_photo": null, "cover_video": null, "__isEntity": "Event" }, "… 6 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
pagepath · required | string | Page URL, vanity name or numeric id. Example: riverstreetjazzcafe. |
Response fields
200 with a FacebookPageEvents, in Facebook’s own JSON.
| Field | Type | Description |
|---|---|---|
events | FacebookPageEvent[] |
Status codes
| Status | Meaning |
|---|---|
200 | The Page’s events. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The ad, Page or advertiser is not in the Meta Ad Library. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Facebook is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Facebook is a trademark of Meta Platforms, Inc. We are not affiliated with or endorsed by Meta.