Site
Home / Forum / General Discussion / Wrong teams for match in API

Wrong teams for match in API


Posted: 14 Sep 2023 19:05
Greavel


Posts: 39
Joined: 2022

I've found a strange thing:

This are all matches for the current season of Portuguese Primeira Liga:
https://www.thesportsdb.com/api/v1/json/{APIKey}/eventsseason.php?id=4796&s=2023-2024

If you look there e.g. for event with idEvent = 1836910 you will find a match of the Austrian 2. League:
SV Josko Ried vs First Vienna
and also some more:
FC Trenkwalder Admira vs Grazer AK
Floridsdorfer AC vs SKU Amstetten
etc...

Seems like the whole matchdays 4, 5 and 6 of the Austrian League 2 are there under the Primeira Liga.

Could you please fix this?

PS: Sorry, headline of this thread is a little bit misleading.

Posted: 14 Sep 2023 19:44
curswine


Posts: 938
Joined: 2020

4796 is the league ID for the Austrian Erste Liga.

https://www.thesportsdb.com/League/4796

Posted: 14 Sep 2023 19:48
Greavel


Posts: 39
Joined: 2022

Sorry, my fault!

But my code which reads the Austrian Erste Liga API imported for those 3 matchdays also the matches from portuguese league... This never happend before but I can't say at this point if there was some wrong data in the API or my code is somehow buggy.

Sorry for the inconvenience!

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

Showing 0 to 3 (Total: 3)