javascriptapieventbrite

How do I query all events in a specific city with a specific date using Eventbrite Api?


Basically I am trying to query all events happening today and tomorrow in the current user's city using the eventBrite API. The language is Javascript. I am confused as I can use a GET request to the URL below to query all events.

https://www.eventbriteapi.com/v3/events/search?token=MYTOKEN

I am however confused as to how include the specific city of interest and the start date of the event in the query.

Thanks in advance !


Solution

  • You need to set the location.address parameter. You can find it in the documentation here: https://www.eventbrite.com/developer/v3/endpoints/events/#ebapi-get-events-search

    For example: GET /v3/events/search/?location.address=CITY&token=MYTOKEN

    **Note be sure you include the / after search.