Batting log
On each planFree keySampleMatch WeekSampleArchiveIn fullProIn fullAnalyst ProIn fullMCP toolplayer_innings
Every batting innings, newest first.
GET
https://api.cricketdatabase.com/v1/players/{player}/inningsTry 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 |
year | integer | no | ||
page | integer | no | Page number, from 1 | |
limit | integer | no | Results per page, 1 to 100 (default 50) |
Returns
| Field | Type | What it holds |
|---|---|---|
data[] | array | match, date, format, team, opponent, innings, runs, balls, fours, sixes, out, how_out |
meta | object | |
meta.plan | string | The plan the key is on |
meta.count | integer | Items in this page |
meta.next_cursor | string | Where the next page starts, null at the end |
meta.page | integer | This page's number |
meta.per_page | integer | Items a page |
meta.total | integer | Items in all, with these filters |
meta.total_pages | integer | Pages in all |
meta.next_page | integer | The next page, null at the end |
meta.prev_page | string or null | The page before, null at the start |
meta.player | string | A player's address name |
Example answer
A real answer for /v1/players/je-root/innings, lists cut to their first two items.
{
"data": [
{
"match": "2026-11-18-england-v-australia",
"date": "2026-11-18",
"format": "odi",
"team": "England",
"opponent": "Australia",
"innings": 1,
"runs": 12,
"balls": 15,
"fours": 1,
"sixes": 0,
"out": true,
"how_out": "bowled"
},
{
"match": "2026-11-15-england-v-australia",
"date": "2026-11-15",
"format": "odi",
"team": "England",
"opponent": "Australia",
"innings": 1,
"runs": 62,
"balls": 68,
"fours": 5,
"sixes": 0,
"out": true,
"how_out": "caught"
},
"... 48 more"
],
"meta": {
"plan": "plus",
"count": 50,
"next_cursor": "Y2RiOnAy",
"page": 1,
"per_page": 50,
"total": 661,
"total_pages": 14,
"next_page": 2,
"prev_page": null,
"player": "je-root"
}
}
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 |