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

Toss effect

GET/v1/analytics/venues/{venue}/toss

On each planFree keyNot includedMatch WeekNot includedArchiveNot includedProNot includedAnalyst ProIn full

How often the toss winner bats, and how often they win after batting or fielding.

Parameters

NameInValuesRequired
venuepathvenue addressyes

Request

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

Response

{
    "data": {
        "venue": "sophia-gardens",
        "name": "Sophia Gardens, Cardiff",
        "by_format": {
            "multi-day": {
                "matches": 74,
                "chose_bat_pct": 31.1,
                "toss_winner_won_pct": 65.9,
                "won_when_chose_bat_pct": 53.8,
                "won_when_chose_field_pct": 71.4
            },
            "one-day": {
                "matches": 35,
                "chose_bat_pct": 40,
                "toss_winner_won_pct": 45.5,
                "won_when_chose_bat_pct": 41.7,
                "won_when_chose_field_pct": 47.6
            },
            "odi": {
                "matches": 7,
                "chose_bat_pct": 0,
                "toss_winner_won_pct": 85.7,
                "won_when_chose_bat_pct": null,
                "won_when_chose_field_pct": 85.7
            },
            "t20i": {
                "matches": 6,
                "chose_bat_pct": 33.3,
                "toss_winner_won_pct": 33.3,
                "won_when_chose_bat_pct": 0,
                "won_when_chose_field_pct": 50
            },
            "t20": {
                "matches": 88,
                "chose_bat_pct": 29.5,
                "toss_winner_won_pct": 60.5,
                "won_when_chose_bat_pct": 73.1,
                "won_when_chose_field_pct": 55
            }
        }
    },
    "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.