API-FOOTBALL

FREEMIUM
Verified
By API-SPORTS | Updated il y a 8 jours | Sports
Popularity

10 / 10

Latency

364ms

Service Level

99%

Health Check

N/A

Back to All Discussions

Leagues fetching returns duplicate entries

Rapid account: Theophilus
theophilus
il y a 5 ans

after fetching the leagues. the data returned has duplicate entries like if its EPL you’ll find showing 3 times.??? and total result comes to 293 leagues and as mentioned there are 100 leagues in coverage

Rapid account: Api Sports
api-sports Commented il y a 5 ans

Hello,

Each league has a different ID per year which explains why you have 293 results instead of 100.
If you look at the details of the json answer you will see that the years differ according to the ID.

Check the documentation: https://market.mashape.com/api-sports/api-football#leagues

Join in the discussion - add comment below:

Login / Signup to post new comments