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

Par scores

GET/v1/analytics/venues/{venue}/par-scores

On each planFree keyNot includedMatch WeekNot includedArchiveNot includedProNot includedAnalyst ProIn full

First-innings totals by format and year: average, median, highest, lowest, and batting first against chasing.

Parameters

NameInValuesRequired
venuepathvenue addressyes

Request

curl -H "Authorization: Bearer $CDB_KEY" \
  "https://api.cricketdatabase.com/v1/analytics/venues/sophia-gardens/par-scores"

Response

{
    "data": {
        "venue": "sophia-gardens",
        "name": "Sophia Gardens, Cardiff",
        "by_format": {
            "multi-day": {
                "matches": 74,
                "average_first_innings": 291.1,
                "median_first_innings": 280,
                "highest": 570,
                "lowest": 69,
                "batting_first_won_pct": 36.6,
                "chasing_won_pct": 63.4,
                "by_year": [
                    {
                        "year": 2014,
                        "matches": 6,
                        "average_first_innings": 231,
                        "median_first_innings": 246.5,
                        "highest": 357,
                        "lowest": 109,
                        "batting_first_won_pct": 66.7,
                        "chasing_won_pct": 33.3
                    },
                    {
                        "year": 2015,
                        "matches": 6,
                        "average_first_innings": 340,
                        "median_first_innings": 311.5,
                        "highest": 563,
                        "lowest": 205,
                        "batting_first_won_pct": 100,
                        "chasing_won_pct": 0
                    },
                    "... 11 more"
                ]
            },
            "one-day": {
                "matches": 33,
                "average_first_innings": 250.3,
                "median_first_innings": 264,
                "highest": 340,
                "lowest": 73,
                "batting_first_won_pct": 48.5,
                "chasing_won_pct": 51.5,
                "by_year": [
                    {
                        "year": 2014,
                        "matches": 3,
                        "average_first_innings": 195.3,
                        "median_first_innings": 185,
                        "highest": 227,
                        "lowest": 174,
                        "batting_first_won_pct": 33.3,
                        "chasing_won_pct": 66.7
                    },
                    {
                        "year": 2015,
                        "matches": 2,
                        "average_first_innings": 302.5,
                        "median_first_innings": 302.5,
                        "highest": 317,
                        "lowest": 288,
                        "batting_first_won_pct": 50,
                        "chasing_won_pct": 50
                    },
                    "... 10 more"
                ]
            },
            "odi": {
                "matches": 7,
                "average_first_innings": 211.4,
                "median_first_innings": 201,
                "highest": 308,
                "lowest": 125,
                "batting_first_won_pct": 14.3,
                "chasing_won_pct": 85.7,
                "by_year": [
                    {
                        "year": 2019,
                        "matches": 2,
                        "average_first_innings": 163,
                        "median_first_innings": 163,
                        "highest": 201,
                        "lowest": 125,
                        "batting_first_won_pct": 50,
                        "chasing_won_pct": 50
                    },
                    {
                        "year": 2021,
                        "matches": 1,
                        "average_first_innings": 141,
                        "median_first_innings": 141,
                        "highest": 141,
                        "lowest": 141,
                        "batting_first_won_pct": 0,
                        "chasing_won_pct": 100
                    },
                    "... 3 more"
                ]
            },
            "t20": {
                "matches": 86,
                "average_first_innings": 147.8,
                "median_first_innings": 149,
                "highest": 243,
                "lowest": 73,
                "batting_first_won_pct": 53.5,
                "chasing_won_pct": 46.5,
                "by_year": [
                    {
                        "year": 2021,
                        "matches": 16,
                        "average_first_innings": 144.1,
                        "median_first_innings": 150,
                        "highest": 201,
                        "lowest": 95,
                        "batting_first_won_pct": 43.8,
                        "chasing_won_pct": 56.3
                    },
                    {
                        "year": 2022,
                        "matches": 14,
                        "average_first_innings": 135.2,
                        "median_first_innings": 132,
                        "highest": 171,
                        "lowest": 75,
                        "batting_first_won_pct": 57.1,
                        "chasing_won_pct": 42.9
                    },
                    "... 4 more"
                ]
            },
            "t20i": {
                "matches": 6,
                "average_first_innings": 147,
                "median_first_innings": 137,
                "highest": 207,
                "lowest": 97,
                "batting_first_won_pct": 33.3,
                "chasing_won_pct": 66.7,
                "by_year": [
                    {
                        "year": 2021,
                        "matches": 2,
                        "average_first_innings": 120,
                        "median_first_innings": 120,
                        "highest": 129,
                        "lowest": 111,
                        "batting_first_won_pct": 0,
                        "chasing_won_pct": 100
                    },
                    {
                        "year": 2022,
                        "matches": 1,
                        "average_first_innings": 207,
                        "median_first_innings": 207,
                        "highest": 207,
                        "lowest": 207,
                        "batting_first_won_pct": 100,
                        "chasing_won_pct": 0
                    },
                    "... 3 more"
                ]
            }
        }
    },
    "meta": {
        "plan": "plus"
    }
}

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.