Venues
GET
/v1/venuesOn each planFree keyIn fullMatch WeekIn fullArchiveIn fullProIn fullAnalyst ProIn full
Every ground, with city and match counts.
Parameters
None: the key alone identifies the request.
Request
curl -H "Authorization: Bearer $CDB_KEY" \ "https://api.cricketdatabase.com/v1/venues"
import requests
r = requests.get("https://api.cricketdatabase.com/v1/venues",
headers={"Authorization": f"Bearer {key}"})
print(r.json())const r = await fetch("https://api.cricketdatabase.com/v1/venues",
{ headers: { "Authorization": `Bearer ${key}` } });
console.log(await r.json());curl -H "X-API-Key: $CDB_KEY" \ "https://api.cricketdatabase.com/v1/venues"
import requests
r = requests.get("https://api.cricketdatabase.com/v1/venues",
headers={"X-API-Key": key})
print(r.json())const r = await fetch("https://api.cricketdatabase.com/v1/venues",
{ headers: { "X-API-Key": key } });
console.log(await r.json());Response
{
"data": {
"total": 1040,
"data": [
{
"venue": "shere-bangla-national-stadium-dhaka-vvahpjzq2",
"name": "Shere Bangla National Stadium, Mirpur",
"city": "Dhaka",
"matches": 360
},
{
"venue": "edgbaston",
"name": "Edgbaston, Birmingham",
"city": "Birmingham",
"matches": 308
},
"... 1038 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.