Cricinfo API endpoint
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`.
/cricinfo/statsQuery parameters:
class (required): match class. Allowed values: 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 20, 21, 22, 23.type (required): statistic family. Allowed values: batting, bowling, fielding, allround, fow, team, official, aggregate.player: optional numeric Cricinfo player identifier. When supplied, the endpoint reads that player's Statsguru table instead of the global table.team, opposition, host, ground: optional numeric Cricinfo identifiers.season: optional season formatted as YYYY or YYYY/YY.span_min, span_max: optional Statsguru date values such as 01 Jan 2020.view: optional table view. Allowed values: innings, match, series, ground, host, opposition, year, season.orderby: optional Statsguru sort column; orderby_desc optionally reverses it.limit: optional maximum rows from 1 to 100 (default 100).The response keeps the source table's variable columns in headers and row objects.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| class | integer | Yes | Statsguru match-class. Allowed values: 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 20, 21, 22, 23 Allowed values: 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 20, 21, 22, 23. | 1 | |
| type | string | Yes | Statsguru statistic family Allowed values: batting, bowling, fielding, allround, fow, team, official, aggregate. | batting | |
| player | string | No | Numeric Cricinfo player identifier | 45789 | |
| team | string | No | Numeric Cricinfo team identifier | 6 | |
| opposition | string | No | Numeric opposition team identifier | 2 | |
| host | string | No | Numeric host-country identifier | 6 | |
| ground | string | No | Numeric ground identifier | 713 | |
| season | string | No | Season formatted as YYYY or YYYY/YY | 2025 | |
| span_min | string | No | Statsguru starting date | 01 Jan 2020 | |
| span_max | string | No | Statsguru ending date | 31 Dec 2025 | |
| view | string | No | Statsguru table view Allowed values: innings, match, series, ground, host, opposition, year, season. | innings | |
| orderby | string | No | Statsguru sort column | runs | |
| orderby_desc | boolean | No | Sort descending when true | true | |
| limit | integer | No | Maximum rows returned, from 1 to 100 | 50 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/cricinfo/stats?class=1&type=batting&view=innings&orderby_desc=true&limit=10" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"class": 1,
"type": "batting",
"headers": [
"player",
"mat",
"runs"
],
"rows": [
{
"player": "V Kohli",
"mat": "100",
"runs": "9000"
}
],
"count": 1
}
}Request schema
No body schema
Response schema
#/definitions/cricinfo.statsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | cricinfo.StatsResponse | No | ||||
| data.class | integer | No | ||||
| data.count | integer | No | ||||
| data.fetched_at | string | No | ||||
| data.headers | array | No | ||||
| data.rows | array | No | ||||
| data.source_url | string | No | ||||
| data.type | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/cricinfo/stats?class=1&type=batting&view=innings&orderby_desc=true&limit=10" \
-H "x-api-key: $CRAWLORA_API_KEY"