Cricket search API
SearchPlayers, teams, grounds and competitions by name.
Search finds records by name and gives back their ids. Send q with three letters or more.
Try it
Your key stays in this browser and is filled in on every docs page.
{
"data": {
"q": "smith",
"players": [
{
"player": "ck_yeh6r1hj70",
"name": "SPD Smith",
"matches": 578
},
{
"player": "ck_t8tync047n",
"name": "GC Smith",
"matches": 337
},
{
"player": "ck_bsk5ntqg3a",
"name": "DR Smith",
"matches": 329
}
],
"teams": [],
"venues": [],
"competitions": []
},
"meta": {
"sport": "cricket",
"endpoint": "/search",
"cached": false,
"age_seconds": 0
}
}Parameters
Query values this call takes. Anything else is refused with bad_param and the list it accepts.
| Name | Type | What it does | |
|---|---|---|---|
| q | string | optional | The name to look for. Three letters or more works best. |
| page | integer | optional | Which page of rows, from 1. |
| per_page | integer | optional | Rows per page, up to 100 on most lists. |
Returns
Each field in data, from a real answer. Every id is ours and opens its own endpoint.
| Field | Type | What it holds |
|---|---|---|
| q | string | Q |
| players | list | Players |
| teams | list | Both sides, with their scores |
| venues | list | Venues |
| competitions | list | Competitions |
| meta | What it holds |
|---|---|
| sport, endpoint | What you asked |
| count | Rows in this answer |
| page, per_page, total, next_cursor | Where you are in a paged list, when it is paged |
| as_of | When the data was built |
| cached, age_seconds | Whether this is a stored copy, and its age |
| access | On the free key: what it reads, and the plan that opens the rest |
Errors
Codes this call can give. Each is explained in Errors.
| Status | Code | When |
|---|---|---|
| 401 | no_key | No key sent, or not in a form we read |
| 401 | bad_key | A key we do not know |
| 403 | plan | The free key asked for a date other than yesterday |
| 422 | bad_param | A value this call does not take |
| 429 | rate | Over the calls a minute for your plan |
| 503 | upstream | The data is not answering; retry after Retry-After |
The free key reads yesterday. The Cricket plan opens live, fixtures and every date held, for $49 a month.
Add Cricket