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 vs Team Performance API

The Player Vs. Team Performance API gives the players statistics or performance against a team. It gives the economy rate, total runs, total hundreds, and the number of wickets scored by the player for the required team for the requested board & competition.

Request

  • Path: https://rest.cricketapi.com/rest/v3/player-vs-team-performance/{player_key}/
  • Method: GET
  • URL Params:

    • player_key - Required. Player key

    To get the player key, refer the Match API, Season Team API, and Season API.

  • Params:

    • access_token - Required.
    • board - Required. Possible values are 'icc', 'bcci'
    • competition - Required. Match competition - possible values are 'international-t20', 'international-one-day' 'international-test' and 'ipl'.
    • vs_team - Required. Team key To get the ICC Teams, refer ICC Team List
    • year - Optional. Please give the year from 2012 to present.

Response

  • data.stats - Object. Object of player stats against given team

Example

Request:

$ GET https://rest.cricketapi.com/rest/v3/player-vs-team-performance/ms_dhoni/?access_token=ACCESSTOKEN&board=icc&competition=international-t20&vs_team=sl

Response:

{
  "cache_key": "player_vs_team_stats_ms_dhoni_icc_international-t20_sl",
  "data": {
    "coverage_included": 100,
    "stats": {
      "as_captain": 0,
      "as_keeper": 5,
      "bat": {
        "average": 35,
        "ball": {
          "noball": 0,
          "regular": 26,
          "total": 26,
          "wide": 0
        },
        "best": {
          "match": {
            "card_name": "SL vs IND",
            "format": "t20",
            "innings": {
              "a_1": {
                "innings_index": 1,
                "overs": "18.0",
                "run_rate": 6.44,
                "run_str": "116/10 in 18.0",
                "runs": 116,
                "wickets": 10
              },
              "b_1": {
                "innings_index": 1,
                "overs": "20.0",
                "run_rate": 7.75,
                "run_str": "155/3 in 20.0",
                "runs": 155,
                "wickets": 3
              }
            },
            "key": "sl-vs-ind-2012-08-07",
            "name": "Sri Lanka vs India",
            "played_innings": [
              1
            ],
            "related_name": "",
            "result": "win",
            "result_by": {
              "difference": 39,
              "kind": "run"
            },
            "start": "1344277800",
            "status": "completed",
            "status_overview": "result",
            "teams": {
              "a": {
                "key": "sl",
                "name": "Sri Lanka",
                "score_string": "155/3 in 20.0"
              },
              "b": {
                "key": "ind",
                "name": "India",
                "score_string": "116/10 in 18.0"
              }
            }
          },
          "player": {
            "innings_index": 1,
            "stats": {
              "bat": {
                "4s": 2,
                "6s": 0,
                "balls": 14,
                "not_out": 1,
                "runs": 16,
                "strike_rate": 114.29
              },
              "bowl": {},
              "field": {
                "caught": 2,
                "run_out": 0,
                "stumped": 0
              }
            },
            "team_index": "b"
          },
          "season": {
            "key": "unknown_season",
            "name": "Unknown Season"
          }
        },
        "innings": 5,
        "milestone": {
          "100s": 0,
          "200s": 0,
          "30s": 0,
          "50s": 0
        },
        "previous_matches": [
          {
            "match": {
              "card_name": "SL vs IND",
              "format": "t20",
              "innings": {
                "a_1": {
                  "innings_index": 1,
                  "overs": "20.0",
                  "run_rate": 8.5,
                  "run_str": "170/7 in 20.0",
                  "runs": 170,
                  "wickets": 7
                },
                "b_1": {
                  "innings_index": 1,
                  "overs": "19.2",
                  "run_rate": 9,
                  "run_str": "174/3 in 19.2",
                  "runs": 174,
                  "wickets": 3
                }
              },
              "key": "slind_2017_t20_01",
              "name": "Sri Lanka vs India",
              "played_innings": [
                1
              ],
              "related_name": "Only T20 Match",
              "result": "win",
              "result_by": {
                "difference": 7,
                "kind": "wicket"
              },
              "start": "1504704600",
              "status": "completed",
              "status_overview": "result",
              "teams": {
                "a": {
                  "key": "sl",
                  "name": "Sri Lanka",
                  "score_string": "174/3 in 19.2"
                },
                "b": {
                  "key": "ind",
                  "name": "India",
                  "score_string": "170/7 in 20.0"
                }
              }
            },
            "player": {
              "innings_index": 1,
              "stats": {
                "bat": {
                  "4s": 0,
                  "6s": 0,
                  "balls": 1,
                  "not_out": 1,
                  "runs": 1,
                  "strike_rate": 100
                },
                "bowl": {},
                "field": {
                  "caught": 0,
                  "run_out": 0,
                  "stumped": 1
                }
              },
              "team_index": "b"
            },
            "season": {
              "key": "slind_2017",
              "name": "Sri Lanka vs India 2017"
            }
          },
          {
            "match": {
              "card_name": "IND vs SL",
              "format": "t20",
              "innings": {
                "a_1": {
                  "innings_index": 1,
                  "overs": "19.2",
                  "run_rate": 7.34,
                  "run_str": "142/5 in 19.2",
                  "runs": 142,
                  "wickets": 5
                },
                "b_1": {
                  "innings_index": 1,
                  "overs": "20.0",
                  "run_rate": 6.9,
                  "run_str": "138/9 in 20.0",
                  "runs": 138,
                  "wickets": 9
                }
              },
              "key": "asiacup_2016_g7",
              "name": "India vs Sri Lanka",
              "played_innings": [
                1
              ],
              "related_name": "7th Match",
              "result": "win",
              "result_by": {
                "difference": 5,
                "kind": "wicket"
              },
              "start": "1456819200",
              "status": "completed",
              "status_overview": "result",
              "teams": {
                "a": {
                  "key": "ind",
                  "name": "India",
                  "score_string": "142/5 in 19.2"
                },
                "b": {
                  "key": "sl",
                  "name": "Sri Lanka",
                  "score_string": "138/9 in 20.0"
                }
              }
            },
            "player": {
              "innings_index": 1,
              "stats": {
                "bat": {
                  "4s": 0,
                  "6s": 1,
                  "balls": 4,
                  "not_out": 1,
                  "runs": 7,
                  "strike_rate": 175
                },
                "bowl": {},
                "field": {
                  "caught": 2,
                  "run_out": 0,
                  "stumped": 1
                }
              },
              "team_index": "a"
            },
            "season": {
              "key": "asiacup_2016",
              "name": "ASIA CUP 2016"
            }
          },
          {
            "match": {
              "card_name": "IND vs SL",
              "format": "t20",
              "innings": {
                "a_1": {
                  "innings_index": 1,
                  "overs": "20.0",
                  "run_rate": 9.8,
                  "run_str": "196/6 in 20.0",
                  "runs": 196,
                  "wickets": 6
                },
                "b_1": {
                  "innings_index": 1,
                  "overs": "20.0",
                  "run_rate": 6.35,
                  "run_str": "127/9 in 20.0",
                  "runs": 127,
                  "wickets": 9
                }
              },
              "key": "indsl_2016_t20_02",
              "name": "India vs Sri Lanka",
              "played_innings": [
                1
              ],
              "related_name": "2nd T20 Match",
              "result": "win",
              "result_by": {
                "difference": 69,
                "kind": "run"
              },
              "start": "1455265800",
              "status": "completed",
              "status_overview": "result",
              "teams": {
                "a": {
                  "key": "ind",
                  "name": "India",
                  "score_string": "196/6 in 20.0"
                },
                "b": {
                  "key": "sl",
                  "name": "Sri Lanka",
                  "score_string": "127/9 in 20.0"
                }
              }
            },
            "player": {
              "innings_index": 1,
              "stats": {
                "bat": {
                  "4s": 1,
                  "6s": 0,
                  "balls": 5,
                  "not_out": 1,
                  "runs": 9,
                  "strike_rate": 180
                },
                "bowl": {},
                "field": {
                  "caught": 1,
                  "run_out": 0,
                  "stumped": 2
                }
              },
              "team_index": "a"
            },
            "season": {
              "key": "indsl_2016",
              "name": "India vs Sri Lanka 2016"
            }
          },
          {
            "match": {
              "card_name": "IND vs SL",
              "format": "t20",
              "innings": {
                "a_1": {
                  "innings_index": 1,
                  "overs": "18.5",
                  "run_rate": 5.36,
                  "run_str": "101/10 in 18.5",
                  "runs": 101,
                  "wickets": 10
                },
                "b_1": {
                  "innings_index": 1,
                  "overs": "18.0",
                  "run_rate": 5.83,
                  "run_str": "105/5 in 18.0",
                  "runs": 105,
                  "wickets": 5
                }
              },
              "key": "indsl_2016_t20_01",
              "name": "India vs Sri Lanka",
              "played_innings": [
                1
              ],
              "related_name": "1st T20 Match",
              "result": "lost",
              "result_by": {
                "difference": 5,
                "kind": "wicket"
              },
              "start": "1455006600",
              "status": "completed",
              "status_overview": "result",
              "teams": {
                "a": {
                  "key": "ind",
                  "name": "India",
                  "score_string": "101/10 in 18.5"
                },
                "b": {
                  "key": "sl",
                  "name": "Sri Lanka",
                  "score_string": "105/5 in 18.0"
                }
              }
            },
            "player": {
              "innings_index": 1,
              "stats": {
                "bat": {
                  "4s": 0,
                  "6s": 0,
                  "balls": 2,
                  "not_out": 0,
                  "runs": 2,
                  "strike_rate": 100
                },
                "bowl": {},
                "field": {
                  "caught": 0,
                  "run_out": 0,
                  "stumped": 0
                }
              },
              "team_index": "a"
            },
            "season": {
              "key": "indsl_2016",
              "name": "India vs Sri Lanka 2016"
            }
          },
          {
            "match": {
              "card_name": "SL vs IND",
              "format": "t20",
              "innings": {
                "a_1": {
                  "innings_index": 1,
                  "overs": "18.0",
                  "run_rate": 6.44,
                  "run_str": "116/10 in 18.0",
                  "runs": 116,
                  "wickets": 10
                },
                "b_1": {
                  "innings_index": 1,
                  "overs": "20.0",
                  "run_rate": 7.75,
                  "run_str": "155/3 in 20.0",
                  "runs": 155,
                  "wickets": 3
                }
              },
              "key": "sl-vs-ind-2012-08-07",
              "name": "Sri Lanka vs India",
              "played_innings": [
                1
              ],
              "related_name": "",
              "result": "win",
              "result_by": {
                "difference": 39,
                "kind": "run"
              },
              "start": "1344277800",
              "status": "completed",
              "status_overview": "result",
              "teams": {
                "a": {
                  "key": "sl",
                  "name": "Sri Lanka",
                  "score_string": "155/3 in 20.0"
                },
                "b": {
                  "key": "ind",
                  "name": "India",
                  "score_string": "116/10 in 18.0"
                }
              }
            },
            "player": {
              "innings_index": 1,
              "stats": {
                "bat": {
                  "4s": 2,
                  "6s": 0,
                  "balls": 14,
                  "not_out": 1,
                  "runs": 16,
                  "strike_rate": 114.29
                },
                "bowl": {},
                "field": {
                  "caught": 2,
                  "run_out": 0,
                  "stumped": 0
                }
              },
              "team_index": "b"
            },
            "season": {
              "key": "unknown_season",
              "name": "Unknown Season"
            }
          }
        ],
        "run": {
          "0s": 9,
          "1s": 9,
          "2s": 4,
          "3s": 0,
          "4s": 3,
          "6s": 1,
          "total": 35
        },
        "strike_rate": 134.62,
        "wicket": {
          "bowled": 0,
          "caught": 1,
          "lbw": 0,
          "not_out": 4,
          "retirehut": 0,
          "run_out": 0,
          "stumped": 0,
          "total": 1
        }
      },
      "bowl": {
        "average": null,
        "ball": {
          "legbye": 0,
          "noball": 0,
          "regular": 0,
          "total": 0,
          "wide": 0
        },
        "best": {},
        "economy": null,
        "innings": 0,
        "milestone": {
          "10w": 0,
          "3w": 0,
          "4w": 0,
          "5w": 0
        },
        "previous_matches": [],
        "run": {
          "total": 0
        },
        "strike_rate": null,
        "wicket": {
          "bowled": 0,
          "caught": 0,
          "lbw": 0,
          "run_out": 0,
          "stumped": 0,
          "total": 0
        }
      },
      "field": {
        "caught": 6,
        "run_out": 0,
        "stumped": 5
      },
      "last_updated_time": "1519999430",
      "matches": 6,
      "pom": 0,
      "upcoming_matches": []
    }
  },
  "expires": 1543124869,
  "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)