Introducing Yelp Events Data to Our Developer APIs
-
Tomer Elmalem, Software Engineer
- Sep 6, 2017
Starting today, Yelp Events data will be available through our Fusion API and GraphQL API to provide rich, local events data in our API as part of our developer beta program. Since launching Yelp Fusion last September, we’ve seen developers use our business data in unique and interesting ways and are excited to see what our developer community will do with the addition of events data.
If you’re not already familiar, Yelp Events is a place where you can create, share and discover upcoming events happening worldwide. Events range from everything from beer festivals to art shows to Shakespeare in the Park.
The Events API will give you access to all of our event listings (current and historical) in the US and internationally (where available) with information on costs, locations, descriptions, associated businesses, venues, and more. You’ll be able to pull events in three different ways:
Searching the Yelp Events database allows you to access a number of different parameters (category, date, time, location, etc.) to see what’s happening near you. This is the easiest way to explore and discover what’s happening in specific locations.
GET https://api.yelp.com/v3/events
We also have a group of Community Managers who organize local Yelp events in their areas that we often feature on the Yelp Events page. We’ll be exposing an endpoint to retrieve this data so that you’ll be able to pull the featured event data for any given location.
GET https://api.yelp.com/v3/events/featured
Lastly, for cases where you might save event ids for your users, event lookup will allow you to pull information on a specific event to give them quick and easy access to that information.
GET https://api.yelp.com/v3/events/{id}
Along with the regular endpoints, this will also be rolling out for GraphQL so that you will also have the ability to load the business data associated with each event, where possible:
{ events(location: "San Francisco") { name location business { name url } } }
To get started, register for an API key on our developer site and make sure to join our beta program!