Venues
On each planFree keyIn fullMatch WeekIn fullArchiveIn fullProIn fullAnalyst ProIn full
Every ground, with city and match counts, most played first: 50 a page (page or offset), or all=true for the whole list.
GET
https://api.cricketdatabase.com/v1/venuesTry it
Kept in this browser and filled in on every docs page.
Parameters
| Name | Type | Required | Description | Values |
|---|---|---|---|---|
page | integer | no | Page number, from 1 | |
limit | integer | no | Results per page, 1 to 50 (default 50) | |
offset | string | no | Results to skip from the start, in place of page (0 for the first) | |
all | string | no | true for the whole list in one answer (larger and slower than a page) |
Returns
| Field | Type | What it holds |
|---|---|---|
data[] | array | venue, name, city, matches |
meta | object | |
meta.plan | string | The plan the key is on |
meta.count | integer | Items in this page |
meta.next_cursor | string | Where the next page starts, null at the end |
meta.page | integer | This page's number |
meta.per_page | integer | Items a page |
meta.total | integer | Items in all, with these filters |
meta.total_pages | integer | Pages in all |
meta.next_page | integer | The next page, null at the end |
meta.prev_page | string or null | The page before, null at the start |
meta.offset | integer |
Example answer
A real answer for /v1/venues, lists cut to their first two items.
{
"data": [
{
"venue": "edgbaston-birmingham",
"name": "Edgbaston",
"city": "Birmingham",
"matches": 422
},
{
"venue": "the-oval-london",
"name": "The Oval",
"city": "London",
"matches": 394
},
"... 48 more"
],
"meta": {
"plan": "plus",
"count": 50,
"next_cursor": "Y2RiOnAy",
"page": 1,
"per_page": 50,
"total": 1336,
"total_pages": 27,
"next_page": 2,
"prev_page": null,
"offset": 0
}
}
Errors
| Status | Code | When |
|---|---|---|
| 400 | bad_request | A value is not one this parameter takes, or the key was sent in the address |
| 401 | unauthorized | No key, or one that is unknown or revoked |
| 422 | unknown_parameter | A parameter this endpoint does not take |
| 429 | rate_limited | Too fast: wait for Retry-After |
| 429 | quota_exceeded | The day's calls are used: they reset at midnight UTC |