Cricket Database
0 of 50 calls today
Get a free API key Sign in Dashboard Upgrade

Matchups

On each planFree keySampleMatch WeekSampleArchiveSampleProSampleAnalyst ProIn fullMCP toolbatter_vs_bowler

Batter against bowler: balls, runs, dismissals, strike rate and average.

GEThttps://api.cricketdatabase.com/v1/analytics/matchups

Try it

Kept in this browser and filled in on every docs page.

Press Run to call the API with your key. The answer appears here.

    

Parameters

NameTypeRequiredDescriptionValues
batterstringyes
bowlerstringyes

Returns

FieldTypeWhat it holds
dataobject
data.batterobject
data.batter.playerstringA player's address name
data.batter.namestringThe name as shown
data.bowlerobject
data.bowler.playerstringA player's address name
data.bowler.namestringThe name as shown
data.ballsintegerBalls
data.runsintegerRuns
data.dismissalsinteger
data.strike_ratenumber
data.averagenumber
data.dotsinteger
data.foursinteger
data.sixesinteger
data.matchesinteger
data.by_formatobject
data.by_format.odiobject
data.by_format.odi.ballsintegerBalls
data.by_format.odi.runsintegerRuns
data.by_format.odi.dismissalsinteger
data.by_format.odi.dotsinteger
data.by_format.odi.foursinteger
data.by_format.odi.sixesinteger
data.by_format.odi.matchesinteger
data.by_format.odi.how_outobject
data.by_format.odi.how_out.caughtinteger
data.by_format.odi.strike_ratenumber
data.by_format.odi.averagenumber
data.by_format.testobject
data.by_format.test.ballsintegerBalls
data.by_format.test.runsintegerRuns
data.by_format.test.dismissalsinteger
data.by_format.test.dotsinteger
data.by_format.test.foursinteger
data.by_format.test.sixesinteger
data.by_format.test.matchesinteger
data.by_format.test.how_outobject
data.by_format.test.how_out.bowledinteger
data.by_format.test.how_out.caughtinteger
data.by_format.test.how_out.lbwinteger
data.by_format.test.strike_ratenumber
data.by_format.test.averagenumber
metaobject
meta.planstringThe plan the key is on

Example answer

A real answer for /v1/analytics/matchups?batter=je-root&bowler=pj-cummins, lists cut to their first two items.

{
    "data": {
        "batter": {
            "player": "je-root",
            "name": "JE Root"
        },
        "bowler": {
            "player": "pj-cummins",
            "name": "PJ Cummins"
        },
        "balls": 643,
        "runs": 348,
        "dismissals": 16,
        "strike_rate": 54.12,
        "average": 21.75,
        "dots": 461,
        "fours": 40,
        "sixes": 1,
        "matches": 28,
        "by_format": {
            "odi": {
                "balls": 84,
                "runs": 54,
                "dismissals": 3,
                "dots": 50,
                "fours": 5,
                "sixes": 0,
                "matches": 8,
                "how_out": {
                    "caught": 3
                },
                "strike_rate": 64.29,
                "average": 18
            },
            "test": {
                "balls": 559,
                "runs": 294,
                "dismissals": 13,
                "dots": 411,
                "fours": 35,
                "sixes": 1,
                "matches": 20,
                "how_out": {
                    "bowled": 2,
                    "caught": 9,
                    "lbw": 2
                },
                "strike_rate": 52.59,
                "average": 22.62
            }
        }
    },
    "meta": {
        "plan": "plus"
    }
}

Errors

StatusCodeWhen
400bad_requestA value is not one this parameter takes, or the key was sent in the address
401unauthorizedNo key, or one that is unknown or revoked
403upgrade_requiredThe plan does not reach it; the answer names the plan that does
422unknown_parameterA parameter this endpoint does not take
429rate_limitedToo fast: wait for Retry-After
429quota_exceededThe day's calls are used: they reset at midnight UTC