Hi there. Currently i try with your API, btw itโs awesome.
But, i have a problem when showing hockey category that one of your endpoint in:
https://livescore6.p.rapidapi.com/teams/detail?ID=xxxx
Show like this: โImgโ: โenet/261.pngโ,
Thatโs not a correct url right? How can i show that? Because i already ready your doc and canโt find the solution. I already see the previous discussion that bring me like this: https://static.livescore.com/i2/fh/{Ccd}.jpg.
I already try like: https://static.livescore.com/i2/fh/enet/261.png
or
https://static.livescore.com/enet/261.png
but itโs still not working.
Thanks.
Join in the discussion - add comment below:
To wakpedwakyeng.
I was able to make it work, hereยดs my function,
def get_team_image_url(data, team_index):
base_url = 'https://lsm-static-prod.livescore.com/mediumโ
relative_url = data[โLeagueTableโ][โLโ][0][โTablesโ][0][โteamโ][team_index][โImgโ]
absolute_url = f"{base_url}/{relative_url}"
print(get_team_image_url(data, 0))
โ0โ in this case is for manchester city
To apidojo,
I read your comment to use 'https://static.livescore.com/i2/fh/{url}.jpgโ
but its not working for the team images, only for the country, for example โenglandโ
I`m having the same problem trying to get the url or path for the soccer teams images
this is what I`m getting: enet/8456.png
You should read that discussion again with CARE.
Regards.