Cricket.Head 2 Head

Get head 2 head games

Retrieve a list of the last ten head 2 head games between two teams. Compare the two teams to find out who is stronger based on their past match results.

Specify teamIdOne and teamIdTwo query parameters to retrieve the data. The order of team ids does not matter.

Below is an example of what you can achieve with the data:

H2H example

get/cricket/head-2-head

Request

Query parameters

teamIdOnenumber required
Example:17838627
teamIdTwonumber required
Example:17838662

Headers

x-rapidapi-hoststring required

sport-highlights-api.p.rapidapi.com

x-rapidapi-keystring required

Rapid API Token

Response

idstring required
endDatestring required
startDatestring required
startTimestring
formatstring

Cricket match format, e.g. T20, ODI, TEST

dayType'SINGLE' | 'MULTI'

Information that tells us whether the match will be played across multiple days

Example response

[
  {
    "id": "48514657",
    "endDate": "2024-01-13T00:00:00.000Z",
    "startDate": "2024-01-13T00:00:00.000Z",
    "startTime": "2024-01-13T14:30:00.000Z",
    "country": {
      "code": "AU",
      "name": "Australia",
      "logo": "https://example.com/logos/country/AU.png"
    },
    "awayTeam": {
      "id": "17838627",
      "logo": "https://example.com/logos/team/17838627.png",
      "name": "Melbourne Stars",
      "abbreviation": "MS"
    },
    "homeTeam": {
      "id": "17838627",
      "logo": "https://example.com/logos/team/17838627.png",
      "name": "Melbourne Stars",
      "abbreviation": "MS"
    },
    "league": {
      "id": "48513362",
      "season": 2023,
      "name": "Big Bash League",
      "logo": "https://example.com/logos/league/48513362.png"
    },
    "format": "T20",
    "dayType": "SINGLE",
    "state": {
      "description": "Finished",
      "report": "Renegades won by 6 wickets (with 16 balls remaining)",
      "teams": {
        "away": {
          "info": "17.2/20 ov, T:138",
          "score": "139/4"
        },
        "home": {
          "score": "137/8"
        }
      }
    }
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.