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

Splits

On each planFree keyNot includedMatch WeekNot includedArchiveNot includedProNot includedAnalyst ProIn fullMCP toolplayer_splits

Batting by opposition, venue, year, innings and position; bowling by opposition, venue, year and innings.

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

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.battingobject
data.batting.by_opposition[]arraysplit, innings, runs, outs, average, strike_rate, hundreds, fifties
data.batting.by_venue[]arraysplit, innings, runs, outs, average, strike_rate, hundreds, fifties
data.batting.by_year[]arraysplit, innings, runs, outs, average, strike_rate, hundreds, fifties
data.batting.by_innings[]arraysplit, innings, runs, outs, average, strike_rate, hundreds, fifties
data.batting.by_position[]arraysplit, innings, runs, outs, average, strike_rate, hundreds, fifties
data.bowlingobject
data.bowling.by_opposition[]arraysplit, matches, wickets, runs, average, economy
data.bowling.by_venue[]arraysplit, matches, wickets, runs, average, economy
data.bowling.by_year[]arraysplit, matches, wickets, runs, average, economy
data.bowling.by_innings[]arraysplit, matches, wickets, runs, average, economy
metaobject
meta.planstringThe plan the key is on

Example answer

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

{
    "data": {
        "player": "je-root",
        "format": "all",
        "batting": {
            "by_opposition": [
                {
                    "split": "Australia",
                    "innings": 114,
                    "runs": 3841,
                    "outs": 102,
                    "average": 37.66,
                    "strike_rate": 56.74,
                    "hundreds": 6,
                    "fifties": 26
                },
                {
                    "split": "India",
                    "innings": 96,
                    "runs": 4644,
                    "outs": 82,
                    "average": 56.63,
                    "strike_rate": 61.51,
                    "hundreds": 16,
                    "fifties": 19
                },
                "... 28 more"
            ],
            "by_venue": [
                {
                    "split": "Lord's",
                    "innings": 63,
                    "runs": 2889,
                    "outs": 57,
                    "average": 50.68,
                    "strike_rate": 63.01,
                    "hundreds": 9,
                    "fifties": 12
                },
                {
                    "split": "Headingley",
                    "innings": 63,
                    "runs": 2966,
                    "outs": 54,
                    "average": 54.93,
                    "strike_rate": 73.67,
                    "hundreds": 8,
                    "fifties": 16
                },
                "... 28 more"
            ],
            "by_year": [
                {
                    "split": "2018",
                    "innings": 63,
                    "runs": 2166,
                    "outs": 53,
                    "average": 40.87,
                    "strike_rate": 66.69,
                    "hundreds": 5,
                    "fifties": 12
                },
                {
                    "split": "2016",
                    "innings": 62,
                    "runs": 2959,
                    "outs": 56,
                    "average": 52.84,
                    "strike_rate": 75.81,
                    "hundreds": 6,
                    "fifties": 19
                },
                "... 13 more"
            ],
            "by_innings": [
                {
                    "split": 1,
                    "innings": 259,
                    "runs": 10783,
                    "outs": 244,
                    "average": 44.19,
                    "strike_rate": 74.89,
                    "hundreds": 28,
                    "fifties": 57
                },
                {
                    "split": 2,
                    "innings": 246,
                    "runs": 10813,
                    "outs": 199,
                    "average": 54.34,
                    "strike_rate": 73.96,
                    "hundreds": 25,
                    "fifties": 56
                },
                "... 2 more"
            ],
            "by_position": [
                {
                    "split": 4,
                    "innings": 314,
                    "runs": 13616,
                    "outs": 285,
                    "average": 47.78,
                    "strike_rate": 64.88,
                    "hundreds": 39,
                    "fifties": 62
                },
                {
                    "split": 3,
                    "innings": 248,
                    "runs": 9956,
                    "outs": 217,
                    "average": 45.88,
                    "strike_rate": 79.5,
                    "hundreds": 19,
                    "fifties": 65
                },
                "... 5 more"
            ]
        },
        "bowling": {
            "by_opposition": [
                {
                    "split": "Australia",
                    "matches": 54,
                    "wickets": 34,
                    "runs": 1485,
                    "average": 43.68,
                    "economy": 4.36
                },
                {
                    "split": "India",
                    "matches": 39,
                    "wickets": 22,
                    "runs": 1256,
                    "average": 57.09,
                    "economy": 3.82
                },
                "... 28 more"
            ],
            "by_venue": [
                {
                    "split": "Headingley",
                    "matches": 29,
                    "wickets": 23,
                    "runs": 748,
                    "average": 32.52,
                    "economy": 4.23
                },
                {
                    "split": "Trent Bridge",
                    "matches": 23,
                    "wickets": 9,
                    "runs": 413,
                    "average": 45.89,
                    "economy": 4.46
                },
                "... 28 more"
            ],
            "by_year": [
                {
                    "split": "2013",
                    "matches": 27,
                    "wickets": 8,
                    "runs": 559,
                    "average": 69.88,
                    "economy": 4.74
                },
                {
                    "split": "2014",
                    "matches": 26,
                    "wickets": 12,
                    "runs": 486,
                    "average": 40.5,
                    "economy": 4.54
                },
                "... 13 more"
            ],
            "by_innings": [
                {
                    "split": 1,
                    "matches": 117,
                    "wickets": 53,
                    "runs": 2506,
                    "average": 47.28,
                    "economy": 5.05
                },
                {
                    "split": 2,
                    "matches": 110,
                    "wickets": 55,
                    "runs": 2295,
                    "average": 41.73,
                    "economy": 4.31
                },
                "... 2 more"
            ]
        }
    },
    "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