ESPNcricinfo Statsguru records

GET https://api.api.sh/espncricinfo/v1/records
1 credit / call sports try it in the playground →

Statsguru's records engine: the overall figures for all players (or teams) in a format, ordered by any column and filtered by team, opposition, host country, ground, result, year and more, 50 rows a page. Pass next_page back as page; null on the last page.

Every response includes credits_used: the credits this call cost.

Part of the ESPNcricinfo API: 15 endpoints with prices, use cases and example responses.

Parameters

nametypedescription
format string Same values as /espncricinfo/v1/player/stats; test by default.
type batting | bowling | fielding | allround | team batting (default), bowling, fielding, allround or team.
orderby string Statsguru sort column, e.g. runs, batting_average, hundreds, wickets, bowling_average.
team string Statsguru team id (e.g. 6 India).
opposition string Opposition team id.
host string Host country id.
ground string Ground id.
result string 1 won, 2 lost, 3 tied, 4 drawn.
year integer Calendar year.
season string Season, e.g. 2025/26.
view string Statsguru view, e.g. innings, match, year.
groupby string Statsguru grouping, e.g. year, team, opposition.
home_or_away string 1 home, 2 away, 3 neutral.
page integer Page number, from 1.

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/espncricinfo/v1/records?format=test&type=batting" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.