Introduction
You can retrieve statistics for all seasons the player has played in via the stats
include on player level. Note that it might become useful to add a filter, so that only the data you are looking for is returned.
"stats": {
"data": [
{
"player_id": 184798, // Lionel Messi, Barcelona - La Liga 2018/2019
"team_id": 83,
"league_id": 564,
"season_id": 13133,
"captain": 18,
"minutes": 1707,
"appearences": 21,
"lineups": 19,
"substitute_in": 2,
"substitute_out": 1,
"substitutes_on_bench": 2,
"goals": 21,
"assists": 10,
"saves": 0,
"inside_box_saves": 0,
"dispossesed": 0,
"interceptions": 1,
"yellowcards": 1,
"yellowred": 0,
"redcards": 0,
"type": "domestic",
"tackles": 4,
"blocks": 0,
"hit_post": 7,
"fouls": {
"committed": 12,
"drawn": 40
},
"crosses": {
"total": 44,
"accuracy": 0
},
"dribbles": {
"attempts": 132,
"success": 80,
"dribbled_past": 10
},
"duels": {
"total": 257,
"won": 133
},
"passes": {
"total": 956,
"accuracy": 82,
"key_passes": 63
},
"penalties": {
"won": 0,
"scores": 2,
"missed": 0,
"committed": 0,
"saves": 0
}
}
]
}```
Relationship Details
Below you can find the details for this relationship.
Questions?
We're always happy to help with code or other questions you might have! Search our documentation, contact support, or get in touch with our sales team.
This article was last updated on 2019-01-30 14:02:19