Get a team's injuries and suspensions
Returns the team’s players who are unavailable now, split into injuries and suspensions. Set current=false to get every record, past ones included (check each record’s active flag).
By default a suspension is only listed where it applies: a club sees bans from club competitions and a national team sees bans from national-team competitions (a Champions League ban doesn’t rule a player out of a Nations League match). Bans whose competition is unknown are always listed. A national team’s list leaves out national-team call-ups (reason national_team), because the player is with that team; a club’s list keeps them, because the player misses club matches. A ban reported twice is listed once.
Example: GET /football/teams/tm_73673/injuries-suspensions (Real Madrid)
curl --request GET \
--url https://api.thestatsapi.com/api/football/teams/{team_id}/injuries-suspensions \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.thestatsapi.com/api/football/teams/{team_id}/injuries-suspensions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.thestatsapi.com/api/football/teams/{team_id}/injuries-suspensions"
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
Path Parameters
Team ID, e.g. tm_73673 (Real Madrid). Find IDs with GET /football/teams?search=
Query Parameters
true (default) returns only who is unavailable now. false returns every record, including past ones
Response
Injuries and suspensions.
Player injuries and suspensions grouped by kind.
Show child attributes
Show child attributes
curl --request GET \
--url https://api.thestatsapi.com/api/football/teams/{team_id}/injuries-suspensions \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.thestatsapi.com/api/football/teams/{team_id}/injuries-suspensions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.thestatsapi.com/api/football/teams/{team_id}/injuries-suspensions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)