Facebook Events API
Send a Page's username or URL and get the events it hosts back as JSON: when each one starts, where it takes place, who organizes it, where tickets are sold and how many people responded.
- 100 free credits
- No card needed
- No scraper to build or maintain
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"]What you get
- Up to 5 events of the Page: the next upcoming ones first, or the most recent past ones
- Name, description, categories, the start time in UTC, and the date as Facebook writes it in the event's own time zone
- The venue: name, street, full address, city and coordinates
- Every organizer with id, link and verified badge, and the performers Facebook links to the event
- The ticket link, with the seller's name when Facebook gives one
- How many people responded, the cover image, and whether the event is past, canceled or online
{
"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
}
}One GET request
Everything the endpoint accepts. The full reference, with the complete example response, is in the docs.
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. |
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.
What people build with it
Event calendars
Keep a calendar of what the venues and organizers you follow have coming up.
Venue tracking
See what a venue has on next and how many people responded to each event.
Local guides
Add the next events of local venues to a guide, with addresses and coordinates for a map.
Ticketing research
See which ticket seller each event of a venue or a promoter links to.
Buy credits once. Use them whenever.
This endpoint costs 1 credit per request, and a request that returns no data costs nothing. Move the slider to see what your volume costs.
Each endpoint says what a request costs. Requests that return nothing are free.
- $2.42 per 1,000 credits
- About $12.08 a month at this pace
- Lasts about 2.4 months at this pace
- Credits never expire
Questions and answers
Is this the official Facebook API?
No. Pipefetch is an independent service and is not affiliated with Facebook or Meta. It returns the events a Page lists for a visitor who is not logged in. You need one Pipefetch API key. There is no Facebook login, no cookie, no access token and no Meta app.
How many events can I get?
Up to 5 per request: the next 5 upcoming events, or the 5 most recent past ones with when=past. There is no paging beyond them and no date range.
Does it return who is going?
No. You get respondedCount, the number of people who answered Going or Interested. The guest list and the split between going and interested are not included.
Can I search events by keyword or city?
No. This endpoint returns the events of one Page. Keyword search, city event feeds and single event links are not available.
What if a Page has no events?
A Page that shows no events of the kind you asked for answers 404 no_events, and a Page that does not exist answers 404 page_not_found. Neither is charged.
What does a request cost?
One request costs 1 credit. Credit packs start at $9 for 3,000 credits, never expire, and a request that returns no data is not charged. New accounts get 100 free credits without a card.
Does the answer contain personal data?
It can. An organizer or a performer can be a person and not a Page, and then the name and profile link are personal data. If you store or process it, data-protection law such as the GDPR applies to you as it would to any other source, and our terms forbid using the API to harass people or to build profiles of private individuals.
Step-by-step guides
More Facebook APIs
-
1 credit / 20
Facebook Comments API
The comments on a public Facebook post, video or Reel, with reactions by type, reply counts, authors and the post itself.
GET /v1/facebook/comments -
1 credit
Facebook Reels API
The newest Reels of a Facebook Page with plays, reactions, comments, shares and saves, captions and video file addresses.
GET /v1/facebook/reels -
1 credit
Facebook Reviews API
The newest reviews of a Facebook Page: text, recommends or not, date and reviewer, with the Page's recommend percentage.
GET /v1/facebook/reviews -
2 credits
Facebook Page API
The public details of a Facebook Page: category, followers, email, phone, website, address, social links and pictures.
GET /v1/facebook/page -
2 credits
Facebook Posts API
The newest posts of a Facebook Page with text, images, reactions by type, comment and share counts, and top comments.
GET /v1/facebook/posts -
2 credits
Facebook Group Posts API
The newest posts of a public Facebook group with author, text, images, links, reactions by type and top comments.
GET /v1/facebook/group -
1 credit
Facebook Marketplace API
Facebook Marketplace listings for a search near a place: title, price, city, listing time, photo, seller and delivery.
GET /v1/facebook/marketplace
Other sources
YouTubeInstagramWebsitesTikTokGoogleThreadsLinkedInApp storesSteamXPinterestAirbnbReal estateKeywordsJob boardsEventbriteShopify storesPublic tenders
Make your first request in a minute
Sign in, copy your key and call an endpoint. Your account starts with 100 free credits.