Switching from Search to 'Organizations' endpoint - returns no results.

137 views
Skip to first unread message

Jonathan Boss

unread,
Dec 5, 2019, 12:35:37 PM12/5/19
to Eventbrite Developers
So with the announcement that came out today regarding the discontinuing of the /search endpoint, I'm trying to update a feature on a website. It previously used the endpoint to grab all events by an organizer ID anyway, like this:


That request works just fine in my code still - but obviously won't come Thursday. So I changed the request to look like this:

https://www.eventbriteapi.com/v3/organizations/26247323083/events/

I haven't changed anything else about the request - a simple GET to that endpoint. I'm authorizing with an Authorization: Bearer TOKEN header. That header works on the first request above, and appears to work on the second as well.

The problem is that it's simply not pulling my events. The response comes back 200, the format is there - but the events array is empty. I know I have events that should pull here - as the first request returns them, and that also tells me the ID is correct. I looked at the documentation and this looks like the right endpoint. So why would it not be pulling my events? Am I missing something? 

Thanks a lot in advance for any help.

Barrett Cook

unread,
Dec 5, 2019, 1:01:36 PM12/5/19
to Eventbrite Developers
It looks like you're passing an organizer_id to the /organizations/ endpoint instead of an organization_id.

If you look at the response object from /events/search, you'll see both an organizer_id and an organization_id. You want to pass the organization_id instead. (You can then optionally filter by organizer, if you want).

Jonathan Boss

unread,
Dec 5, 2019, 2:29:59 PM12/5/19
to Eventbrite Developers
Okay so that's great info - thanks Barrett. I'm not sure where you found my organization id? Doesn't appear to be documented, but the url you sent is working! Again, if I make the request without the organization_id filter though... it appears to fail. Not sure why - that doesn't appear to be required in the documentation. But in any case, for my situation that works. Here's my next issue however...

This endpoint works a bit differently from the /search one. /search was pulling all of the parent events, and this new endpoint appears to be pulling all event children - resulting in a much longer list. Now I've looked through the documentation, and the reason for that appears to be the: 'show_series_parent' argument. Makes perfect sense. The problem is that that argument doesn't appear to be working as documented?

By default, 'show_series_parent' is false. And when it is false - I get all of the series children - as expected. So that all looks correct. When I change that argument to true however - instead of getting all series parents I get ONLY the events with NO children. That is:

when 'show_series_parent' is set to false, events with any children do not show as expected. Only events with no children at all appear.

Barrett Cook

unread,
Dec 5, 2019, 2:45:32 PM12/5/19
to Eventbrite Developers
You can get your organization_id here: https://www.eventbriteapi.com/v3/users/me/organizations/



I'm surprised show_series_parent=true isn't working properly.

  returns 8 events. One of the events in the response is event_id = 69236553395, which is listed as is_series=true and is_series_parent=true
  This should be only the series parent events.

Are you looking for both (parents and children events)?


dcful...@gmail.com

unread,
Dec 5, 2019, 3:03:46 PM12/5/19
to Eventbrite Developers
Hi guys,
Would it make a difference if the organizer is actually a sub-account of a larger organization?

Jonathan Boss

unread,
Dec 5, 2019, 3:16:52 PM12/5/19
to Eventbrite Developers
Hi Barrett and David,

Okay you are indeed correct above! The issue at this point is application-level. The old endpoint was returning the next upcoming child for us somehow, and we have some filtering here on our end. But you're right - the query above returns what we need, just some app-level adjustments to be made. 

That was a great help, thanks a lot!

cooki...@gmail.com

unread,
Dec 5, 2019, 7:34:17 PM12/5/19
to Eventbrite Developers
I'm having the same issue:

GET https://www.eventbriteapi.com/v3/events/77333938893/

"organization_id": "14836518695",


GET https://www.eventbriteapi.com/v3/organizations/14836518695/events/

    "object_count": 0,


What am I doing wrong?

toby.be...@stubside.com

unread,
Dec 6, 2019, 8:02:48 AM12/6/19
to Eventbrite Developers
I'm getting the same issue. I wondered if it was because it's someone else's event but I did a venue search:

And got the event I was after which has: "organization_id": "210721364983"

But doing this:


Just gets me: {"pagination": {"object_count": 0, "page_number": 1, "page_size": 50, "page_count": 1, "has_more_items": false}, "events": []}


Nathan Tinius

unread,
Dec 6, 2019, 8:31:50 AM12/6/19
to Eventbrite Developers
The /organizations/ endpoint won't access events that don't belong to you.

Although we will need to look into why you are receiving an empty JSON list and not a 403 permissions based error.

The /venues/ endpoint and the /events/:event_id/ enpoints will return events that are created by others.

Best, 
Nathan 
Eventbrite External Developer Support

toby.be...@stubside.com

unread,
Dec 6, 2019, 8:45:26 AM12/6/19
to Eventbrite Developers
That is unfortunate as the only other way to get the events of another organisation is the event search API that is being turned off.

Toby

cooki...@gmail.com

unread,
Dec 10, 2019, 5:45:42 PM12/10/19
to Eventbrite Developers
Nathan, is this going to be fixed?  Right now the API is worthless if I can't retrieve events for a specific org.

Nathan Tinius

unread,
Dec 11, 2019, 9:53:36 AM12/11/19
to Eventbrite Developers
Unfortunately, the only way to receive event data that doesn't belong to your account is to call events individually: 

GET /v3/events/:event_id/

Or by calling the events per venue: 

GET /v3/venues/:venue_id/events/

Both are manual and neither is a 1 to 1 replacement of events/search/.  I am sorry I don't have the answer you are looking for. 

Nathan
Eventbrite External Developer Support.
Reply all
Reply to author
Forward
0 new messages