4

I am using Eventbrite API to search events around me and to locate them on map,but I am unable to get the address information in search response.

S.Jain
  • 51
  • 3

3 Answers3

7

Add one more param in your request like below:-

https://www.eventbriteapi.com/v3/events/search/?location.address=Indore&expand=organizer,venue&token=MY_EVENTBRITE_TOKEN

Mayank Jain
  • 5,663
  • 7
  • 32
  • 65
2

In your event search responses you should find a "venue_id" field.

You will then need to make another call to the API to get the venue details:

For example: https://www.eventbriteapi.com/v3/venues/VENUE_ID/?token=YOUR_OAUTH_TOKEN

Returns ..

{ "address":{ "address_1":"101 foobar st", "address_2":null, "city":"Sydney", "region":"NSW", "postal_code":"2000", "country":"AU", "latitude":"-33.8737891", "longitude":"151.213161", "localized_address_display":"101 foobar st, Sydney, NSW 2000", "localized_area_display":"Sydney, NSW", "localized_multi_line_address_display":[ "101 foobar st", "Sydney, NSW 2000" ] }, "resource_uri":"https://www.eventbriteapi.com/v3/venues/25210646/", "id":"25210646", "age_restriction":null, "capacity":null, "name":"Sydney", "latitude":"-33.8737891", "longitude":"151.213161" }

Erics
  • 803
  • 9
  • 23
0

You can customize the request as per your way!

For Helpful: https://www.eventbrite.com/developer/v3/quickstart/

By latitude,longitude,within:

https://www.eventbriteapi.com/v3/events/search/?location.latitude=23.06&location.longitude=72.53&location.within=100km&token= Your_personal_OAuth_token