ball_lav ball_pink Asset 2 Dhoni have 144.78 Strike rate against MI 7 Batting performance of MSD with MI? Question Answer MSD performance with MI? ball_lav ball_pink Asset 2

Cricket Player Stats API

Player stats for the given league or board. It gives the following details:

  • Fielding: Number of catches and Number of stumpings.
  • Batting: matches, runs, fours, sixes,strike_rate,etc.
  • Bowling: matches, balls, runs, strike_rate, strike_rate,etc.

Request

  • Path: https://rest.cricketapi.com/rest/v2/player/{PLAYER_KEY}/league/{LEAGUE_OR_BOARD_KEY}/stats/
  • Method: GET
  • URL Params:

    • PLAYER_KEY - Required. Player key
    • LEAGUE_OR_BOARD_KEY - Required, Possible values - icc, ipl
  • Params:

    • access_token - Required

Response

  • 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 Name
  • player.full_name - string. Player Full Name
  • player.card_name - string. Player Card name
  • player.batting_styles - string. Player Batting style
  • player.bowling_styles - string. Player Bowling style
  • player.stats.one-day - string. Player One Day Stats
  • player.stats.test - string. Player Test Stats
  • player.stats.t20 - string. Player T20 Stats
  • Stats Obj
  • stat.batting.matches - int. Player played Matches
  • stat.batting.runs - int. Player Scored Runs
  • stat.batting.balls - int. Player Faced Balls
  • stat.batting.innings - int. Player Played Innings
  • stat.batting.high_score - int. Player High Score
  • stat.batting.sixes - int. Player Scored Sixes
  • stat.batting.fours - int. Player Scored Fours
  • stat.batting.average - int. Player Average Score
  • stat.batting.strike_rate - float. Player Batting Strike Rate
  • stat.batting.fifties - int. Player Scored Fifties
  • stat.batting.hundreds - int. Player Scored Houndreds
  • stat.batting.not_outs - int. Player Not Outs Matches
  • stat.bowling.matches - int. Player played Matches
  • stat.bowling.runs - int. Player Given Runs
  • stat.bowling.wickets - int. Player taken wickets
  • stat.bowling.balls - int. Player Bowled balls
  • stat.bowling.innings - int. Player Played Innings
  • stat.bowling.average - int. Player Average given runs
  • stat.bowling.strike_rate - int. Player balls strike rate
  • stat.bowling.economy - int. Player bowling economy
  • stat.bowling.best_match - obj. Player best match
  • stat.bowling.best_match_bowling - str. Player best match
  • stat.bowling.best_innings - obj. Player best innings
  • stat.bowling.best_innings_bowling - str. Player best innings
  • stat.bowling.four_wickets - int. Player four wicket matches
  • stat.bowling.five_wickets - int. Player five wicket matches
  • stat.bowling.ten_wickets - int. Player ten wicket matches
  • stat.fielding.catches - int. Player Catches
  • stat.fielding.stumpings - int. Player Stumpings

Sample Player Stats API Request & Response

Request 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"
}

View all Docs

True Support Center

Not sure, what plan to choose? Just get in touch us. We are committed to providing a solution to all cricket data requirements. Feel free to write your technical questions, to know about best practice and guidelines.

000-800-040-1803 (Indian Tollfree Number)

+1 (855) 2SPORT4 (US Tollfree Number)