League List

get
Get Leagues

https://api.footystats.org/league-list?key=YOURKEY
Returns a JSON array of all leagues available in the API Database. Each season of a competition gives a unique ID.
Request
Response
Query Parameters
key
required
string
Your API Key
country
optional
integer
ISO number of the country. Will filter the response to leagues from the selected country.
200: OK
Successfully retrieved all leagues.
{
success: true,
data: [
{
name: "USA MLS",
season: [
{
id: 1,
year: 2016
},
{
id: 16,
year: 2015
},
{
id: 1076,
year: 2018
}
]
},
]
}

Variable Name

Description

name

Name of the league

season > id

ID of the season

season > year

Year of the season