Site
Home / Forum / Developers / Missing Europe as country

Missing Europe as country


Posted: 21 May 2021 14:01
ichemmer
Posts: 13
Joined: 2021-05-11

We have leagues for Europe
https://www.thesportsdb.com/api/v1/json/1/search_all_leagues.php?c=Europe&s=Soccer

but no country_id for Europe
https://www.thesportsdb.com/api/v1/json/1/all_countries.php

We have leagues for worldwide
https://www.thesportsdb.com/api/v1/json/1/search_all_leagues.php?c=worldwide&s=Soccer

and a country_id for worldwide => 246
https://www.thesportsdb.com/api/v1/json/1/all_countries.php

I can add now europe to 300 for example. But it would be better if you have the master_id, right?




Posted: 21 May 2021 21:32

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

This is a good question because worldwide is basically supposed to have all the international teams in.

If we made a Europe or North America it would become confusing I think for users.

Posted: 23 May 2021 17:20
ichemmer
Posts: 13
Joined: 2021-05-11

Sorry, but there is something wrong:

https://www.thesportsdb.com/api/v1/json/1/search_all_leagues.php?c=Europe&s=Soccer

These are leagues for Europe. (6 leagues)
c=Europe, means country = Europe

and

https://www.thesportsdb.com/api/v1/json/1/search_all_leagues.php?c=worldwide&s=Soccer

These are leagues for wordwide. (9 leagues!) c=worldwide, "country" = worldwide

Here in c=worldwide are no leagues that we find in c=europe

When i want to fetch the leagues for europe i need to have the country "europe" in my database.
And to have a clear system you need to:

1) move the european leagues to worldwide

or

2) add europe as a country

To make think stable and in order is suggest that you add all continents instead of "worldwide"; here you have no africa and asia, but no europe

The system is not consistent now!




Posted: 28 May 2021 20:16

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

Thanks yes agreed, Things should be consistent.

I will see what's possible.


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 4 (Total: 4)