Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eventbrite.com Events API Bot #217

Closed
allella opened this issue Feb 8, 2018 · 6 comments
Closed

Eventbrite.com Events API Bot #217

allella opened this issue Feb 8, 2018 · 6 comments

Comments

@allella
Copy link
Member

allella commented Feb 8, 2018

Ed already has a Eventbrite.com events API bot.

Cross-linking back to the open data API issue history where the conversations started.

@allella allella added enhancement New feature or request and removed enhancement New feature or request labels Feb 8, 2018
@allella
Copy link
Member Author

allella commented Feb 19, 2018

@Nunie123 not sure this will mess with anything but
https://data.openupstate.org/organization/hubspot-users-group

has changed from Meetup to Eventbrite. Figured I'd mention it in case something goes goofy when changing services.

https://www.eventbrite.com/o/greenville-hug-16473566371

@Nunie123
Copy link

None of the groups are hardcoded on the API end, so as long as the provided API key is correct it'll show up. Thanks for the heads up.

@allella
Copy link
Member Author

allella commented Feb 28, 2018

Check it out.

20180227_200213_hdr

@allella allella assigned allella and unassigned allella May 6, 2020
@allella
Copy link
Member Author

allella commented May 6, 2020

@ramonaspence @bcsnipes

A few more notes about Eventbrite's v3 API

Eventbrite uses OAUTH tokens.

For our current use case, we only need each developer to generate a personal, private token
https://www.eventbrite.com/platform/api#/get-a-private-token

We're not trying to make API requests on behalf of other Eventbrite users, so the "(For App Partners) Authorize your Users" is currently not needed.

There's this API test tool, similar to Meetup's API browser tool, but this one seems a bit harder to navigate. Also, you need a token to authorize and authenticate.
https://www.eventbriteapi.com/v3/events/10584525601/?token={INSERT YOUR API PRIVATE TOKEN HERE}

Not sure we ever used this, but "search events" is deprecated as of Thursday, December 12, 2019. and replaced by List Events by Organization — GET /v3/organizations/:organization_id/events/

Our application currently uses
https://www.eventbriteapi.com/v3/organizers/{organizer_id}/events/

I have concerns this API endpoint is going to be deprecated because it's not listed in the API Reference and similar endpoints, like GET /v3/organizers/, are listed in the change log for removal in June 2020.

Here is an example for Tech After 5 when called from a browser
https://www.eventbriteapi.com/v3/organizers/444331701/events/?token={YOURAPIPRIVATETOKENHERE}

However, this response is paginated with a limit of 50 events per page. So, once an organizer has [more the 50 events it would require using a continuation token].(https://www.eventbrite.com/platform/api#/introduction/paginated-responses/what's-in-a-paginated-response?) Since this application typically doesn't need all the old events, so it will be easier to limit the results to only future, or very recent events.

Specifying a start_date.rage_start=2020-05-01T23:00:15Z will only show future events after that date. Sorting by the start date, descending would also partially avoid the need to paginate in our application order_by=start_desc

It's also possible to filter based on status and a few other parameters
image

https://www.eventbriteapi.com/v3/organizers/444331701/events/?start_date.range_start=2020-05-01T23%3A00%3A15Z&token={YOURAPIPRIVATETOKENHERE}

Eventbrite's API has a limit of 2000 API requests per hour, per token. The HTTP response headers will include a "X-Rate-Limit" header with the current count and how many seconds until the count will reset.

X-Rate-Limit: token:{YOURAPIPRIVATETOKENHERE} 31/2000 reset=1962s, key:SOMEKEYVALUE 31/2000 reset=1962s

Error logging notes, mostly for my own future reference

    import sys
    from pprint import pformat

    # logger.error("-------");
    logger.error(pformat(data.get('events')));
    logger.error("-------");
    # logger.error(events);

    sys.exit()

@allella
Copy link
Member Author

allella commented Mar 18, 2021

Posting an example requesting an organizer / organization and then of its events, for future reference.

You'll need to apply a valid token on the end, which can be registered using the link on the Eventbrite testing tool.

All upcoming events for Tech After 5
https://www.eventbriteapi.com/v3/organizers/444331701/events?token=**YOURTOKENHERE**

Organizer info for Tech After 5
https://www.eventbriteapi.com/v3/organizers/444331701/?token=**YOURTOKENHERE**

@allella
Copy link
Member Author

allella commented Jan 25, 2024

Transferred this issue from the old Events API.

We only left this open because it had some helpful notes and examples on how to interact with Eventbrite's API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants