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

Rolling form

GET/v1/analytics/players/{player}/form

On each planFree keySampleMatch WeekSampleArchiveSampleProSampleAnalyst ProIn full

Rolling average and strike rate over recent innings. Lower plans get the last five.

Parameters

NameInValuesRequired
playerpathplayer addressyes
formatquerytest, odi, t20i, t20, multi-day, one-day
inningsquery5 to 100 (default 20)
windowquery2 to 20 (default 5)

Request

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

Response

{
    "data": {
        "player": "je-root",
        "format": "all",
        "innings": [
            {
                "match": "2026-07-10-lancashire-v-yorkshire",
                "date": "2026-07-10",
                "format": "t20",
                "runs": 4,
                "balls": 5,
                "out": true,
                "rolling_average": 33.2,
                "rolling_strike_rate": 61.48
            },
            {
                "match": "2026-07-12-yorkshire-v-nottinghamshire",
                "date": "2026-07-12",
                "format": "t20",
                "runs": 2,
                "balls": 4,
                "out": true,
                "rolling_average": 24.4,
                "rolling_strike_rate": 56.22
            },
            "... 18 more"
        ]
    },
    "meta": {
        "plan": "plus",
        "window": 5
    }
}

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.