Competition Rosters

  1. Endpoint
  2. Response

On this documentation page, we show how you can use our football API to get the information about the predefined competitions squads that all teams announce before a big competition starts.

This football API endpoint only provides data for big competitions like the FIFA World Cup, EURO, Copa America, African Cup of Nations

This football API endpoint provides the players for all the teams that have finalised their squads for the given competition. In order to get the squad of a single team you should use the competitions team squad API endpoint. Using the alternative API endpoint will increase the number of requests that you will send to our servers but if will give you more control over the data that you receive from us.


ENDPOINT


A response of a request to this football API lists the 23 to 26 player squads that coaches announce before the start of big international competitions. If your package supports player translations you have the possibility to choose from 30+ languages. The JSON returned is similar to the response provided by the match lineups API endpoint.


GET:

NameTypeRequiredExampleDescription
competition_idNumber1362The id of the competition in which the teams participate.
langStringarThe 2 letter code of the language, if we want the names of the players in another language. These translations are supported by certain packages only.

RESPONSE


For simplicity, we have shorten the example JSON response to 2 teams only but the actual response will contain the squads for all the teams.

{
    "success": true,
    "data": {
        "competition": {
            "id": 362,
            "name": "FIFA World Cup",
            "is_league": false,
            "is_cup": true,
            "tier": 0,
            "has_groups": true,
            "active": true,
            "national_teams_only": true
        },
        "teams": [
            {
                "team": {
                    "id": 1456,
                    "name": "England",
                    "stadium": "Wembley Stadium",
                    "country_id": 115,
                    "logo": "https:\/\/cdn.live-score-api.com\/teams\/dfc056eeaced99c1853905d5cc6a18ff.png"
                },
                "squad": [
                    {
                        "player": {
                            "id": 512,
                            "name": "Callum Wilson"
                        },
                        "shirt_number": "24",
                        "position": "FW"
                    },
                    {
                        "player": {
                            "id": 531,
                            "name": "Aaron Ramsdale"
                        },
                        "shirt_number": "23",
                        "position": "GK"
                    },
                    {
                        "player": {
                            "id": 1334,
                            "name": "Bukayo Saka"
                        },
                        "shirt_number": "17",
                        "position": "FW"
                    }
                ]
            },
            {
                "team": {
                    "id": 1436,
                    "name": "Iran",
                    "stadium": "Azadi Stadium",
                    "country_id": 116,
                    "logo": "https:\/\/cdn.live-score-api.com\/teams\/32c97ca276ef2542ec9f8c309c5087ec.png"
                },
                "squad": [
                    {
                        "player": {
                            "id": 965,
                            "name": "Saman Ghoddos"
                        },
                        "shirt_number": "14",
                        "position": "MF"
                    },
                    {
                        "player": {
                            "id": 3230,
                            "name": "Alireza Jahanbakhsh"
                        },
                        "shirt_number": "7",
                        "position": "MF"
                    },
                    {
                        "player": {
                            "id": 5333,
                            "name": "Sadegh Moharrami"
                        },
                        "shirt_number": "2",
                        "position": "DF"
                    }
                ]
            }
        ]
    }
}


NameTypeExampleDescription
competitionobject{}The information of the competition in which the teams participate in the form of the standard competition response object
squadarray[]A list with all the players in the squad of the team for that competition only
squad.playerobejct{}The information of the player in the form of the standard player response object
squad.positionstringMFThe position on which the player usually plays. This does not mean that the player cannot temporarily change his position during a competition or a match.. There are 4 options: GK, DF, MF, and FW.
squad.shirt_numbernumber18The number on the shirt of the player during the competition
teamobject{}The information of the team with the standard competition response object structure
teamsarray[]An array containing all the teams and their squads.

Didn't find what you need?

Do no hesitate to contact us. We will get back to you as soon as possible.