Page events
The upcoming or past events a Facebook Page hosts, with dates, venue and address, organizers, ticket link and responses.
Try it in the dashboard 100 free credits when you sign up, no card.
GET/v1/facebook/events
Costs 1 credit per request. Only requests that return data are charged.
Parameters
| Name | Type | Description |
|---|---|---|
pagerequired |
string | The Page's username (TheGarden), its numeric id, or its URL (https://www.facebook.com/TheGarden). |
whenoptional |
string | Which of the Page's events: upcoming (the next ones first) or past (the most recent first). One of: upcoming, past. Default: upcoming. |
limitoptional |
integer | How many events to return. Default: 5. From 1 to 5. |
Example request
curl "https://pipefetch.com/v1/facebook/events?page=TheGarden" \
-H "x-api-key: YOUR_API_KEY"const res = await fetch('https://pipefetch.com/v1/facebook/events?page=TheGarden', {
headers: { 'x-api-key': process.env.PIPEFETCH_API_KEY },
});
const { data, credits } = await res.json();import os, requests
res = requests.get(
"https://pipefetch.com/v1/facebook/events",
params={"page": "TheGarden"},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
)
data = res.json()["data"]Example response
A real answer to the request above. Long texts and lists are shortened here, and the people who wrote comments, reviews or posts are replaced by a stand-in.
{
"data": {
"events": [
{
"id": "1077493758527359",
"url": "https://www.facebook.com/events/1077493758527359/",
"name": "Stevie Wonder Songs in The Key of Life Performances 50th Anniversary",
"description": "PLEASE NOTE: Pricing is all-in and includes fees (before taxes if applicable). By purchasing tickets to this event, you agree to abide by the health a…",
"externalLinks": [
"http://msg.com/"
],
"categories": [
"Music & audio"
],
"startDate": "2026-11-20T01:00:00.000Z",
"endDate": null,
"dateText": "Thursday, November 19, 2026 at 8:00 PM EST",
"timezone": "EST",
"isPast": false,
"isCanceled": false,
"isOnline": false,
"place": {
"id": null,
"name": "Madison Square Garden",
"url": null,
"street": null,
"address": "Sun & Ren, 225 W 34th St, New York, NY 10119, United States",
"city": "New York, New York",
"cityId": "108424279189115",
"latitude": 40.750513547361,
"longitude": -73.992893513651
},
"hostedBy": "Event by Madison Square Garden, Live Nation Concerts and Stevie Wonder",
"organizers": [
{
"id": "100064834536765",
"name": "Madison Square Garden",
"url": "https://www.facebook.com/TheGarden",
"isVerified": true
},
{
"id": "100064501372099",
"name": "Live Nation Concerts",
"url": "https://www.facebook.com/LiveNation",
"isVerified": true
}
],
"performers": [
{
"id": "100044628930292",
"name": "Stevie Wonder",
"url": "https://www.facebook.com/StevieWonder"
}
],
"ticketUrl": "https://www.ticketmaster.com/stevie-wonder-songs-in-the-key-new-york-new-york-11-19-2026/event/3B0064C5A0CF3D01",
"ticketProvider": "Ticketmaster",
"respondedCount": 1854,
"coverImageUrl": "https://scontent-lga3-3.xx.fbcdn.net/v/t39.99422-6/793351424_1665028115228782_655994658813170513_n.png?stp=dst-jpg_tt6&cstp=mx1200x628&ctp=s1200x628&_…",
"eventType": "public",
"frequency": "SINGLE",
"recurringDateCount": 0,
"nameChanged": false,
"dateChanged": false
},
{
"id": "2279489732811493",
"url": "https://www.facebook.com/events/2279489732811493/",
"name": "New York Knicks vs. Portland Trail Blazers",
"description": "Pre-sale codes may not be purchased or transferred. Purchases must be made using the pre-sale code during the applicable pre-sale period; service char…",
"externalLinks": [
"http://nba.com/knicks/tickets/fan-first"
],
"categories": [
"Sports"
],
"startDate": "2026-11-22T00:30:00.000Z",
"endDate": null,
"dateText": "Saturday, November 21, 2026 at 7:30 PM EST",
"timezone": "EST",
"isPast": false,
"isCanceled": false,
"isOnline": false,
"place": {
"id": "28859306498",
"name": "Madison Square Garden",
"url": "https://www.facebook.com/TheGarden",
"street": "4 Pennsylvania Plaza",
"address": "4 Pennsylvania Plaza, New York, NY 10001",
"city": "New York",
"cityId": "108424279189115",
"latitude": 40.750513547361,
"longitude": -73.992893513651
},
"hostedBy": "Event by New York Knicks, NBA and Madison Square Garden",
"organizers": [
{
"id": "100044565513814",
"name": "New York Knicks",
"url": "https://www.facebook.com/NYKnicks",
"isVerified": true
},
{
"id": "100044399530411",
"name": "NBA",
"url": "https://www.facebook.com/nba",
"isVerified": true
}
],
"performers": [
{
"id": "100044565513814",
"name": "New York Knicks",
"url": "https://www.facebook.com/NYKnicks"
},
{
"id": "100044348953031",
"name": "Portland Trail Blazers",
"url": "https://www.facebook.com/trailblazers"
}
],
"ticketUrl": "https://www.ticketmaster.com/new-york-knicks-vs-portland-trail-new-york-new-york-11-21-2026/event/3B006511E9208636",
"ticketProvider": "Ticketmaster",
"respondedCount": 79,
"coverImageUrl": "https://scontent-lga3-3.xx.fbcdn.net/v/t39.99422-6/778972304_1555506819639034_9115763402527323502_n.png?stp=dst-jpg_tt6&cstp=mx2048x1152&ctp=s2048x115…",
"eventType": "public",
"frequency": "SINGLE",
"recurringDateCount": 0,
"nameChanged": true,
"dateChanged": false
}
]
},
"credits": {
"used": 1,
"remaining": 99
}
}Good to know
- A request returns at most 5 events: the next ones first for upcoming, the most recent first for past. There is no paging beyond them.
- startDate and endDate are in UTC, and endDate is null when the event states no end time. dateText is the date as Facebook writes it, in the event's own time zone.
- respondedCount is the number of people who answered Going or Interested. The split between the two and the guest list are not included.
- coverImageUrl is Facebook's own signed link and stops working after a while. Download what you want to keep.
- A Page that does not exist answers 404 page_not_found, and one that shows no events of the kind asked for answers 404 no_events. Neither costs anything.
Errors
Every error has the same shape, and none of them is charged. The full list is in the error reference.
Looking for an overview and use cases? See the Facebook Events API page.