Player stats for the given league or board. It gives the following details:
Request
https://rest.cricketapi.com/rest/v2/player/{PLAYER_KEY}/league/{LEAGUE_OR_BOARD_KEY}/stats/
GET
URL Params:
PLAYER_KEY
- Required. Player keyLEAGUE_OR_BOARD_KEY
- Required, Possible values - icc
, ipl
Params:
access_token
- RequiredResponse
player.key
- string. Player key To get the player key. To get the player key, refer Match API & Season Team API.player.name
- string. Player Nameplayer.full_name
- string. Player Full Nameplayer.card_name
- string. Player Card nameplayer.batting_styles
- string. Player Batting styleplayer.bowling_styles
- string. Player Bowling styleplayer.stats.one-day
- string. Player One Day Statsplayer.stats.test
- string. Player Test Statsplayer.stats.t20
- string. Player T20 StatsStats Obj
stat.batting.matches
- int. Player played Matchesstat.batting.runs
- int. Player Scored Runsstat.batting.balls
- int. Player Faced Ballsstat.batting.innings
- int. Player Played Inningsstat.batting.high_score
- int. Player High Scorestat.batting.sixes
- int. Player Scored Sixesstat.batting.fours
- int. Player Scored Foursstat.batting.average
- int. Player Average Scorestat.batting.strike_rate
- float. Player Batting Strike Ratestat.batting.fifties
- int. Player Scored Fiftiesstat.batting.hundreds
- int. Player Scored Houndredsstat.batting.not_outs
- int. Player Not Outs Matchesstat.bowling.matches
- int. Player played Matchesstat.bowling.runs
- int. Player Given Runsstat.bowling.wickets
- int. Player taken wicketsstat.bowling.balls
- int. Player Bowled ballsstat.bowling.innings
- int. Player Played Inningsstat.bowling.average
- int. Player Average given runsstat.bowling.strike_rate
- int. Player balls strike ratestat.bowling.economy
- int. Player bowling economystat.bowling.best_match
- obj. Player best matchstat.bowling.best_match_bowling
- str. Player best matchstat.bowling.best_innings
- obj. Player best inningsstat.bowling.best_innings_bowling
- str. Player best inningsstat.bowling.four_wickets
- int. Player four wicket matchesstat.bowling.five_wickets
- int. Player five wicket matchesstat.bowling.ten_wickets
- int. Player ten wicket matchesstat.fielding.catches
- int. Player Catchesstat.fielding.stumpings
- int. Player StumpingsRequest For ICC Stats
$ GET https://rest.cricketapi.com/rest/v2/player/v_kohli/league/icc/stats/?access_token=ACCESSTOKEN
Response
{
"cache_key": "player|v_kohli|icc_stats",
"data": {
"player": {
"batting_styles": [
"Right-Hand Bat"
],
"bowling_styles": [
"Right-Arm Medium"
],
"card_name": "V Kohli",
"full_name": "Virat Kohli",
"identified_roles": {
"batsman": true,
"bowler": false,
"keeper": false
},
"key": "v_kohli",
"name": "Virat Kohli",
"recent_teams": [
{
"card_name": "India",
"key": "ind",
"name": "India"
},
{
"card_name": "Royal Challengers Bangalore",
"key": "rcb",
"name": "Royal Challengers Bangalore"
}
],
"stats": {
"one-day": {
"batting": {
"average": 59.81,
"balls": 11016,
"fifties": 48,
"fours": 962,
"high_score": "183",
"hundreds": 38,
"innings": 208,
"matches": 216,
"not_outs": 37,
"runs": 10227,
"sixes": 110,
"strike_rate": 92.84
},
"bowling": {
"average": 166.25,
"balls": 641,
"best_innings": {
"runs": 15,
"wickets": 1
},
"best_innings_bowling": "1/15",
"economy": 6.22,
"five_wickets": 0,
"four_wickets": 0,
"innings": 48,
"matches": 216,
"runs": 665,
"strike_rate": 160.25,
"ten_wickets": 0,
"wickets": 4
},
"fielding": {
"catches": 103,
"stumpings": 0
},
"last_match_date": "2018-11-01T08:00+00:00",
"last_match_key": "indwi_2018_one-day_05",
"last_update_time": "2018-11-04T16:47+00:00"
},
"t20": {
"batting": {
"average": 47.86,
"balls": 1551,
"fifties": 18,
"fours": 214,
"high_score": "90*",
"hundreds": 0,
"innings": 59,
"matches": 63,
"not_outs": 15,
"runs": 2106,
"sixes": 46,
"strike_rate": 135.78
},
"bowling": {
"average": 49.5,
"balls": 146,
"best_innings": {
"runs": 13,
"wickets": 1
},
"best_innings_bowling": "1/13",
"economy": 8.14,
"five_wickets": 0,
"four_wickets": 0,
"innings": 12,
"matches": 63,
"runs": 198,
"strike_rate": 36.5,
"ten_wickets": 0,
"wickets": 4
},
"fielding": {
"catches": 32,
"stumpings": 0
},
"last_match_date": "2018-11-21T07:50+00:00",
"last_match_key": "ausind_2018_t20_01",
"last_update_time": "2018-11-22T10:14+00:00"
},
"test": {
"batting": {
"average": 54.58,
"balls": 10865,
"fifties": 19,
"fours": 699,
"high_score": "243",
"hundreds": 24,
"innings": 124,
"matches": 73,
"not_outs": 8,
"runs": 6331,
"sixes": 18,
"strike_rate": 58.27
},
"bowling": {
"average": null,
"balls": 163,
"best_innings": {
"runs": null,
"wickets": null
},
"economy": 2.8,
"five_wickets": 0,
"four_wickets": 0,
"innings": 9,
"matches": 73,
"runs": 76,
"strike_rate": null,
"ten_wickets": 0,
"wickets": 0
},
"fielding": {
"catches": 68,
"stumpings": 0
},
"last_match_date": "2018-10-12T04:00+00:00",
"last_match_key": "indwi_2018_test_02",
"last_update_time": "2018-10-14T14:30+00:00"
}
}
}
},
"expires": 1542902385,
"status": true,
"status_code": 200,
"version": "3.0.1"
}
Request For IPL Stats
$ GET https://rest.cricketapi.com/rest/v2/player/v_kohli/league/ipl/stats/?access_token=ACCESSTOKEN
Response
{
"cache_key": "player|v_kohli|ipl_stats",
"data": {
"player": {
"batting_styles": [
"Right-Hand Bat"
],
"bowling_styles": [
"Right-Arm Medium"
],
"card_name": "V Kohli",
"full_name": "Virat Kohli",
"identified_roles": {
"batsman": true,
"bowler": false,
"keeper": false
},
"key": "v_kohli",
"name": "Virat Kohli",
"recent_teams": [
{
"card_name": "India",
"key": "ind",
"name": "India"
},
{
"card_name": "Royal Challengers Bangalore",
"key": "rcb",
"name": "Royal Challengers Bangalore"
}
],
"stats": {
"t20": {
"batting": {
"average": 38.36,
"balls": 3784,
"fifties": 34,
"fours": 434,
"high_score": "113",
"hundreds": 4,
"innings": 155,
"matches": 164,
"not_outs": 26,
"runs": 4948,
"sixes": 177,
"strike_rate": 130.76
},
"bowling": {
"average": 92,
"balls": 251,
"best_innings": {
"runs": 25,
"wickets": 2
},
"best_innings_bowling": "2/25",
"economy": 8.8,
"five_wickets": 0,
"four_wickets": 0,
"innings": 26,
"matches": 164,
"runs": 368,
"strike_rate": 62.75,
"ten_wickets": 0,
"wickets": 4
},
"fielding": {
"catches": 69,
"stumpings": 0
},
"last_match_date": "2018-05-19T10:30+00:00",
"last_match_key": "iplt20_2018_g53",
"last_update_time": "2018-05-19T13:57+00:00"
}
}
}
},
"expires": 1542902798,
"status": true,
"status_code": 200,
"version": "3.0.1"
}