Coverage
Get coverage totals
Returns headline totals across all competitions: number of competitions, seasons and finished matches, and seasons by status.
Example: GET /coverage/summary
GET
/
coverage
/
summary
Get coverage totals
curl --request GET \
--url https://api.thestatsapi.com/api/coverage/summary \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.thestatsapi.com/api/coverage/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.thestatsapi.com/api/coverage/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"leagues": 204,
"seasons": 1107,
"finished_events": 202269,
"seasons_by_status": {
"complete": 922,
"in_progress": 152,
"not_loaded": 33
},
"pct_complete": 83.3
}
}
For per-competition detail, use List coverage by competition. See Coverage.
Authorizations
Your API key, sent as Authorization: Bearer YOUR_API_KEY. Get one at https://www.thestatsapi.com/api-keys
Response
Coverage totals.
Show child attributes
Show child attributes
⌘I
Get coverage totals
curl --request GET \
--url https://api.thestatsapi.com/api/coverage/summary \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.thestatsapi.com/api/coverage/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.thestatsapi.com/api/coverage/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"leagues": 204,
"seasons": 1107,
"finished_events": 202269,
"seasons_by_status": {
"complete": 922,
"in_progress": 152,
"not_loaded": 33
},
"pct_complete": 83.3
}
}