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.
GET
https://api.cricketdatabase.com/v1/analytics/players/{player}/splitsTry it
Kept in this browser and filled in on every docs page.
Parameters
| Name | Type | Required | Description | Values |
|---|---|---|---|---|
player | string | yes | In the address: the player's address name | je-root |
format | string | no | test, odi, t20i, t20, multi-day, one-day | testodit20it20multi-dayone-day |
Returns
| Field | Type | What it holds |
|---|---|---|
data | object | |
data.player | string | A player's address name |
data.format | string | test, odi, t20i, t20, multi-day or one-day |
data.batting | object | |
data.batting.by_opposition[] | array | split, innings, runs, outs, average, strike_rate, hundreds, fifties |
data.batting.by_venue[] | array | split, innings, runs, outs, average, strike_rate, hundreds, fifties |
data.batting.by_year[] | array | split, innings, runs, outs, average, strike_rate, hundreds, fifties |
data.batting.by_innings[] | array | split, innings, runs, outs, average, strike_rate, hundreds, fifties |
data.batting.by_position[] | array | split, innings, runs, outs, average, strike_rate, hundreds, fifties |
data.bowling | object | |
data.bowling.by_opposition[] | array | split, matches, wickets, runs, average, economy |
data.bowling.by_venue[] | array | split, matches, wickets, runs, average, economy |
data.bowling.by_year[] | array | split, matches, wickets, runs, average, economy |
data.bowling.by_innings[] | array | split, matches, wickets, runs, average, economy |
meta | object | |
meta.plan | string | The 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
| Status | Code | When |
|---|---|---|
| 400 | bad_request | A value is not one this parameter takes, or the key was sent in the address |
| 401 | unauthorized | No key, or one that is unknown or revoked |
| 403 | upgrade_required | The plan does not reach it; the answer names the plan that does |
| 404 | not_found | Nothing at that address |
| 422 | unknown_parameter | A parameter this endpoint does not take |
| 429 | rate_limited | Too fast: wait for Retry-After |
| 429 | quota_exceeded | The day's calls are used: they reset at midnight UTC |