Cricket Database
0 of 50 calls today
Get a free API key Sign in Dashboard Upgrade

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.

GEThttps://api.cricketdatabase.com/v1/teams/{team}/head-to-head/{other}

Try it

Kept in this browser and filled in on every docs page.

Press Run to call the API with your key. The answer appears here.

    

Parameters

NameTypeRequiredDescriptionValues
teamstringyesIn the address: the team's address nameengland
otherstringyesIn the address: the other's address nameaustralia

Returns

FieldTypeWhat it holds
dataobject
data.teamsarrayEach side in the match
data.by_formatobject
data.by_format.odiobject
data.by_format.odi.playedinteger
data.by_format.odi.englandinteger
data.by_format.odi.australiainteger
data.by_format.odi.otherinteger
data.by_format.t20iobject
data.by_format.t20i.playedinteger
data.by_format.t20i.englandinteger
data.by_format.t20i.australiainteger
data.by_format.t20i.otherinteger
data.by_format.testobject
data.by_format.test.playedinteger
data.by_format.test.englandinteger
data.by_format.test.australiainteger
data.by_format.test.otherinteger
data.recent[]arraymatch, date, format, gender, coverage, competition, competition_name, stage, ground, official_number, teams, result, depth
data.recent[].teams[].teamstringA side's address name
data.recent[].teams[].namestringThe name as shown
data.recent[].teams[].scorestringRuns and wickets, every innings
data.recent[].teams[].oversstringOvers faced
data.recent[].teams[].wonbooleanWhether this side won
data.recent[].depth.deliveriesboolean
data.recent[].depth.scorecardboolean
data.recent[].depth.innings_totalsboolean
data.recent[].depth.weatherboolean
data.recent[].depth.competitionbooleanThe competition or tour
data.recent[].depth.match_pageboolean
metaobject
meta.planstringThe 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

StatusCodeWhen
400bad_requestA value is not one this parameter takes, or the key was sent in the address
401unauthorizedNo key, or one that is unknown or revoked
403upgrade_requiredThe plan does not reach it; the answer names the plan that does
404not_foundNothing at that address
422unknown_parameterA parameter this endpoint does not take
429rate_limitedToo fast: wait for Retry-After
429quota_exceededThe day's calls are used: they reset at midnight UTC