get_player_stats
Retrieve detailed cricket player statistics, including batting and bowling data, from Cricbuzz. Specify a player name and optionally filter by match format (Test, ODI, T20). Returns 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 |