List coverage by competition
Returns one row per competition: how many seasons are loaded, which data types it has (fixtures, team stats, xG, odds, lineups, player stats, standings), the latest season’s status and the number of finished matches. Use it to check what’s available before you build. Add data_type to list only competitions that have that data. Counts only include finished matches, and responses are cached for several hours.
Example: GET /coverage/leagues?data_type=xg&search=Premier
curl --request GET \
--url https://api.thestatsapi.com/api/coverage/leagues \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.thestatsapi.com/api/coverage/leagues', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.thestatsapi.com/api/coverage/leagues"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)Authorizations
Your API key, sent as Authorization: Bearer YOUR_API_KEY. Get one at https://www.thestatsapi.com/api-keys
Query Parameters
Page number, starting at 1. meta.total_pages tells you how many there are
x >= 1Results per page (default 100, max 200)
x <= 200Only competitions that have this data type
fixtures, team_stats, xg, odds, opening_odds, closing_odds, lineups, player_stats, standings Part of the competition name, case-insensitive
curl --request GET \
--url https://api.thestatsapi.com/api/coverage/leagues \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.thestatsapi.com/api/coverage/leagues', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.thestatsapi.com/api/coverage/leagues"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)