The Team Stats API gives the statistics of the required team for the required Tournament.
Get the Tournament Key from the Recent Tournament API, and the Tournament Team Key from the Tournament API.
Request URL Path:
https://api.footballapi.com/v1/tournament/TOURNAMENT_KEY/team/TEAM_KEY/stats/
Method: GET
Parameters:
access_token
- Required.
https://api.footballapi.com/v1/tournament/1002227289901109249/team/1002227289334878217/stats/?access_token=ACCESS_TOKEN
{
"cache_key": "football|tournament|1002227289901109249|team|1002227289188077569|stats",
"data": {
"stats": {
"stats": {
"defensive": {
"fouls": 95,
"offsides": 7,
"own_goals": 2
},
"offensive": {
"clean_sheets": 1,
"fouls_drawn": 56,
"goals": 18,
"penalty_goals": 0
},
"summary": {
"draws": 3,
"goals": 18,
"losts": 2,
"red_cards": 1,
"wons": 3,
"yellow_cards": 7
}
},
"team": {
"code": "RUS",
"key": "1002227289188077569",
"name": "Russia"
}
}
},
"expires": 1532960239,
"status": true,
"status_code": 200,
"version": "1.0.0"
}