Closed 1993alexey closed 5 years ago
👋 Hey Alex,
Something like this might work:
https://api.seatgeek.com/2/performers?taxonomies.name=mlb&per_page=100&client_id={{CLIENT_ID}}
taxonomy name | taxonomy ID |
sports | 1000000 |
baseball | 1010000 |
mlb | 1010100 |
ncaa_baseball | 1010200 |
minor_league_baseball | 1010300 |
football | 1020000 |
nfl | 1020100 |
ncaa_football | 1020200 |
basketball | 1030000 |
nba | 1030100 |
ncaa_basketball | 1030200 |
ncaa_womens_basketball | 1030300 |
wnba | 1030400 |
nba_dleague | 1030500 |
hockey | 1040000 |
nhl | 1040100 |
ncaa_hockey | 1040200 |
minor_league_hockey | 1040300 |
soccer | 1050000 |
mls | 1050100 |
ncaa_soccer | 1050200 |
european_soccer | 1050300 |
international_soccer | 1050400 |
world_cup | 1050401 |
us_minor_league_soccer | 1050500 |
auto_racing | 1060000 |
nascar | 1060100 |
nascar_sprintcup | 1060101 |
nascar_nationwide | 1060102 |
indycar | 1060200 |
f1 | 1060300 |
monster_truck | 1060400 |
motocross | 1060500 |
golf | 1070000 |
pga | 1070100 |
lpga | 1070200 |
fighting | 1080000 |
boxing | 1080100 |
mma | 1080200 |
wrestling | 1080300 |
wwe | 1080301 |
tennis | 1090000 |
animal_sports | 1100000 |
horse_racing | 1100100 |
rodeo | 1100200 |
extreme_sports | 1110000 |
olympic_sports | 1120000 |
band | 2000000 |
band | 2000001 |
music_festival | 2010000 |
theater | 3000000 |
theater_classical | 3010000 |
theater_classical_opera | 3010100 |
theater_classical_vocal | 3010200 |
theater_classical_orchestral_instrumental | 3010300 |
cirque_du_soleil | 3020000 |
theater_broadway_national_tours | 3030000 |
theater_comedy | 3040000 |
theater_family | 3050000 |
theater_dance_performance_tour | 3060000 |
film | 3070000 |
literary | 3080000 |
circus | 3090000 |
@byrnehollander, thanks, that works for obtaining a list of sports. Do you know how I would pull a list of teams associated with a sport?
For example, I need to obtain a list of teams for MLB. It seems like at this point there is nothing on SeatGeek that provides that functionality.
Hey @1993alexey, the /performers
API that Byrne suggested at the top of the post does exactly what you're asking. Just drop your client id in there and give it a spin.
@1993alexey You can use this https://api.seatgeek.com/2/performers?taxonomies.name=mlb&per_page=100&client_id={{CLIENT_ID}}
to get a list of MLB teams – the catch is that there are some "performers" returned in the performers
array that aren't real performers (like World Series
).
So, you'd have to iterate through the array of performer objects... and for MLB at least, it's a team when divisions
is not null
@sddamico, you're right, my bad. That is exactly what I was looking for. Since API docs don't have a definition of performers, I thought it was related to concerts or circus.
Do you know where I could obtain team icons? For example, I want to get an icon for MLB Minnesota Twins team, but the performers API doesn't contain it.
Thanks again for your help, I appreciate your time.
SeatGeek does not have the rights to use team iconography and logos, you'll have to find those elsewhere, sorry.
I went through the API docs, but didn't find anything that would allow me to pull a list of all sport names and their associated teams.
Is there a way to get a similar list to this: Sports MLB NFL NBA NHL MLS NCAA FB NCAA BB etc.
Teams for MLB Arizona Diamondbacks Atlanta Braves Baltmore Orioles Boston Red Sox Chicago Cubs Chicago White Sox etc.