Head to head
On each planFree keyNot includedMatch WeekNot includedArchiveIn fullProIn fullAnalyst ProIn fullMCP toolhead_to_head
Two teams against each other, by format, with the last ten meetings.
GET
https://api.cricketdatabase.com/v1/teams/{team}/head-to-head/{other}Try it
Kept in this browser and filled in on every docs page.
Parameters
| Name | Type | Required | Description | Values |
|---|---|---|---|---|
team | string | yes | In the address: the team's address name | england |
other | string | yes | In the address: the other's address name | australia |
Returns
| Field | Type | What it holds |
|---|---|---|
data | object | |
data.teams | array | Each side in the match |
data.by_format | object | |
data.by_format.odi | object | |
data.by_format.odi.played | integer | |
data.by_format.odi.england | integer | |
data.by_format.odi.australia | integer | |
data.by_format.odi.other | integer | |
data.by_format.t20i | object | |
data.by_format.t20i.played | integer | |
data.by_format.t20i.england | integer | |
data.by_format.t20i.australia | integer | |
data.by_format.t20i.other | integer | |
data.by_format.test | object | |
data.by_format.test.played | integer | |
data.by_format.test.england | integer | |
data.by_format.test.australia | integer | |
data.by_format.test.other | integer | |
data.recent[] | array | match, date, format, gender, coverage, competition, competition_name, stage, ground, official_number, teams, result, depth |
data.recent[].teams[].team | string | A side's address name |
data.recent[].teams[].name | string | The name as shown |
data.recent[].teams[].score | string | Runs and wickets, every innings |
data.recent[].teams[].overs | string | Overs faced |
data.recent[].teams[].won | boolean | Whether this side won |
data.recent[].depth.deliveries | boolean | |
data.recent[].depth.scorecard | boolean | |
data.recent[].depth.innings_totals | boolean | |
data.recent[].depth.weather | boolean | |
data.recent[].depth.competition | boolean | The competition or tour |
data.recent[].depth.match_page | boolean | |
meta | object | |
meta.plan | string | The plan the key is on |
Example answer
A real answer for /v1/teams/england/head-to-head/australia, lists cut to their first two items.
{
"data": {
"teams": [
"england",
"australia"
],
"by_format": {
"odi": {
"played": 126,
"england": 46,
"australia": 77,
"other": 3
},
"t20i": {
"played": 69,
"england": 31,
"australia": 33,
"other": 5
},
"test": {
"played": 76,
"england": 21,
"australia": 39,
"other": 16
}
},
"recent": [
{
"match": "2026-11-29-australia-v-england",
"date": "2026-11-29",
"format": "t20i",
"gender": "male",
"coverage": "full",
"competition": "England tour of Australia",
"competition_name": null,
"stage": "Match 4",
"ground": null,
"official_number": null,
"teams": [
{
"team": "england",
"name": "England",
"score": "181/7",
"overs": "20",
"won": true
},
{
"team": "australia",
"name": "Australia",
"score": "174/7",
"overs": "20",
"won": false
}
],
"result": "England won by 7 runs",
"depth": {
"deliveries": true,
"scorecard": true,
"innings_totals": true,
"weather": false,
"competition": true,
"match_page": true
}
},
{
"match": "2026-11-27-australia-v-england",
"date": "2026-11-27",
"format": "t20i",
"gender": "male",
"coverage": "full",
"competition": "England tour of Australia",
"competition_name": null,
"stage": "Match 3",
"ground": null,
"official_number": null,
"teams": [
{
"team": "australia",
"name": "Australia",
"score": "108",
"overs": "16.5",
"won": false
},
{
"team": "england",
"name": "England",
"score": "93/3",
"overs": "8.5",
"won": true
}
],
"result": "England won by 7 wickets (DLS)",
"depth": {
"deliveries": true,
"scorecard": true,
"innings_totals": true,
"weather": false,
"competition": true,
"match_page": true
}
},
"... 8 more"
]
},
"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 |