Records
On each planFree keySampleMatch WeekSampleArchiveIn fullProIn fullAnalyst ProIn fullMCP tooltop_performances
Record lists.
GET
https://api.cricketdatabase.com/v1/recordsTry it
Kept in this browser and filled in on every docs page.
Parameters
| Name | Type | Required | Description | Values |
|---|---|---|---|---|
type | string | no | most-runs, most-wickets, highest-scores, best-bowling or team-totals | most-runsmost-wicketshighest-scoresbest-bowlingteam-totals |
format | string | no | test, odi, t20i, t20, multi-day, one-day (default test) | testodit20it20multi-dayone-day |
gender | string | no | male or female (default male) | malefemale |
Returns
| Field | Type | What it holds |
|---|---|---|
data | object | |
data.type | string | |
data.format | string | test, odi, t20i, t20, multi-day or one-day |
data.gender | string | male or female |
data.data[] | array | player, name, runs, innings, outs, balls, hundreds |
meta | object | |
meta.plan | string | The plan the key is on |
Example answer
A real answer for /v1/records?type=most-runs&format=test, lists cut to their first two items.
{
"data": {
"type": "most-runs",
"format": "test",
"gender": "male",
"data": [
{
"player": "je-root",
"name": "JE Root",
"runs": 14278,
"innings": 309,
"outs": 283,
"balls": 24783,
"hundreds": 41
},
{
"player": "an-cook",
"name": "AN Cook",
"runs": 12472,
"innings": 291,
"outs": 275,
"balls": 26562,
"hundreds": 33
},
"... 98 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 |
| 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 |