Facebook API

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"
The response

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
200 OK · application/json
{
  "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
  }
}
Reference

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

NameTypeDescription
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.

Open the reference

Use cases

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.

Pricing

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.

5,000credits a month
5005,00050,000250,000
5,000requests at 1 credit
2,500requests at 2 credits

Each endpoint says what a request costs. Requests that return nothing are free.

Best fit
Builder pack
12,000 credits, one-time payment
$29once
  • $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
Start with 100 free credits

See all packs and what a credit buys

FAQ

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.

Guides

Step-by-step guides

More

More Facebook APIs

Also on the same key

Other sources

Make your first request in a minute

Sign in, copy your key and call an endpoint. Your account starts with 100 free credits.