Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Eventbrite Shows Canceled to the Public but 'live' in their API #83

Closed
allella opened this issue Sep 1, 2023 · 7 comments
Closed

Eventbrite Shows Canceled to the Public but 'live' in their API #83

allella opened this issue Sep 1, 2023 · 7 comments

Comments

@allella
Copy link
Member

allella commented Sep 1, 2023

I'm not sure why, but the Evenbrite website and API don't match up for this Flywheel Cafe event.

Our events API is showing what Evenbrite's API is showing, so it's not a problem on our end.

image
image

We have seen some weird stuff with Evenbrite when events are part of an "event series" and organizers start closing a series. Though, this event isn't showing as part of a series.

The output from the Eventbrite API is below. You can make the API call yourself, but it's necessary to insert your own access token at the end of this API call for this call to authorize.
https://www.eventbriteapi.com/v3/organizers/36673227093/events/?start_date.range_start=2023-09-13T16%3A30%3A00&start_date.range_end=2023-09-15T16%3A30%3A00&token=INSERT YOUR TOKEN HERE

{
    "events": [
        {
            "name": {
                "text": "Flywheel Café (Greenville)",
                "html": "Flywheel Café (Greenville)"
            },
            "description": {
                "text": "Connect with small business owners, startups, investors and community leaders.",
                "html": "Connect with small business owners, startups, investors and community leaders."
            },
            "url": "https://www.eventbrite.com/e/flywheel-cafe-greenville-tickets-478618700417",
            "start": {
                "timezone": "America/New_York",
                "local": "2023-09-14T17:00:00",
                "utc": "2023-09-14T21:00:00Z"
            },
            "end": {
                "timezone": "America/New_York",
                "local": "2023-09-14T18:00:00",
                "utc": "2023-09-14T22:00:00Z"
            },
            "organization_id": "160887327615",
            "created": "2022-11-30T21:21:05Z",
            "changed": "2022-11-30T21:21:38Z",
            "published": "2022-11-30T21:21:38Z",
            "capacity": null,
            "capacity_is_custom": null,
            "status": "live",
            "currency": "USD",
            "listed": true,
            "shareable": true,
            "online_event": false,
            "tx_time_limit": 1200,
            "hide_start_date": false,
            "hide_end_date": false,
            "locale": "en_US",
            "is_locked": false,
            "privacy_setting": "unlocked",
            "is_series": false,
            "is_series_parent": false,
            "inventory_type": "limited",
            "is_reserved_seating": false,
            "show_pick_a_seat": false,
            "show_seatmap_thumbnail": false,
            "show_colors_in_seatmap_thumbnail": false,
            "source": "coyote",
            "is_free": true,
            "version": null,
            "summary": "Connect with small business owners, startups, investors and community leaders.",
            "facebook_event_id": null,
            "logo_id": "402658549",
            "organizer_id": "36673227093",
            "venue_id": "127400829",
            "category_id": "101",
            "subcategory_id": "1001",
            "format_id": "11",
            "id": "478618700417",
            "resource_uri": "https://www.eventbriteapi.com/v3/events/478618700417/",
            "is_externally_ticketed": false,
            "logo": {
                "crop_mask": {
                    "top_left": {
                        "x": 0,
                        "y": 0
                    },
                    "width": 1600,
                    "height": 800
                },
                "original": {
                    "url": "https://img.evbuc.com/https%3A%2F%2Fcdn.evbuc.com%2Fimages%2F402658549%2F637994093253%2F1%2Foriginal.20221130-211143?auto=format%2Ccompress&q=75&sharp=10&s=0eb99f4d217c56cf991b4702043f0346",
                    "width": 1600,
                    "height": 800
                },
                "id": "402658549",
                "url": "https://img.evbuc.com/https%3A%2F%2Fcdn.evbuc.com%2Fimages%2F402658549%2F637994093253%2F1%2Foriginal.20221130-211143?h=200&w=450&auto=format%2Ccompress&q=75&sharp=10&rect=0%2C0%2C1600%2C800&s=959db94f576adfd069b0c9aff69f2113",
                "aspect_ratio": "2",
                "edge_color": "#7d7465",
                "edge_color_set": true
            }
        }
    ]
}


@allella
Copy link
Member Author

allella commented Oct 31, 2023

@oliviasculley reported the same issue with the Nov 1st 2023 Flywheel Tech Slam N' Eggs event, which shows cancelled on the website, but simultaneously "live" in Eventbrite's API

https://www.eventbriteapi.com/v3/organizers/36673227093/events/?start_date.range_start=2023-10-15T16%3A30%3A00&start_date.range_end=2023-11-15T16%3A30%3A00&token=YOUREVENTBRITETOKENHERE

image

