Career stats
GET
/v1/players/{player}/statsOn each planFree keyIn fullMatch WeekIn fullArchiveIn fullProIn fullAnalyst ProIn fullMCP toolplayer_career
Career batting and bowling by format.
Parameters
| Name | In | Values | Required |
|---|---|---|---|
player | path | player address | yes |
Request
curl -H "Authorization: Bearer $CDB_KEY" \ "https://api.cricketdatabase.com/v1/players/je-root/stats"
import requests
r = requests.get("https://api.cricketdatabase.com/v1/players/je-root/stats",
headers={"Authorization": f"Bearer {key}"})
print(r.json())const r = await fetch("https://api.cricketdatabase.com/v1/players/je-root/stats",
{ headers: { "Authorization": `Bearer ${key}` } });
console.log(await r.json());curl -H "X-API-Key: $CDB_KEY" \ "https://api.cricketdatabase.com/v1/players/je-root/stats"
import requests
r = requests.get("https://api.cricketdatabase.com/v1/players/je-root/stats",
headers={"X-API-Key": key})
print(r.json())const r = await fetch("https://api.cricketdatabase.com/v1/players/je-root/stats",
{ headers: { "X-API-Key": key } });
console.log(await r.json());Response
{
"data": {
"player": "je-root",
"name": "JE Root",
"batting": {
"test": {
"matches": 169,
"innings": 309,
"not_outs": 26,
"runs": 14278,
"high_score": 262,
"high_score_not_out": false,
"average": 50.45,
"balls": 24783,
"strike_rate": 57.61,
"hundreds": 41,
"fifties": 69,
"fours": 1536,
"sixes": 46
},
"odi": {
"matches": 184,
"innings": 184,
"not_outs": 28,
"runs": 7903,
"high_score": 166,
"high_score_not_out": true,
"average": 50.66,
"balls": 9012,
"strike_rate": 87.69,
"hundreds": 20,
"fifties": 48,
"fours": 645,
"sixes": 55
},
"t20i": {
"matches": 30,
"innings": 30,
"not_outs": 5,
"runs": 893,
"high_score": 90,
"high_score_not_out": true,
"average": 35.72,
"balls": 707,
"strike_rate": 126.31,
"hundreds": 0,
"fifties": 5,
"fours": 92,
"sixes": 16
},
"t20_leagues": {
"matches": 80,
"innings": 80,
"not_outs": 17,
"runs": 2165,
"high_score": 92,
"high_score_not_out": true,
"average": 34.37,
"balls": 1634,
"strike_rate": 132.5,
"hundreds": 0,
"fifties": 16,
"fours": 211,
"sixes": 44
},
"multi-day": {
"matches": 29,
"innings": 45,
"not_outs": 2,
"runs": 2163,
"high_score": 213,
"high_score_not_out": false,
"average": 50.3,
"balls": 3313,
"strike_rate": 65.29,
"hundreds": 6,
"fifties": 11,
"fours": 238,
"sixes": 5
},
"one-day": {
"matches": 7,
"innings": 7,
"not_outs": 1,
"runs": 304,
"high_score": 83,
"high_score_not_out": false,
"average": 50.67,
"balls": 380,
"strike_rate": 80,
"hundreds": 0,
"fifties": 3,
"fours": 23,
"sixes": 1
}
},
"bowling": {
"test": {
"matches": 127,
"balls": 6332,
"runs": 3559,
"wickets": 74,
"best": "5-8",
"average": 48.09,
"economy": 3.37,
"strike_rate": 85.6,
"maidens": 165,
"five_fors": 1
},
"odi": {
"matches": 79,
"balls": 1788,
"runs": 1759,
"wickets": 31,
"best": "3-52",
"average": 56.74,
"economy": 5.9,
"strike_rate": 57.7,
"maidens": 2,
"five_fors": 0
},
"t20i": {
"matches": 9,
"balls": 84,
"runs": 139,
"wickets": 6,
"best": "2-9",
"average": 23.17,
"economy": 9.93,
"strike_rate": 14,
"maidens": 0,
"five_fors": 0
},
"t20_leagues": {
"matches": 36,
"balls": 537,
"runs": 688,
"wickets": 27,
"best": "2-7",
"average": 25.48,
"economy": 7.69,
"strike_rate": 19.9,
"maidens": 0,
"five_fors": 0
},
"multi-day": {
"matches": 25,
"balls": 1686,
"runs": 846,
"wickets": 23,
"best": "4-5",
"average": 36.78,
"economy": 3.01,
"strike_rate": 73.3,
"maidens": 46,
"five_fors": 0
},
"one-day": {
"matches": 2,
"balls": 54,
"runs": 58,
"wickets": 0,
"best": null,
"average": null,
"economy": 6.44,
"strike_rate": null,
"maidens": 0,
"five_fors": 0
}
},
"splits": null
},
"meta": {
"plan": "plus"
}
}A real response from the database for the example request, on a Analyst Pro key. Lists are cut to their first two items.