League Icons in EventsDay response |
Posted: 16 Aug 2024 13:55 | |||
Posts: 346 Joined: 2020 | Hi all, Would it be possible to include the league icon in the eventsday api? I'm wanting to have little icons for each league, but don't want to be hitting the league lookup endpoint ~50 times for this. Thanks! Cy | ||
Posted: 19 Aug 2024 21:50 | |||
zag Posts: 3,527 Joined: 2020 | Would it be possible to include the league icon in the eventsday api? I'm wanting to have little icons for each league, but don't want to be hitting the league lookup endpoint ~50 times for this. Thanks! Cy Thats been requested a fair few times before and I thought I did it. Any ideas how it should look? EDIT: I thought this already worked? Maybe I haven't been filling the data in some way as the structure looks good... "idHomeTeam": "133740", "strHomeTeamBadge": "https://www.thesportsdb.com/images/media/team/badge/vrypqy1473503073.png", "idAwayTeam": "133729", "strAwayTeamBadge": "https://www.thesportsdb.com/images/media/team/badge/0ulh3q1719984315.png", }, Already works for the premier league match I just tested, are you using a different sport perhaps? Just add /small or /tiny onto the URL to get a nice badge. https://www.thesportsdb.com/images/media/team/badge/0ulh3q1719984315.png/small | ||
Posted: 19 Aug 2024 21:58 | |||
zag Posts: 3,527 Joined: 2020 | Oh you said League Icon..... I will look into it... | ||
Posted: 19 Aug 2024 22:18 | |||
zag Posts: 3,527 Joined: 2020 | OK done! It should start to populate for this years seasons automatically. Any older events you will probably need to edit the event to trigger the League badge update. | ||
Posted: 26 Aug 2024 16:15 | |||
Posts: 346 Joined: 2020 | Sorry just seen this! Nice one, thank you very much zag | ||
Who is Online? In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm | About Us Discussion forum for TheSportsDB.com site and related topics | Rules - Be Polite - Respect other users - Always post log files with issues - Try to be helpful - No Piracy discussion |