Competition Squads
On this documentation page, we show how you can use our football API to get the information about the predefined competitions squads that a single team announces before a big competition starts.
This football API endpoint provides the squad that a single team has announced for a given competition. In order to get the squads for all teams in the competition you have chosen you should use the competitions rosters API endpoint. Using the alternative API endpoint will save from your daily request quota as well.
ENDPOINT
This football API list the 23 to 26 player squads that coaches announce before the start of big international competitions. The endpoint provides data in 30+ languages as long as your chosen package supports this. The JSON response structure is similar to the player data response provided from the match lineups API endpoint.
Name | Type | Required | Example | Description |
---|---|---|---|---|
competition_id | Number | 1 | 362 | The id of the competition in which the team participates |
lang | String | ar | The 2 letter code of the language, if we want the names of the players in a language different than English. These translations are supported by certain packages only. | |
team_id | Number | 1 | 211 | The id of the team which competition squad we want to get |
RESPONSE
{
"success": true,
"data": [
{
"id": "201",
"name": "Ante Rebic",
"shirt_number": "18",
"position": "FW"
},
{
"id": "8816",
"name": "Andrej Kramaric",
"shirt_number": "9",
"position": "FW"
}
]
}
Name | Type | Example | Description |
---|---|---|---|
id | Number | 201 | The id of the player |
name | String | Ante Rebic | The name of the player |
position | String | FW | The 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. |
shirt_number | Number | 18 | The number on the shirt of the player during the competition |