Scoring shape
On each planFree keyNot includedMatch WeekNot includedArchiveNot includedProNot includedAnalyst ProIn full
Scoring shape: the share of dots, singles, twos, threes, fours and sixes, boundary runs and sixes per 100 balls.
GET
https://api.cricketdatabase.com/v1/analytics/players/{player}/scoringTry it
Kept in this browser and filled in on every docs page.
Parameters
| Name | Type | Required | Description | Values |
|---|---|---|---|---|
player | string | yes | In the address: the player's address name | je-root |
format | string | no | test, odi, t20i, t20, multi-day, one-day | testodit20it20multi-dayone-day |
Returns
| Field | Type | What it holds |
|---|---|---|
data | object | |
data.player | string | A player's address name |
data.format | string | test, odi, t20i, t20, multi-day or one-day |
data.balls | integer | Balls |
data.runs | integer | Runs |
data.strike_rate | number | |
data.pct | object | |
data.pct.dots | number | |
data.pct.singles | number | |
data.pct.twos | number | |
data.pct.threes | number | |
data.pct.fours | number | |
data.pct.sixes | number | |
data.counts | object | |
data.counts.dots | integer | |
data.counts.singles | integer | |
data.counts.twos | integer | |
data.counts.threes | integer | |
data.counts.fours | integer | |
data.counts.sixes | integer | |
data.counts.all_run_boundaries | integer | |
data.boundary_runs_pct | number | |
data.sixes_per_100_balls | number | |
meta | object | |
meta.plan | string | The plan the key is on |
Example answer
A real answer for /v1/analytics/players/je-root/scoring, lists cut to their first two items.
{
"data": {
"player": "je-root",
"format": "all",
"balls": 40056,
"runs": 27904,
"strike_rate": 69.66,
"pct": {
"dots": 60,
"singles": 26.8,
"twos": 5,
"threes": 0.9,
"fours": 6.9,
"sixes": 0.4
},
"counts": {
"dots": 24017,
"singles": 10747,
"twos": 1997,
"threes": 353,
"fours": 2763,
"sixes": 167,
"all_run_boundaries": 10
},
"boundary_runs_pct": 43.2,
"sixes_per_100_balls": 0.4
},
"meta": {
"plan": "plus"
}
}
Errors
| Status | Code | When |
|---|---|---|
| 400 | bad_request | A value is not one this parameter takes, or the key was sent in the address |
| 401 | unauthorized | No key, or one that is unknown or revoked |
| 403 | upgrade_required | The plan does not reach it; the answer names the plan that does |
| 404 | not_found | Nothing at that address |
| 422 | unknown_parameter | A parameter this endpoint does not take |
| 429 | rate_limited | Too fast: wait for Retry-After |
| 429 | quota_exceeded | The day's calls are used: they reset at midnight UTC |