NHL, NCAAH.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/nhl/head-2-head

Request

Query parameters

teamIdOnenumber required
Example:1
teamIdTwonumber required
Example:2

Headers

x-rapidapi-hoststring required

sport-highlights-api.p.rapidapi.com

x-rapidapi-keystring required

Rapid API Token

Response

idnumber required
roundstring required
datestring required
leaguestring required
seasonnumber required

Example response

[
  {
    "id": 1,
    "round": "Regular Season - 14",
    "date": "2023-05-20T15:30:00.000Z",
    "league": "NHL",
    "season": 2023,
    "awayTeam": {
      "id": 1,
      "logo": "https://example.com/logos/team/1.png",
      "name": "Panthers",
      "displayName": "Florida Panthers",
      "abbreviation": "FLA"
    },
    "homeTeam": {
      "id": 1,
      "logo": "https://example.com/logos/team/1.png",
      "name": "Panthers",
      "displayName": "Florida Panthers",
      "abbreviation": "FLA"
    },
    "state": {
      "period": 2,
      "clock": 8,
      "description": "In progress",
      "score": {
        "current": "1 - 1",
        "firstPeriod": "0 - 0",
        "secondPeriod": "1 - 1",
        "thirdPeriod": "2 - 2",
        "overtimePeriod": "1 - 0"
      },
      "report": "Final"
    }
  }
]

Changes

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