Season Player Stats API gives stats for the given player in the season.
Guidelines: How Can Player Stats API Be Used.?
The response has the Total Number of Fours, Sixes, and Runs scored in the season.
Request
https://rest.cricketapi.com/rest/v2/season/{SEASON_KEY}/player/{PLAYER_KEY}/stats/
GET
Params:
access_token
- RequiredSEASON_KEY
- Required. Season keyPLAYER_KEY
- Required. Player keyResponse
data.player.batting
- dict object.data.player.bowling
- dict object.data.player.fielding
- dict object.Request
$ GET https://rest.cricketapi.com/rest/v2/season/iplt20_2018/player/v_kohli/stats/?access_token=ACCESSTOKEN
Response
{
"status": true,
"version": "2.0.3",
"status_code": 200,
"expires": "1542893532.0",
"Etag": "1542893532.0",
"cache_key": "player_stats|asiacup_2018|s_malik",
"data": {
"player": {
"key": "s_malik",
"name": "Shoaib Malik",
"batting_style": "Right-Hand Bat",
"country": "pk",
"short_name": "Shoaib Malik",
"role": "Batsman",
"full_name": "Shoaib Malik",
"bowling": {
"dots": 35,
"boundries": 6,
"runs": 85,
"best": {
"runs": 14,
"balls": 27,
"match": "asiacup_2018_s3",
"wickets": 0
},
"wickets": 0
},
"fielding": {
"catches": 0
},
"batting": {
"dots": 121,
"sixes": 4,
"runs": 211,
"fours": 11,
"boundries": 15,
"best": {
"sixes": 2,
"fours": 4,
"balls": 90,
"runs": 78,
"match": "asiacup_2018_s3"
}
}
}
}
}
Request
https://rest.cricketapi.com/rest/v4/season/SEASON-KEY/player/PLAYER-KEY/stats/
GET
Params:
access_token
- RequiredSEASON_KEY
- Required. Season keyPLAYER_KEY
- Required. Player keyResponse
data.player.batting
- dict object.data.player.bowling
- dict object.data.player.fielding
- dict object.Request
$ GET https://rest.cricketapi.com/rest/v4/season/c.season.rnj.3bf96/player/sh_lumba/stats/?access_token=ACCESS-TOKEN
Response
{
"status": true,
"version": "4.0.0",
"status_code": 200,
"expires": "1577209773.0",
"Etag": "1577209773.0",
"cache_key": "player_stats|c.season.rnj.3bf96|sh_lumba|stats",
"data": {
"player": {
"batting": {
"best": {
"balls": 9,
"fours": 1,
"match": "c.match.13th_match.aa41d",
"runs": 4,
"sixes": 0
},
"boundries": 1,
"fours": 1,
"sixes": 0,
"runs": 4
},
"bowling": {
"best": {
"balls": 0,
"match": null,
"runs": 0,
"wickets": 0
},
"runs": 0,
"wickets": 0
},
"fielding": {
"catches": 4
},
"batting_style": "Right-Hand Bat",
"country": "in",
"full_name": "Sharad Lumba",
"key": "sh_lumba",
"name": "Sharad Lumba",
"role": "Batsman",
"short_name": "Sharad Lumba"
}
}