Now, we will show you the real magic. Again, there are multiple options for receiving the data you need. However, we recommend the Get Team Squad by Team ID endpoint (for current-season team squads) or the Squad by Team and Season ID endpoint (for historical team squads).
Let’s say you want to see the players from Liverpool (Team ID 8) with their current season stats.
https://api.sportmonks.com/v3/football/squads/teams/8?api_token=[YOUR_TOKEN]&include=player.statistics.details&filters=playerStatisticSeasons:21646
The other endpoint would look like this. We will look at the 2022/2023 season for this endpoint (different season ID).
https://api.sportmonks.com/v3/football/squads/seasons/19734/teams/19?api_token=[YOUR_TOKEN]&include=player;details.type
Our API can do way more. You can start playing around with the API or look at the documentation to find all this information.
{
"data": [
{
"id": 32901,
"transfer_id": 1615,
"player_id": 241036,
"team_id": 8,
"position_id": 27,
"detailed_position_id": 152,
"start": "2022-01-30",
"end": "2027-06-30",
"captain": false,
"jersey_number": 7,
"player": {
"id": 241036,
"sport_id": 1,
"country_id": 353,
"nationality_id": 353,
"city_id": 6818,
"position_id": 27,
"detailed_position_id": 152,
"type_id": 26,
"common_name": "L. Díaz Marulanda",
"firstname": "Luis Fernando",
"lastname": "Díaz Marulanda",
"name": "Luis Fernando Díaz Marulanda",
"display_name": "Luis Díaz",
"image_path": "https://cdn.sportmonks.com/images/soccer/players/12/241036.png",
"height": 180,
"weight": null,
"date_of_birth": "1997-01-13",
"gender": "male",
"statistics": [
{
"id": 483841199,
"player_id": 241036,
"team_id": 8,
"season_id": 21646,
"has_values": true,
"position_id": 27,
"jersey_number": 7,
"details": [
{
"id": 34125721,
"player_statistic_id": 483841199,
"type_id": 41,
"value": {
"total": 30
}
},
{
"id": 31622758,
"player_statistic_id": 483841199,
"type_id": 42,
"value": {
"total": 88
}
},
{
"id": 34152907,
"player_statistic_id": 483841199,
"type_id": 47,
"value": {
"total": 0,
"won": 1,
"scored": 0,
"committed": 0,
"saved": 0,
"missed": 0
}
},
{
"id": 31622678,
"player_statistic_id": 483841199,
"type_id": 51,
"value": {
"total": 15
}
},
{
"id": 31622598,
"player_statistic_id": 483841199,
"type_id": 52,
"value": {
"total": 8,
"goals": 8,
"penalties": 0
}
},
{
"id": 31695316,
"player_statistic_id": 483841199,
"type_id": 56,
"value": {
"total": 45
}
},
{
"id": 31622764,
"player_statistic_id": 483841199,
"type_id": 58,
"value": {
"total": 28
}
},
{
"id": 31622793,
"player_statistic_id": 483841199,
"type_id": 59,
"value": {
"in": 5,
"out": 18
}
},
{
"id": 36313024,
"player_statistic_id": 483841199,
"type_id": 64,
"value": {
"total": 2
}
},
{
"id": 31622804,
"player_statistic_id": 483841199,
"type_id": 78,
"value": {
"total": 30
}
},
{
"id": 34139451,
"player_statistic_id": 483841199,
"type_id": 79,
"value": {
"total": 5
}
},
{
"id": 31622688,
"player_statistic_id": 483841199,
"type_id": 80,
"value": {
"total": 932
}
},
{
"id": 34054157,
"player_statistic_id": 483841199,
"type_id": 84,
"value": {
"total": 3,
"home": 1,
"away": 2
}
},
{
"id": 31622777,
"player_statistic_id": 483841199,
"type_id": 86,
"value": {
"total": 30
}
},
{
"id": 33032130,
"player_statistic_id": 483841199,
"type_id": 87,
"value": {
"total": 3
}
},
{
"id": 31622621,
"player_statistic_id": 483841199,
"type_id": 88,
"value": {
"total": 31
}
},
{
"id": 31622550,
"player_statistic_id": 483841199,
"type_id": 94,
"value": {
"total": 69
}
},
{
"id": 31695318,
"player_statistic_id": 483841199,
"type_id": 96,
"value": {
"total": 38
}
},
{
"id": 31695377,
"player_statistic_id": 483841199,
"type_id": 98,
"value": {
"total": 25
}
},
{
"id": 31695288,
"player_statistic_id": 483841199,
"type_id": 99,
"value": {
"total": 6
}
},
{
"id": 31879006,
"player_statistic_id": 483841199,
"type_id": 100,
"value": {
"total": 3
}
},
{
"id": 34040253,
"player_statistic_id": 483841199,
"type_id": 101,
"value": {
"total": 7
}
},
{
"id": 31622574,
"player_statistic_id": 483841199,
"type_id": 105,
"value": {
"total": 384
}
},
{
"id": 31622577,
"player_statistic_id": 483841199,
"type_id": 106,
"value": {
"total": 153
}
},
{
"id": 31695294,
"player_statistic_id": 483841199,
"type_id": 107,
"value": {
"total": 26
}
},
{
"id": 31622556,
"player_statistic_id": 483841199,
"type_id": 108,
"value": {
"total": 112
}
},
{
"id": 33032127,
"player_statistic_id": 483841199,
"type_id": 109,
"value": {
"total": 55
}
},
{
"id": 31622565,
"player_statistic_id": 483841199,
"type_id": 110,
"value": {
"total": 21
}
},
{
"id": 31622522,
"player_statistic_id": 483841199,
"type_id": 116,
"value": {
"total": 793
}
},
{
"id": 31622634,
"player_statistic_id": 483841199,
"type_id": 117,
"value": {
"total": 57
}
},
{
"id": 31622713,
"player_statistic_id": 483841199,
"type_id": 118,
"value": {
"average": 7.34,
"highest": 9.08,
"lowest": 6.32
}
},
{
"id": 31622669,
"player_statistic_id": 483841199,
"type_id": 119,
"value": {
"total": 2423
}
},
{
"id": 31622653,
"player_statistic_id": 483841199,
"type_id": 122,
"value": {
"total": 53
}
},
{
"id": 31622663,
"player_statistic_id": 483841199,
"type_id": 123,
"value": {
"total": 43
}
},
{
"id": 36313026,
"player_statistic_id": 483841199,
"type_id": 124,
"value": {
"total": 1
}
},
{
"id": 31622534,
"player_statistic_id": 483841199,
"type_id": 321,
"value": {
"total": 34
}
},
{
"id": 31622644,
"player_statistic_id": 483841199,
"type_id": 322,
"value": {
"total": 29
}
},
{
"id": 33107167,
"player_statistic_id": 483841199,
"type_id": 323,
"value": {
"total": 5
}
},
{
"id": 33107168,
"player_statistic_id": 483841199,
"type_id": 580,
"value": {
"total": 5
}
},
{
"id": 31622542,
"player_statistic_id": 483841199,
"type_id": 581,
"value": {
"total": 11
}
},
{
"id": 31622514,
"player_statistic_id": 483841199,
"type_id": 1584,
"value": {
"total": 85.09
}
},
{
"id": 36146030,
"player_statistic_id": 483841199,
"type_id": 9676,
"value": {
"average ppg per season": "0.24"
}
}
]
}
]
}
},