Facebook Page Events API
This API lists the upcoming and past events hosted by a public Facebook page. It needs the page link in url and returns each event's name, schedule text, start time, venue name, city, and host.
Use cases
- Build a calendar of upcoming events for a venue or promoter page.
- Track when a competitor's page schedules new events or cancels existing ones.
- Collect event links for a list of local venues, then pull full details for each event.
- Check whether a page's events are online or at a physical place.
Request
curl -X POST "https://api.sandbase.ai/v1/api/facebook/profile-events" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.facebook.com/brickyardoldtown"}'
The result is returned in outputs[0].data.
Parameters
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"events": [
{
"city": "Wichita",
"creatorName": "Public at the Brickyard",
"dayTimeSentence": "Tue, Nov 17 - Nov 30",
"id": "1324020146405525",
"isCanceled": false,
"isOnline": true,
"isPast": false,
"name": "The Jingle Returns to Public!",
"placeName": "Public at the Brickyard",
"startTimestamp": 1794956400,
"url": "https://www.facebook.com/events/1324020146405525/"
}
],
"hasNextPage": false,
"nextCursor": "cur_iay97_cKG9azuqBjh6QcbQ",
"totalCount": 2
},
"found": true
}
Response fields
Notes
- Pass the page link in
url. Links to a single event, group, reel, video, or search page are refused as invalid input.
- To get the next page of events, send
nextCursor as cursor in a new request. Do this when hasNextPage is true.
- Use Facebook Event Details with an event
url to read one event in full.
Pricing
Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.