Cricsheet

v0.2.1
io.github.pipeworx-io/cricsheet Checked 3 days ago Published 1 month ago

cricsheet -- ball-by-ball cricket data collapsed to match / player / team questions (fleet #2975).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cricsheet_match

Full result and scorecard for one cricket match: teams, venue, date, toss, result, and for every innings the batting card (each batter's runs/balls/4s/6s/how out) and bowling card (each bowler's overs/runs/wickets). Covers Test, ODI and T20 International cricket plus the IPL (Cricsheet, ODC-BY). Use cricsheet_find_matches first to get a match_id if you don't already have one.

ParameterTypeDescription
match_id *numberCricsheet match id, e.g. 1082591. Get one from cricsheet_find_matches.

cricsheet_player_stats

A cricketer's career batting and bowling aggregates (matches, runs, average, strike rate, 100s/50s; wickets, bowling average, economy) from Cricsheet's Test/ODI/T20I/IPL match data. Pass a name or partial name ("Kohli", "V Kohli") -- Cricsheet stores short-form names, so this matches case-insensitively and returns a candidate list if the name is ambiguous. Optionally scope to one format with `format`. Covers only matches Cricsheet has scored ball-by-ball, not a player's entire career.

ParameterTypeDescription
player *stringPlayer name or partial name, e.g. "Kohli" or "V Kohli".
formatstringMatch format: "Test", "ODI", "T20I" (international T20), or "IPL". Omit to search across every format this pack holds.

cricsheet_head_to_head

Head-to-head record between two cricket teams from Cricsheet's Test/ODI/T20I/IPL match data: total matches, each team's wins, ties/no-results, and the most recent matches with their results. Pass team names as Cricsheet uses them, e.g. "India", "Australia", "Mumbai Indians" (IPL). Optionally scope to one format with `format`.

ParameterTypeDescription
team_a *stringFirst team name, e.g. "India".
team_b *stringSecond team name, e.g. "Australia".
formatstringMatch format: "Test", "ODI", "T20I" (international T20), or "IPL". Omit to search across every format this pack holds.
limitnumberMax recent matches to list, 1-100. Default 10.
offsetnumberPagination offset into the recent-matches list. Default 0.

cricsheet_find_matches

Search Cricsheet's Test/ODI/T20I/IPL match index by team, format, season, venue and/or player, returning match_id plus date/teams/venue/result for each hit -- use this to discover match_ids for cricsheet_match. With no filters, returns the most recent matches across every format. Provide at least one filter to narrow a specific search.

ParameterTypeDescription
formatstringMatch format: "Test", "ODI", "T20I" (international T20), or "IPL". Omit to search across every format this pack holds.
limitnumberMax matches to return, 1-200. Default 50.
offsetnumberPagination offset. Default 0.
playerstringExact player name as Cricsheet stores it (see cricsheet_player_stats to resolve a partial name first).
seasonstringSeason label as Cricsheet records it, e.g. "2023" or "2007/08".
teamstringTeam name, e.g. "England" or "Chennai Super Kings" (IPL).
venuestringVenue name or partial venue name, e.g. "Lord's".