Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am not getting address of event in Eventbrite API search respose

Tags:

eventbrite

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.

like image 792
S.Jain Avatar asked Jan 07 '23 08:01

S.Jain


2 Answers

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

like image 152
Mayank Jain Avatar answered Mar 02 '23 01:03

Mayank Jain


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" }

like image 42
Erics Avatar answered Mar 02 '23 00:03

Erics