Chases
GET
/v1/analytics/chasesOn each planFree keyNot includedMatch WeekNot includedArchiveNot includedProNot includedAnalyst ProIn full
Chase success by target band. Rain-affected chases are left out.
Parameters
| Name | In | Values | Required |
|---|---|---|---|
format | query | t20i, t20, odi or one-day (default t20i) | |
gender | query | male or female | |
competition | query | ||
venue | query |
Request
curl -H "Authorization: Bearer $CDB_KEY" \ "https://api.cricketdatabase.com/v1/analytics/chases?format=t20i"
import requests
r = requests.get("https://api.cricketdatabase.com/v1/analytics/chases?format=t20i",
headers={"Authorization": f"Bearer {key}"})
print(r.json())const r = await fetch("https://api.cricketdatabase.com/v1/analytics/chases?format=t20i",
{ headers: { "Authorization": `Bearer ${key}` } });
console.log(await r.json());curl -H "X-API-Key: $CDB_KEY" \ "https://api.cricketdatabase.com/v1/analytics/chases?format=t20i"
import requests
r = requests.get("https://api.cricketdatabase.com/v1/analytics/chases?format=t20i",
headers={"X-API-Key": key})
print(r.json())const r = await fetch("https://api.cricketdatabase.com/v1/analytics/chases?format=t20i",
{ headers: { "X-API-Key": key } });
console.log(await r.json());Response
{
"data": {
"format": "t20i",
"gender": "male",
"chases": 3697,
"bands": [
{
"target": "60-79",
"chases": 119,
"won": 116,
"won_pct": 97.5
},
{
"target": "80-99",
"chases": 240,
"won": 221,
"won_pct": 92.1
},
"... 13 more"
]
},
"meta": {
"plan": "plus",
"note": "Targets set in the first innings; rain-affected (DLS) chases left out, and targets under 60, which are matches cut short."
}
}A real response from the database for the example request, on a Analyst Pro key. Lists are cut to their first two items.