---
title: "Query Cricinfo Statsguru"
method: GET
path: "/cricinfo/stats"
tags: ["Cricinfo"]
---

# Query Cricinfo Statsguru

`GET /cricinfo/stats`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/cricinfo/stats`
- Auth: API key in header `x-api-key`

Returns a bounded Statsguru table. `class` must be one of `1`, `2`, `3`, `4`, `5`, `6`, `8`, `9`, `10`, `11`, `12`, `20`, `21`, `22`, or `23`; `type` must be one of `batting`, `bowling`, `fielding`, `allround`, `fow`, `team`, `official`, or `aggregate`; `view` may be `innings`, `match`, `series`, `ground`, `host`, `opposition`, `year`, or `season`.

## Query parameters

- `class` 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 12 | 20 | 21 | 22 | 23, required
- `type` 'batting' | 'bowling' | 'fielding' | 'allround' | 'fow' | 'team' | 'official' | 'aggregate', required
- `player` string
- `team` string
- `opposition` string
- `host` string
- `ground` string
- `season` string
- `span_min` string
- `span_max` string
- `view` 'innings' | 'match' | 'series' | 'ground' | 'host' | 'opposition' | 'year' | 'season'
- `orderby` string
- `orderby_desc` boolean
- `limit` integer

## Headers

- `x-api-key` string, required

## Response `200`

OK

- CricinfoStatsResponseDoc
  - `code` integer
  - `data` CricinfoStatsResponse
    - `class` integer
    - `count` integer
    - `fetched_at` string
    - `headers` string[]
    - `rows` CricinfoStatsRow[]
    - `source_url` string
    - `type` string
  - `msg` string

## Other responses

- `400`: Bad Request
- `429`: Too Many Requests
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/afac9b012a27?raw)
