seatgeek / api-support

A support channel for the SeatGeek Platform
9 stars 10 forks source link

How To resolve Taxonomies name. #64

Closed chukwumaijem closed 6 years ago

chukwumaijem commented 6 years ago

Hi, I'm working on a platform that uses event taxonomies for search. However, I can't seem to resolve the type that appears on the events API call to the type I see in the event's script when I visit the URL on the browser.

Take this event for example, the type of event is @type: "MusicEvent" and @type: "Event". On the API result, I see type "music-festival" with the taxonomies of "music_festival" and "concert"(not "Event" I just saw in the script tag). On getting to the taxonomies API, "music_festival" resolves to "Music Festival"(not Music Event).

So how did you/how do I map the type in the API result to the type in the script tags?

Screenshots

screen shot 2018-05-20 at 11 24 43 am screen shot 2018-05-20 at 11 25 28 am screen shot 2018-05-20 at 11 27 09 am
josegonzalez commented 6 years ago

We do not resolve schema.org on our external API, and would prefer that you not screenscrape our seatgeek.com domain.

For your use case, you can ascribe events with an id in it's tree of 2000000 as a MusicEvent. The tree 1000000 is used for sports, and 3000000 is for the arts and other types of events.

I suggest pulling in the taxonomies endpoint and mapping those events to any other schema as appropriate. We're unlikely to expose that data in our api in the near future.

Hope this helps.

chukwumaijem commented 6 years ago

Yea, that was helpful.