| | Posted: 02 Mar 2020 00:20 | |
zag
Posts: 3,515 Joined: 2020
| | Hi,
Is there a way I can get live score for a specific league or for a specific game?
If so - can someone show me an example please?
I used the URL in the website (for basketball) and I have got 8 game I can't really recognize (I used the key i got when i sigend as a Patreon). I am guessing I'm doing something wrong.
thanks
| |
|
| | Posted: 02 Mar 2020 08:37 | |
zag
Posts: 3,515 Joined: 2020
| | Hi not at the moment (easily) but the next V2 of the API should do this quite.
The basketball currently is a poor data feed using shortnames, you can look those up on the API to get the full event details but its a big of a hack.
https://www.thesportsdb.com/api/v1/json/{APIKEY}/searchteams.php?sname={TeamShortCode}
| |
|
| | Posted: 09 Mar 2020 19:55 | |
zag
Posts: 3,515 Joined: 2020
| | Hi again,
first - thank you for the quick response!
another question - while looking at the live score of soccer matches, i am trying identify the leagues, there is no league id, but there is the league name. the problem is that the leagues names might represnt more then one league.
for example:
"Date": "2020-03-09T18:00:00+00:00",
"League": "Superliga",
"Round": "24",
"HomeTeam": "Silkeborg IF",
"HomeTeam_Id": "133892",
"AwayTeam": "AGF Aarhus ",
"AwayTeam_Id": "133899",
this game is taking place right now, and by it's league name it can be belong to : Albanian Superliga or Danish Superliga.
besides of serarching for the playing teams (after googling the HomeTeam i realized it is the danish Superliga), is there any other way to identify the league?
thanks.
| |
|
| | Posted: 09 Mar 2020 20:21 | |
zag
Posts: 3,515 Joined: 2020
| | Probably the same answer as the first question, the current live score is pretty seperate from the rest of our site but you can of course search for the event name.
V2 of the API will have the idEvent and idLeague ready to use. Its very close now, just finishing up the details, should only be a few days
| |
|
| | Posted: 09 Mar 2020 20:26 | |
zag
Posts: 3,515 Joined: 2020
| | Very early version of V2 for livescore is available here if you want to test:
https://www.thesportsdb.com/api/v2/json/APIKEY/livescore.php?s=soccer
You can follow the thread here:
https://www.thesportsdb.com/forumnew/vi ... f=7&t=4870
| |
|