Cricinfo API endpoint
Returns the public Cricinfo records catalog, including match classes, record categories, selectable teams or entities, and example suggestions. Use the existing records endpoint to retrieve a specific table.
/cricinfo/records/indexQuery parameters: none.
Returns the public records catalog: available match classes, record categories, selectable entities, and suggested record questions. Use cricinfo-records to fetch a specific table.
| Field | Filled in, of 15 checked | Values in the sample |
|---|---|---|
| id | 15 | |
| name | 15 | “Test” and 14 other values |
| long_name | 15 | “Test matches” and 14 other values |
| slug | 15 | |
| type | 15 | i (9), g (6) |
| multiple_class | 3 | 2 to 3, median 2 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/cricinfo/records/index" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"classes": [
{
"id": 1,
"name": "Test",
"slug": "test-matches"
}
],
"categories": [
{
"id": 2,
"name": "team",
"slug": "team-records"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/cricinfo.recordsIndexResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | cricinfo.RecordsIndexResponse | No | ||||
| data.ask_suggestions | array | No | ||||
| data.categories | array | No | ||||
| data.categories[].id | integer | No | ||||
| data.categories[].long_name | string | No | ||||
| data.categories[].name | string | No | ||||
| data.categories[].slug | string | No | ||||
| data.classes | array | No | ||||
| data.classes[].id | integer | No | ||||
| data.classes[].long_name | string | No | ||||
| data.classes[].multiple_class | integer | No | ||||
| data.classes[].name | string | No | ||||
| data.classes[].slug | string | No | ||||
| data.classes[].type | string | No | ||||
| data.fetched_at | string | No | ||||
| data.groups | array | No | ||||
| data.groups[].entities | array | No | ||||
| data.groups[].entities[].id | string | No | ||||
| data.groups[].entities[].name | string | No | ||||
| data.groups[].entities[].short_name | string | No | ||||
| data.groups[].entities[].slug | string | No | ||||
| data.groups[].type_id | integer | No | ||||
| data.source_url | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 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/index" \
-H "x-api-key: $CRAWLORA_API_KEY"