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

Team squad

Returns the players currently in a team's squad, with their profile details and shirt numbers. Use it to build a squad page or to collect player ids for stats calls.

GET https://api.soccer-data.co/v1/teams/{team_id}/players
  • Everything comes in one response, up to 100 players. There is no pagination.
  • For a national team, you get the players who represent it.
  • Pass a player's id as player_id to /players/{player_id}/stats for their season numbers.
Path parameters
team_idstringrequired

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

Response fields
data[].idstring

The player's id.

data[].namestring

Full name.

data[].first_namestring

First name.

data[].last_namestring

Last name.

data[].positionstring

G (goalkeeper), D (defender), M (midfielder) or F (forward). An empty string when unknown.

data[].date_of_birthstring

Birth date as YYYY-MM-DD. Null when unknown.

data[].ageinteger

Age in years. Null when the birth date is unknown.

data[].nationalitystring

The player's nationality.

data[].height_cminteger

Height in centimetres. Null when unknown.

data[].current_team.idstring

The id of the team the player is at now.

data[].current_team.namestring

That team's name.

data[].current_team.jersey_numberinteger

Shirt number at that team. Null when unknown.

data[].slugstring

A URL-friendly version of the name. Can be null.

data[].short_namestring

Abbreviated name, such as A. Isak. Can be null.

data[].preferred_footstring

The player's stronger foot. Can be null.

data[].country_slugstring

A URL-friendly version of the player's country. Can be null.

data[].market_valuenumber

Estimated market value, when one is known. Otherwise null.

data[].contract_untilstring

When the current contract ends, as YYYY-MM-DD. Can be null.

data[].national_teamobject

The national team the player represents, or null.

data[].national_team.idstring

The national team's id.

data[].national_team.namestring

The national team's name.

curl "https://api.soccer-data.co/v1/teams/team_74p8tg2k93z4/players" \
  -H "X-Api-Key: $SOCCER_DATA_KEY"
200 · Example response
{
    "data": [
        {
            "id": "player_zpfc5xvtigeo",
            "name": "Alexander Isak",
            "first_name": "Alexander",
            "last_name": "Isak",
            "position": "F",
            "date_of_birth": "1999-09-21",
            "age": 27,
            "nationality": "Sweden",
            "height_cm": 193,
            "current_team": {
                "id": "team_74p8tg2k93z4",
                "name": "Liverpool",
                "jersey_number": 9
            },
            "slug": "alexander-isak",
            "short_name": "A. Isak",
            "preferred_foot": "right",
            "country_slug": "sweden",
            "market_value": 88000000,
            "contract_until": "2031-06-30",
            "national_team": {
                "id": "team_ri18cbrnnp2h",
                "name": "Sweden"
            }
        }
    ]
}
Get a free key to try it