Teams
List a team's standings history
Returns every competition where the team has a league table entry, with its seasons nested inside (newest first). Use it to build a team’s table history, then fetch a full table from /football/competitions/{competition_id}/seasons/{season_id}/standings. Competitions are ordered by their most recent season. Teams that only play knockout cups get an empty list.
Example: GET /football/teams/tm_9145/standings (Arsenal)
GET
/
football
/
teams
/
{team_id}
/
standings
List a team's standings history
curl --request GET \
--url https://api.thestatsapi.com/api/football/teams/{team_id}/standings \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.thestatsapi.com/api/football/teams/{team_id}/standings', 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}/standings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"competition": {
"id": "comp_7739",
"name": "UEFA Europa League"
},
"seasons": [
{
"id": "sn_706199",
"name": "UEFA Europa League 22/23",
"group_label": "A"
}
]
}
]
}Walkthrough with code: Standings.
Authorizations
Your API key, sent as Authorization: Bearer YOUR_API_KEY. Get one at https://www.thestatsapi.com/api-keys
Path Parameters
⌘I
List a team's standings history
curl --request GET \
--url https://api.thestatsapi.com/api/football/teams/{team_id}/standings \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.thestatsapi.com/api/football/teams/{team_id}/standings', 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}/standings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"competition": {
"id": "comp_7739",
"name": "UEFA Europa League"
},
"seasons": [
{
"id": "sn_706199",
"name": "UEFA Europa League 22/23",
"group_label": "A"
}
]
}
]
}