Getting past and present events

480 views
Skip to first unread message

Anton

unread,
Feb 29, 2016, 2:37:41 AM2/29/16
to Eventbrite API
Hello there!

We're developing a site using the Eventbrite API. On our site, we have a few different pages each showing different events we have fetched from Eventbrite. Currently, we use the events/search method of getting the events, and as parameters in the GET call we pass the organizer.id and event format. For all these pages the organizer is the same, but the event format is different. In other words, we use the format to filter which events should be shown on each page. The problem with this method is that it won't let us show past events (events/search only return upcoming events). We know that getting every event for a user (users/me/owned_events/) will return both past and present events, but this will not let us filter by format. What we want is simply: Get every event (past and upcoming) for an organizer (or user) of a given format. How can this be achieved?

Eventbrite API

unread,
Feb 29, 2016, 12:54:06 PM2/29/16
to Eventbrite API
Hi Anton,

You are right that the events/search endpoint will not return events which do not have tickets on sale which all past events are. But you can over ride that behavior by using the date parameters. You could even use the since_id parameter. Check out the docs, specifically the events/search date parameters and let us know if you are still having trouble getting the events that you need.

baron.f...@gmail.com

unread,
Mar 2, 2016, 7:02:10 AM3/2/16
to Eventbrite API
Hey, thanks for the tip, but so far I have not gotten this to work. Here's what I've tried:

https://www.eventbriteapi.com/v3/users/me/owned_events/?token={mytoken}
This returns 105 events, which is what I want to do through event/search


https://www.eventbriteapi.com/v3/events/search/?token={mytoken}&user.id={myuserid}
This returns 5 events which are all upcoming. No past events.

https://www.eventbriteapi.com/v3/events/search/?token={mytoken}&user.id={myuserid}&date_created.range_start=1900-01-01T00:00:00Z
This returns 5 events which are all upcoming. No past events.

https://www.eventbriteapi.com/v3/events/search/?token={mytoken}&user.id={myuserid}&since_id={myfirsteventid}
This returns 5 events which are all upcoming. No past events.

https://www.eventbriteapi.com/v3/events/search/?token={mytoken}&user.id={myuserid}&start_date.range_start=1900-01-01T00:00:00Z
This returns 5 events which are all upcoming. No past events.

Am I doing something wrong?

caddy...@gmail.com

unread,
Jun 14, 2016, 2:23:21 AM6/14/16
to Eventbrite API
Hello,

I am also facing this issue, I want to show a monthly archive of events owned by me. Please let me know how can i do that ??

Eventbrite API

unread,
Jun 14, 2016, 12:59:00 PM6/14/16
to Eventbrite API
Hi There,

The events/search endpoint now has a 'include_unavailable_events' parameter. That parameter paired with 'organizer.id' and 'formats' should be what you need. 

caddy...@gmail.com

unread,
Jun 15, 2016, 1:29:58 AM6/15/16
to Eventbrite API

Thanks for the quick response, i used below query, can you explain me how
to get format and still its not showing this months past events.

https://www.eventbriteapi.com/v3/events/search/?organizer.id=XXXXXXX&formats=1,2&include_unavailable_events=on&token=XXXXXXX

here i used formats that i found on internet, don't know what exact value
they will get, my concern is to show past events monthwise but it still
shows upcoming events ( by start date not created date)

Any help highly appriciated

Malina Wiesen

unread,
Jun 15, 2016, 2:07:48 PM6/15/16
to Eventbrite API
Hi Caddy,

Your formats should be sent as a comma delimited string. For example, "1,2" 

And you will want to use the boolean value of true to include unavailable events rather than 'on.' 

I hope that helps and let us know if you need further assistance.

Best,
Malina

dify...@gmail.com

unread,
Jul 20, 2016, 8:34:47 AM7/20/16
to Eventbrite API

Akil Burgess

unread,
Sep 11, 2016, 2:14:33 PM9/11/16
to Eventbrite API
Hello,

Was there a solution to this one? @EventbriteAPITeam - can you let us know the endpoint and query params we can use to get all (past and present) events for an organizer using an anonymous token?

Many thanks

arkk...@gmail.com

unread,
Nov 24, 2017, 10:56:21 AM11/24/17
to Eventbrite API
Hi, It's not working yet the include_unavailable_events param?
I'm trying to use it but I get the same result

Hernán Cussi

unread,
Nov 26, 2017, 8:16:18 PM11/26/17
to Eventbrite API
Hello there, to get all the events from an organizer you could use:


That will return 3 past events

Thanks


Reply all
Reply to author
Forward
0 new messages