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

Scoring shape

On each planFree keyNot includedMatch WeekNot includedArchiveNot includedProNot includedAnalyst ProIn full

Scoring shape: the share of dots, singles, twos, threes, fours and sixes, boundary runs and sixes per 100 balls.

GEThttps://api.cricketdatabase.com/v1/analytics/players/{player}/scoring

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
playerstringyesIn the address: the player's address nameje-root
formatstringnotest, odi, t20i, t20, multi-day, one-daytestodit20it20multi-dayone-day

Returns

FieldTypeWhat it holds
dataobject
data.playerstringA player's address name
data.formatstringtest, odi, t20i, t20, multi-day or one-day
data.ballsintegerBalls
data.runsintegerRuns
data.strike_ratenumber
data.pctobject
data.pct.dotsnumber
data.pct.singlesnumber
data.pct.twosnumber
data.pct.threesnumber
data.pct.foursnumber
data.pct.sixesnumber
data.countsobject
data.counts.dotsinteger
data.counts.singlesinteger
data.counts.twosinteger
data.counts.threesinteger
data.counts.foursinteger
data.counts.sixesinteger
data.counts.all_run_boundariesinteger
data.boundary_runs_pctnumber
data.sixes_per_100_ballsnumber
metaobject
meta.planstringThe plan the key is on

Example answer

A real answer for /v1/analytics/players/je-root/scoring, lists cut to their first two items.

{
    "data": {
        "player": "je-root",
        "format": "all",
        "balls": 40056,
        "runs": 27904,
        "strike_rate": 69.66,
        "pct": {
            "dots": 60,
            "singles": 26.8,
            "twos": 5,
            "threes": 0.9,
            "fours": 6.9,
            "sixes": 0.4
        },
        "counts": {
            "dots": 24017,
            "singles": 10747,
            "twos": 1997,
            "threes": 353,
            "fours": 2763,
            "sixes": 167,
            "all_run_boundaries": 10
        },
        "boundary_runs_pct": 43.2,
        "sixes_per_100_balls": 0.4
    },
    "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
404not_foundNothing at that address
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