Hello,
I requested to get"current seasons for all leagues from Turkey" and the response consists an old data for one league, TFF 1.Lig. Any chance to fix this inconsistency?
Thanks.
GET-https://api-football-v1.p.rapidapi.com/v2/leagues/current/turkey
Nehmen Sie an der Diskussion teil - fügen Sie unten einen Kommentar hinzu:
You have right, this is fixed.
So there are two current leagues as TFF 1. Lig, “league_id: 467” and “league_id: 779”. I couldn’t understand why the league having the attiributes “season:2018” and “season_end :2019-05-18” is still considered current. Shouldn’t it’s been renewed by the league “season:2019”?
I have call the endpoint and i have 5 results from several Turkish leagues and cups, For information a league is considered “current” as long as it has not been renewed by the new season.
see:
{1 item
"api":{2 items
"results":5
"leagues":[5 items
0:{13 items
"league_id":467
"name":“TFF 1. Lig”
“type”:“League”
“country”:“Turkey”
“country_code”:“TR”
“season”:2018
"season_start":“2018-08-10"
“season_end”:“2019-05-18"
“logo”:“https://media.api-sports.io/leagues/467.png”
“flag”:“https://media.api-sports.io/flags/tr.svg”
“standings”:1
"is_current”:1
"coverage”:{…}6 items
}
1:{13 items
"league_id":779
"name":“TFF 1. Lig”
“type”:“League”
“country”:“Turkey”
“country_code”:“TR”
“season”:2019
"season_start":“2019-08-16"
“season_end”:“2020-05-01"
“logo”:“https://media.api-sports.io/leagues/467.png”
“flag”:“https://media.api-sports.io/flags/tr.svg”
“standings”:1
"is_current”:1
"coverage”:{…}6 items
}
2:{13 items
"league_id":782
"name":" Super Lig"
“type”:“League”
“country”:“Turkey”
“country_code”:“TR”
“season”:2019
"season_start":“2019-08-16"
“season_end”:“2020-05-16"
“logo”:“https://media.api-sports.io/leagues/114.png”
“flag”:“https://media.api-sports.io/flags/tr.svg”
“standings”:1
"is_current”:1
"coverage”:{…}6 items
}
3:{13 items
"league_id":914
"name":“TFF 2. Lig”
“type”:“League”
“country”:“Turkey”
“country_code”:“TR”
“season”:2019
"season_start":“2019-08-31"
“season_end”:“2020-04-25"
“logo”:“https://media.api-sports.io/leagues/468.png”
“flag”:“https://media.api-sports.io/flags/tr.svg”
“standings”:1
"is_current”:1
"coverage”:{…}6 items
}
4:{13 items
"league_id":940
"name":“Cup”
“type”:“Cup”
“country”:“Turkey”
“country_code”:“TR”
“season”:2019
"season_start":“2019-08-28"
“season_end”:“2020-03-22"
“logo”:“https://media.api-sports.io/leagues/467.png”
“flag”:“https://media.api-sports.io/flags/tr.svg”
“standings”:0
"is_current”:1
"coverage”:{…}6 items
}
]
}
}