get_player_stats
Retrieve detailed cricket player statistics, including batting and bowling data, for Test, ODI, or T20 formats by specifying the player name. Includes ICC rankings, performance metrics, and basic player info.
Instructions
Get comprehensive cricket player statistics including batting and bowling data from Cricbuzz.
Args: player_name (str): The name of the cricket player. match_format (str, optional): The match format to get stats for. Can be "Test", "ODI", or "T20". If not provided, all stats are returned.
Returns: dict: A dictionary containing complete player statistics including: - Basic info (name, country, role, image) - ICC rankings for batting and bowling - Detailed batting stats (matches, runs, average, strike rate, centuries, fifties) - Detailed bowling stats (balls, runs, wickets, best figures, economy, five-wicket hauls) If match_format is specified, returns stats for that format only.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
match_format | No | ||
player_name | Yes |