Building with AI? Give your coding tool the whole reference in one file: https://soccer-data.co/llms.txt
SOCCER DATA Docs
Sign in Get API key
// Teams

Where a team has tables

Lists every competition and season in which a team has a row in the table. Use it to find the competition and season ids you need for a team's past and present tables.

GET https://api.soccer-data.co/v1/teams/{team_id}/standings
  • Competitions are ordered by their most recent season. Inside each one, seasons run newest first.
  • A team that only plays knockout cups gets an empty list.
  • To get the full table, call /competitions/{competition_id}/seasons/{season_id}/standings with the ids from here.
Path parameters
team_idstringrequired

The team's id, like team_…. Find one with the ID guide.

Response fields
data[].competition.idstring

The competition's id.

data[].competition.namestring

The competition's name.

data[].seasons[].idstring

A season in which the team has a table row.

data[].seasons[].namestring

That season's display name.

data[].seasons[].group_labelstring

The group letter, A to L, when the team's table was a group. Null for an ordinary league.

curl "https://api.soccer-data.co/v1/teams/{team_id}/standings" \
  -H "X-Api-Key: $SOCCER_DATA_KEY"
200 · Example response
{
    "data": [
        {
            "competition": {
                "id": "competition_705uv6jm8myn",
                "name": "Premier League"
            },
            "seasons": [
                {
                    "id": "season_hr1ie7yrsdmt",
                    "name": "Premier League 26/27",
                    "group_label": null
                },
                {
                    "id": "season_98l95mxugqs9",
                    "name": "Premier League 25/26",
                    "group_label": null
                }
            ]
        },
        {
            "competition": {
                "id": "competition_b25me9a3vyf7",
                "name": "UEFA Europa League"
            },
            "seasons": [
                {
                    "id": "season_dgf6gghi4mf8",
                    "name": "UEFA Europa League 22/23",
                    "group_label": "A"
                }
            ]
        }
    ]
}
Get a free key to try it