vasqued2 / ha-teamtracker

Home Assistant integration that provides real-time scores in multiple professional (NBA, NFL, NHL, MLB, MLS, and more), college (NCAA), and international (soccer, golf, tennis, mma, racing) sports using ESPN APIs.
150 stars 19 forks source link

Issue with International Soccer - SERA #52

Closed petersoniq closed 1 year ago

petersoniq commented 1 year ago

Hello, can you help me with SERA (Italian Serie A) ? I can not found correct code for team (approx. AC Milan). In espn.com is visible only code 103. Thanks.

imist commented 1 year ago

Use ”MIL”

petersoniq commented 1 year ago

Thank you, work it.

vasqued2 commented 1 year ago

Just curious where you see code 103. Every once in a while people refer to team codes as a number, especially soccer, and I’m trying to understand where they are getting them from.

vasqued2 commented 1 year ago

Closing as resolved.

imist commented 1 year ago

I think he found it in the url for Milan:

https://www.espn.com/soccer/team/_/id/103/ac-milan

vasqued2 commented 1 year ago

Got it. Thanks!

infestonn commented 1 month ago

@imist just curious, how did you find the correct abbr? (edit) Never mind. Found this endpoint https://site.api.espn.com/apis/site/v2/sports/soccer/ita.1/teams