Cricinfo API endpoint
Returns Cricinfo's team directory with no parameters, organised into titled groups such as popular international teams. Each team has its id, name, slug, abbreviation, country, logo URL and primary colour where Cricinfo gives them, and whether it is a national side.
/cricinfo/teamsQuery parameters: none.
Returns Cricinfo's grouped team directory. Each entry includes a stable team identifier, name, slug, abbreviation, country, logo URL, and primary color when available.
| Field | Filled in, of 12 checked | Values in the sample |
|---|---|---|
| title | 12 | “Popular Men's International Teams” and 11 other values |
| teams | 12 | median 8 entries |
| 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/teams" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"count": 10,
"groups": [
{
"title": "Popular Men's International Teams",
"teams": [
{
"id": "6",
"name": "India",
"abbreviation": "IND"
}
]
}
]
}
}Request schema
No body schema
Response schema
#/definitions/cricinfo.teamsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | cricinfo.TeamsResponse | No | ||||
| data.count | integer | No | ||||
| data.fetched_at | string | No | ||||
| data.groups | array | No | ||||
| data.groups[].teams | array | No | ||||
| data.groups[].teams[].abbreviation | string | No | ||||
| data.groups[].teams[].country | string | No | ||||
| data.groups[].teams[].id | string | No | ||||
| data.groups[].teams[].image_url | string | No | ||||
| data.groups[].teams[].is_country | boolean | No | ||||
| data.groups[].teams[].name | string | No | ||||
| data.groups[].teams[].primary_color | string | No | ||||
| data.groups[].teams[].slug | string | No | ||||
| data.groups[].title | string | 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/teams" \
-H "x-api-key: $CRAWLORA_API_KEY"