Site
Home / Forum / Developers / V2 API Development

V2 API Development


Posted: 11 Aug 2020 11:42
cydalby
Posts: 335
Joined: 2020-06-16

Be great to have lineups, ref and stadium if they’re all a possibility?

Posted: 11 Aug 2020 15:00

Ovokx
Posts: 1,698
Joined: 2020-06-17

historical player stats

Posted: 11 Aug 2020 17:47
curswine
Posts: 868
Joined: 2020-06-17

I don't think I ever made a formal request for it, but I'd love if decimal longitude and latitudes could be included e.g.
53.916500, -3.024700

Posted: 11 Aug 2020 18:57
cydalby
Posts: 335
Joined: 2020-06-16

I'll be looking at this again in the next few days, Keep the requests and feedback coming.

Latest todo is to add a "Event Status" field to show "In Progress", "Finished", "Extra Time" etc

Could we also have Half Time?

Posted: 14 Aug 2020 21:53
cydalby
Posts: 335
Joined: 2020-06-16

V2 live scores showing “0” for strProgress when a game has gone into penalties tonight

zag
Posted: 17 Aug 2020 20:02
cydalby
Posts: 335
Joined: 2020-06-16

V2 live scores showing the wrong league for Europa League game tonight

{
"idLiveScore": "3408883",
"idEvent": "1019405",
"strSport": "Soccer",
"idLeague": "4332",
"strLeague": "Italian Serie A",
"idHomeTeam": "133681",
"idAwayTeam": "134126",
"strHomeTeam": "Inter",
"strAwayTeam": "Shakhtar Donetsk",
"strHomeTeamBadge": "https://www.thesportsdb.com/images/media/team/badge/xqyvuy1448806439.png",
"strAwayTeamBadge": "https://www.thesportsdb.com/images/media/team/badge/sqrxsr1421791799.png",
"intHomeScore": "1",
"intAwayScore": "0",
"strPlayer": null,
"idPlayer": null,
"intEventScore": null,
"intEventScoreTotal": null,
"strProgress": "45",
"strEventTime": "19:00:00",
"dateEvent": "2020-08-17",
"updated": "2020-08-17 21:01:21"
}

zag
Posted: 19 Aug 2020 20:00
cydalby
Posts: 335
Joined: 2020-06-16

Showing the same tonight

Posted: 26 Aug 2020 19:35
cydalby
Posts: 335
Joined: 2020-06-16

1036757 has gone into status "match interrupted" but has disappeared from the v2 live scores

zag
Posted: 27 Aug 2020 15:12
cydalby
Posts: 335
Joined: 2020-06-16

Realise I've been asking a lot recently but do we have a rough timeframe of when goalscorers and yellow/red cards might be available in v2? A lot of games are missing from the v1 livescores api which would normally contain this data

zag
Posted: 28 Aug 2020 21:11

zag
Posts: 3,329
Joined: 2020-03-23

Realise I've been asking a lot recently but do we have a rough timeframe of when goalscorers and yellow/red cards might be available in v2? A lot of games are missing from the v1 livescores api which would normally contain this data

A bit snowed under at the moment but I am working in the background everyday a little. Priority is getting the new year shceduals done and importer working reliably, then fixing all the USA sports on the livescore importer. Then maybe after that the additional event details and V2 API. Its all a bit hectic but i'm on it.

Posted: 28 Aug 2020 22:44
cydalby
Posts: 335
Joined: 2020-06-16

No worries at all, appreciate the work you’re doing!

Posted: 01 Sep 2020 19:39
cydalby
Posts: 335
Joined: 2020-06-16

Think I raised before but the v2 api seems to return the "main league" of the home team, not the actual competition the game is in.

The below game is in the competition "Club Friendlies" but is showing as "_No League Football"

Example:
{
"idLiveScore": "3631103",
"idEvent": "1047308",
"strSport": "Soccer",
"idLeague": "4834",
"strLeague": "_No League Soccer",
"idHomeTeam": "140200",
"idAwayTeam": "136034",
"strHomeTeam": "Worksop Town",
"strAwayTeam": "Guiseley",
"strHomeTeamBadge": "https://www.thesportsdb.com/images/media/team/badge/4cjvi51598988955.png",
"strAwayTeamBadge": "https://www.thesportsdb.com/images/media/team/badge/8qucr51513885275.png",
"intHomeScore": "0",
"intAwayScore": "0",
"strPlayer": null,
"idPlayer": null,
"intEventScore": null,
"intEventScoreTotal": null,
"strProgress": "49",
"strEventTime": "18:30:00",
"dateEvent": "2020-09-01",
"updated": "2020-09-01 20:37:22"
}