{
    "pagination": {
        "object_count": 1,
        "page_number": 1,
        "page_size": 50,
        "page_count": 1,
        "has_more_items": false
    },
    "events": [
        {
            "name": {
                "text": "Tech Slam 'N Eggs",
                "html": "Tech Slam 'N Eggs"
            },
            "description": {
                "text": "Live from Greenville, presenters will lift the hood on their tech stack and talk about discoveries, insights, and challenges they overcame.",
                "html": "Live from Greenville, presenters will lift the hood on their tech stack and talk about discoveries, insights, and challenges they overcame."
            },
            "url": "https://www.eventbrite.com/e/tech-slam-n-eggs-tickets-477552742107",
            "start": {
                "timezone": "America/New_York",
                "local": "2023-11-01T08:00:00",
                "utc": "2023-11-01T12:00:00Z"
            },
            "end": {
                "timezone": "America/New_York",
                "local": "2023-11-01T09:30:00",
                "utc": "2023-11-01T13:30:00Z"
            },
            "organization_id": "160887327615",
            "created": "2022-11-29T20:35:21Z",
            "changed": "2023-09-20T15:05:15Z",
            "published": "2022-11-29T20:36:13Z",
            "capacity": null,
            "capacity_is_custom": null,
            "status": "live",
            "currency": "USD",
            "listed": true,
            "shareable": true,
            "online_event": false,
            "tx_time_limit": 1200,
            "hide_start_date": false,
            "hide_end_date": false,
            "locale": "en_US",
            "is_locked": false,
            "privacy_setting": "unlocked",
            "is_series": false,
            "is_series_parent": false,
            "inventory_type": "limited",
            "is_reserved_seating": false,
            "show_pick_a_seat": false,
            "show_seatmap_thumbnail": false,
            "show_colors_in_seatmap_thumbnail": false,
            "source": "coyote",
            "is_free": true,
            "version": null,
            "summary": "Live from Greenville, presenters will lift the hood on their tech stack and talk about discoveries, insights, and challenges they overcame.",
            "facebook_event_id": null,
            "logo_id": "602385659",
            "organizer_id": "36673227093",
            "venue_id": "127203089",
            "category_id": "101",
            "subcategory_id": "1001",
            "format_id": "2",
            "id": "477552742107",
            "resource_uri": "https://www.eventbriteapi.com/v3/events/477552742107/",
            "is_externally_ticketed": false,
            "logo": {
                "crop_mask": {
                    "top_left": {
                        "x": 0,
                        "y": 34
                    },
                    "width": 1920,
                    "height": 960
                },
                "original": {
                    "url": "https://img.evbuc.com/https%3A%2F%2Fcdn.evbuc.com%2Fimages%2F602385659%2F160887327615%2F1%2Foriginal.20230920-150459?auto=format%2Ccompress&q=75&sharp=10&s=312ee03cdb4b3c6d5db679d35136198f",
                    "width": 1920,
                    "height": 1080
                },
                "id": "602385659",
                "url": "https://img.evbuc.com/https%3A%2F%2Fcdn.evbuc.com%2Fimages%2F602385659%2F160887327615%2F1%2Foriginal.20230920-150459?h=200&w=450&auto=format%2Ccompress&q=75&sharp=10&rect=0%2C34%2C1920%2C960&s=4e3d400ec316117a38f87e0d83ab376d",
                "aspect_ratio": "2",
                "edge_color": null,
                "edge_color_set": true
            }
        }
    ]
}

@allella
Copy link
Member Author

allella commented Oct 31, 2023

Their next two upcoming events are showing cancelled, and the last Flywheel Cafe in Sept was cancelled (because of the NEXT events going on the same week). I'm not sure why they are being cancelled more recently, but we don't have any upcoming active events to compare against.

image

@allella
Copy link
Member Author

allella commented Nov 9, 2023

@bogdankharchenko @ThorntonMatthewD I dug deeper on this, even creating and cancelling a test event on Eventbrite.

Then, I found a link in their docs to a Google Group where a few other people had the same 'live' vs 'canceled' confusion.

One of the earlier posts from an Evenbrite dev revealed the secret that "event status" ('status' in the API) is different than "event sales status" (event_sales_status in the API).

They have API "expansions" to get extra data in API requests and you have to add
expand=event_sales_status
to the API request URL string to see this extra data about the event

So, using Flywheel as the example, we can see the September event was not cancelled, but the Nov and Dec events show cancelled in the expanded data.

https://www.eventbriteapi.com/v3/organizers/36673227093/events/?expand=event_sales_status&start_date.range_start=2023-09-15T16%3A30%3A00&start_date.range_end=2023-12-31T16%3A30%3A00&token=YOURAPITOKENHERE

So, we don't need to do the magic @bogdankharchenko was doing in hackgvl/hackgreenville-com#186 with the JSON+LD and extra request for every Eventbrite event.

@ThorntonMatthewD
Copy link

@allella That is an incredible find!!!

@allella
Copy link
Member Author

allella commented Nov 9, 2023

It looks like we can target event_sales_status.message_code = 'event_cancelled'.

@bogdankharchenko
Copy link

@allella thank you for that find, I updated hackgvl/hackgreenville-com#186

@allella
Copy link
Member Author

allella commented Dec 11, 2023

This was fixed in hackgvl/hackgreenville-com#186

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

No branches or pull requests

3 participants