Cricinfo API endpoint
Returns a bounded table from a Cricinfo records page. `record` is a relative Statsguru record path such as `batting/most_runs_career.html`. `class` must be one of `1`, `2`, `3`, `4`, `5`, `6`, `8`, `9`, `10`, `11`, `12`, `20`, `21`, `22`, or `23`.
/cricinfo/recordsQuery parameters:
record (required): relative Statsguru record path, such as batting/most_runs_career.html.class (required): match class. Allowed values: 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 20, 21, 22, 23.id: optional numeric record subject identifier, such as 6 for India.type: optional record subject type, such as team.current: optional numeric currentness selector.The response keeps the record table's variable columns in headers and row objects. Record paths are restricted to the public Statsguru records namespace.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| record | string | Yes | Relative Statsguru record path | batting/most_runs_career.html | |
| class | integer | Yes | Record 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 | |
| id | string | No | Numeric record subject identifier | 6 | |
| type | string | No | Record subject type | team | |
| current | string | No | Record currentness selector | 2 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/cricinfo/records?record=batting%2Fmost_runs_career.html&class=1" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"record": "batting/most_runs_career.html",
"class": 1,
"headers": [
"player",
"span",
"mat",
"runs"
],
"rows": [
{
"player": "SR Tendulkar",
"span": "1989-2013",
"mat": "200",
"runs": "15921"
}
],
"count": 1
}
}Request schema
No body schema
Response schema
#/definitions/cricinfo.recordsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | cricinfo.RecordsResponse | No | ||||
| data.class | integer | No | ||||
| data.count | integer | No | ||||
| data.fetched_at | string | No | ||||
| data.headers | array | No | ||||
| data.record | string | No | ||||
| data.rows | array | No | ||||
| data.source_url | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/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/records?record=batting%2Fmost_runs_career.html&class=1" \
-H "x-api-key: $CRAWLORA_API_KEY"