Posted: 07 Sep 2020 11:02
cydalby
Posts: 335
Joined: 2020-06-16

Any updates on the addition of match stats (goals, yellows, subs) in time for PL this weekend?

Posted: 10 Sep 2020 17:00
cydalby
Posts: 335
Joined: 2020-06-16

any update on this?

Posted: 11 Sep 2020 00:51

zag
Posts: 3,329
Joined: 2020-03-23

Sorry i've been working feverishly in the background on the US sports as NFL starts this weekend as well.

Those are now working so I should be able to look at the more advanced soccer stuff over the next few weeks.

For now V1 of the API has all the info you need.

Posted: 11 Sep 2020 10:49
cydalby
Posts: 335
Joined: 2020-06-16

No worries, I assumed you'd be busy with something else.

Am I right in remembering the results (goals, cards, lineups) are only synced for PL games after the match currently? Any blockers for turning this back on for the other main leagues. I've noticed games from MLS, Ligue1 have had livescores during the match but they don't seem to exist after the match has finished.

Cheers

Posted: 18 Sep 2020 20:32
cydalby
Posts: 335
Joined: 2020-06-16

No worries, I assumed you'd be busy with something else.

Am I right in remembering the results (goals, cards, lineups) are only synced for PL games after the match currently? Any blockers for turning this back on for the other main leagues. I've noticed games from MLS, Ligue1 have had livescores during the match but they don't seem to exist after the match has finished.

Cheers


Bump


Posted: 11 Mar 2021 21:17

zag
Posts: 3,329
Joined: 2020-03-23

Basketball Added new livescore 'strStatus' and moved times to 'strProgress'
Baseball Checked both data sources we have for livescore and neither has live timing data sorry
Ice Hockey Added new livescore 'strStatus' and moved times to 'strProgress'
Soccer Added new livescore 'strStatus' and moved times to 'strProgress'

Posted: 11 Mar 2021 22:13
ddygert
Posts: 2
Joined: 2021-03-07

For baseball - I just can't believe if there's a live data source that inning or something is not provided in there. Let alone two different sources. It must be getting put in a field that is misnamed or something - is there any chance I can see their data and see how it changes to see if can spot what is being put in what fields? Is that something you can share?

For basketball I just checked the livescore and it looks like the strProgress field is being populated with just a number - hard to tell if thats more like the soccer 'how many minutes in to the quarter' and not 'how many minutes left'. Also would want a minutes and seconds remaining (3:12 remaining) type of thing.

Also - can leagues 4479 and 4607 be included in the livescores? (4479 is out of season so maybe it already is, but asking in case its not).





zag
Posted: 12 Mar 2021 13:55

zag
Posts: 3,329
Joined: 2020-03-23

For baseball - I just can't believe if there's a live data source that inning or something is not provided in there. Let alone two different sources. It must be getting put in a field that is misnamed or something - is there any chance I can see their data and see how it changes to see if can spot what is being put in what fields? Is that something you can share?


We have the data, it just doesn't go nicely into our livescore structure yet. I need to think about it some more as each sport is different.


For basketball I just checked the livescore and it looks like the strProgress field is being populated with just a number - hard to tell if thats more like the soccer 'how many minutes in to the quarter' and not 'how many minutes left'. Also would want a minutes and seconds remaining (3:12 remaining) type of thing.


Yeh basketball mins needs more context. I will see what I can do.


Also - can leagues 4479 and 4607 be included in the livescores? (4479 is out of season so maybe it already is, but asking in case its not).


Yes I think there is a bug in the importer for NCAA, it should theoretically list all events as I can see the data coming in. Hard as i'm GMT time so cant stay up late enough to check easily

American football NCAA is still on the todo list, might not be a quick one as NFL took a lot of work to make right last year.







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 25 to 45 (Total: 45)