The Player Stats API gives the statistics of the required player for the required tournament.
Get the Tournament Key from Recent Tournament API, and the Player Key from the Tournament Team API.
Request URL Path:
https://api.footballapi.com/v1/tournament/TOURNAMENT_KEY/player/PLAYER_KEY/stats/
Method: GET
Parameters:
access_token
- Required.
https://api.footballapi.com/v1/tournament/1002227289901109249/player/1003615050461745168/stats/?access_token=ACCESS_TOKEN
{
"cache_key": "football|tournament|1002227289901109249|player|1003590916843376641|stats",
"data": {
"stats": {
"player": {
"jersey_name": "Ronaldo",
"key": "1003590916843376641",
"name": "Cristiano Ronaldo"
},
"stats": {
"defensive": {
"fouls": 4,
"offsides": 1,
"own_goals": 0
},
"offensive": {
"assists": 0,
"clean_sheets": 0,
"fouls_drawn": 15,
"goals": 4,
"penalty_goals": 1
},
"summary": {
"assists": 0,
"goals": 4,
"matches_played": 0,
"minutes_played": 384,
"player_of_the_match": 2,
"red_cards": 0,
"yellow_cards": 2
}
}
}
},
"expires": 1532960520,
"status": true,
"status_code": 200,
"version": "1.0.0"
}