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

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.

GEThttps://api.cricketdatabase.com/v1/venues

Try it

Kept in this browser and filled in on every docs page.

Press Run to call the API with your key. The answer appears here.

    

Parameters

NameTypeRequiredDescriptionValues
pageintegernoPage number, from 1
limitintegernoResults per page, 1 to 50 (default 50)
offsetstringnoResults to skip from the start, in place of page (0 for the first)
allstringnotrue for the whole list in one answer (larger and slower than a page)

Returns

FieldTypeWhat it holds
data[]arrayvenue, name, city, matches
metaobject
meta.planstringThe plan the key is on
meta.countintegerItems in this page
meta.next_cursorstringWhere the next page starts, null at the end
meta.pageintegerThis page's number
meta.per_pageintegerItems a page
meta.totalintegerItems in all, with these filters
meta.total_pagesintegerPages in all
meta.next_pageintegerThe next page, null at the end
meta.prev_pagestring or nullThe page before, null at the start
meta.offsetinteger

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

StatusCodeWhen
400bad_requestA value is not one this parameter takes, or the key was sent in the address
401unauthorizedNo key, or one that is unknown or revoked
422unknown_parameterA parameter this endpoint does not take
429rate_limitedToo fast: wait for Retry-After
429quota_exceededThe day's calls are used: they reset at midnight UTC