Eventbrite API 根据标签搜索事件

Eventbrite API search event base on tag

我参考了这个文档https://www.eventbrite.com/developer/v3/endpoints/events/#ebapi-get-events-search

但我无法确定如何根据标签获取事件列表。

您可以使用事件搜索端点以及格式和类别参数来搜索此数据点上的事件。要查看 category/format 个以上的 ID,请使用扩展。请参阅此处的文档: https://www.eventbrite.com/developer/v3/endpoints/events/#ebapi-get-events-search

标签的使用已被删除。您在网络上看到的 UI 看起来像标签的内容是类别、子类别和格式的表示。在您的示例中,您看到 "Things to do in Colorado Springs, CO," "Race," 和 "Community." "things to do" 类别是根据事件的位置自动分配的。其他两个类别由活动组织者手动添加。还值得注意的是,类别不能应用于私人事件,因为类别旨在发现。

这里的混淆源于 GUI 和 API 之间的语言不一致。以下是这些数据点在网络上的表示方式 UI 和 API:

之间的翻译

GUI:事件类型,API:格式https://www.eventbriteapi.com/v3/formats?token=XXX

GUI:事件主题,API:类别

GUI:事件子主题,API:子类别

您将要使用类别和子类别。但是,通过 API 这些是按数字代码分类的。例如,API 中的 Music = 103。

您可以像这样调用音乐事件...

GET /v3/events/search/categories=103&token=YOUR_TOKEN_HERE

这里是关于接收 categories/subcategories 及其代码的文档。

https://www.eventbrite.com/platform/api#/reference/categories/list/list-categories?console=1

https://www.eventbrite.com/platform/api#/reference/subcategories/list/list-subcategories?console=1

希望对您有所帮助! 最好!