GETTeam squad Standard, World Cup
Current squad, or the squad of a past season when season_id is given.
/v2.2/teams/ with t=squad
Try it in the interactive referenceAll Teams operations
Request
GET /v2.2/teams/?api_key=API_KEY&t=squad&id=2868
- Plans: Standard, World Cup. Free plans carry the Standard datasets. Other plans receive
403 with meta.msg = Endpoint not available for your plan. - Authenticate with
api_key=API_KEY in the URL, or Authorization: Bearer API_KEY as an alternative. Both use the same key, without a username. See authentication methods.
Parameters
| Name | Required | Description | Example |
|---|
id | yes | Team ID. | 111 |
season_id | no | Season ID. | 13480 |
Example response
{
"data": {
"formation": null,
"squad": [
{
"player": {
"id": 28581448,
"name": "Savic",
"common_name": "",
"firstname": "Savic",
"lastname": " Sergej",
"weight": null,
"height": 186,
"age": 18,
"img": "https://cdn.soccersapi.com/images/soccer/players/50/28581448.png",
"country": {
"id": 15,
"name": "Austria",
"cc": "at"
}
},
"number": 3,
"captain": null,
"position": "D",
"order": null
}
]
},
"meta": {
"requests_left": 2950,
"user": "your_username",
"plan": "Soccer API 50",
"page": 1,
"pages": 1,
"count": 1,
"total": 1,
"msg": ""
}
}