Site
Home / Forum / Developers / live score - question

live score - question


Posted: 02 Mar 2020 00:20

edenbarel
Posts: 5
Joined: Nov 2019

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: 1,558
Joined: Oct 2016

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

edenbarel
Posts: 5
Joined: Nov 2019

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: 1,558
Joined: Oct 2016

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: 1,558
Joined: Oct 2016

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


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

Showing 0 to 5 (Total: 5)