联赛列表

获取联赛

GEThttps://api.football-data-api.com/league-list?key=YOURKEY
返回 API 资料库中所有可用联赛的 JSON 阵列。每个赛季的比赛会提供一个唯一的 ID。

查询参数

名称。
类型
描述
chosen_leagues_only
字串
If set to 'true', the list will only return leagues that have been chosen by the user. ie ?key=xxxx&chosen_leagues_only=true
key*
字串
您的 API 密钥
country
整数
国家的ISO号码。将过滤响应以显示来自所选国家的联赛。移除任何前导的0。如果没有返回数据,这意味著我们不支援该国家/地区的任何联赛。
200 成功检索所有联赛。
隐藏 ↑
复制
显示↓

查询和参数

变数名称
描述
name
联赛名称。
league_name
联赛名称不包括国家
country
国家名称
season > id
赛季的ID。
season > year
赛季年份
/cn/
https://cdn.footystats.org/
no