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

Batting log

GET/v1/players/{player}/innings

On each planFree keySampleMatch WeekSampleArchiveIn fullProIn fullAnalyst ProIn fullMCP toolplayer_innings

Every batting innings, newest first. Lower plans get the last ten.

Parameters

NameInValuesRequired
playerpathplayer addressyes
formatquerytest, odi, t20i, t20, multi-day, one-day
yearquery
pagequeryPage number, from 1
limitqueryResults per page, 1 to 100 (default 50)

Request

curl -H "Authorization: Bearer $CDB_KEY" \
  "https://api.cricketdatabase.com/v1/players/je-root/innings"

Response

{
    "data": [
        {
            "match": "2026-09-27-england-v-sri-lanka",
            "date": "2026-09-27",
            "format": "odi",
            "team": "England",
            "opponent": "Sri Lanka",
            "innings": 1,
            "runs": 18,
            "balls": 37,
            "fours": 1,
            "sixes": 0,
            "out": true,
            "how_out": "lbw"
        },
        {
            "match": "2026-09-24-sri-lanka-v-england",
            "date": "2026-09-24",
            "format": "odi",
            "team": "England",
            "opponent": "Sri Lanka",
            "innings": 2,
            "runs": 15,
            "balls": 17,
            "fours": 1,
            "sixes": 0,
            "out": true,
            "how_out": "caught"
        },
        "... 48 more"
    ],
    "meta": {
        "plan": "plus",
        "count": 50,
        "next_cursor": "Y2RiOnAy",
        "page": 1,
        "per_page": 50,
        "total": 655,
        "total_pages": 14,
        "next_page": 2,
        "prev_page": null,
        "player": "je-root"
    }
}

A real response from the database for the example request, on a Analyst Pro key. Lists are cut to their first two items.

Run it live

A real request from your browser straight to api.cricketdatabase.com with your own key. Keys you add are kept in this browser, and the page remembers the one you last used. No key yet? Get a free key.