Guides
Cricket data, one question at a time
Working Python, JavaScript and cURL for common cricket data questions, each run against the live API with the real response shown.
How do I get cricket ball-by-ball data in Python?
Every delivery of a match: batter, bowler, runs, extras, the wicket and fielders, the score after the ball and our win probability.
get_deliveries · 10 credits
How do I get a batter's record against a bowler in Python?
Balls, runs, strike rate, dots, fours, sixes and every dismissal for one batter against one bowler, overall and by format.
get_matchup · 5 credits
How do I get a cricket win probability chart in Python?
Our model's chance each side wins at the end of every over of a limited-overs match, and the ten balls that moved it most.
get_win_probability · 10 credits
How do I get historical cricket odds in Python?
Each sportsbook's opening and closing match-winner price for a match, from mid-2020, decimal and American.
get_odds · 5 credits
How do I compare in-play cricket odds with a win probability model?
At each in-play price, the median margin-free price, our win probability after the last ball bowled before it, the score and the gap.
get_market_vs_model · 10 credits
How do I get every IPL match result in Python?
Every match of an IPL season with both scores, the toss, the result and the margin, one row per match.
get_matches · 2 credits
How do I get a batter's powerplay and death overs stats in Python?
A player's batting and bowling split by phase of the innings: powerplay, middle overs and death, counted from every ball.
get_player_stats · 5 credits
How do I find how a cricket ground plays in Python?
Average first and second innings totals at a ground by format, how often the side batting first wins, what captains choose at the toss and how often the toss winner wins.
get_venue · 5 credits
How do I get cricket leaderboards in Python?
The top run scorers, wicket takers or best strike rates in a competition, season or format, counted from the balls.
get_leaders · 5 credits
How do I get cricket team ratings in Python?
Our Elo for every side in a format, best first, from results alone: Test sides, ODI sides, T20 franchises, men's or women's.
get_ratings · 2 credits