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

Players

GET/v1/players

On each planFree keyIn fullMatch WeekIn fullArchiveIn fullProIn fullAnalyst ProIn full

Players who have played, most matches first, or matched by name.

Parameters

NameInValuesRequired
qqueryName, including recorded variants
teamquery
genderquerymale or female
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?q=kohli"

Response

{
    "data": [
        {
            "player": "v-kohli",
            "name": "V Kohli",
            "matches": 846
        },
        {
            "player": "a-kohli",
            "name": "A Kohli",
            "matches": 41
        },
        "... 5 more"
    ],
    "meta": {
        "plan": "plus",
        "count": 7,
        "next_cursor": null,
        "page": 1,
        "per_page": 50,
        "total": 7,
        "total_pages": 1,
        "next_page": null,
        "prev_page": null
    }
}

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.