Hockey.Matches

Get all matches

Refresh interval: Once a minute

Route returns only general match information. For additional match details check the matches/{matchId} route.

Retrieve a list of matches based on the requested query parameters.

At least one primary query parameter needs to be specified before you can retrieve the data (timezone, limit, offset are considered secondary).

You can specify the timezone field in combination with the date query parameter to get matches relevant to your location.

There are two other important parameters. The limit parameter defines what the number of returned matches will be. If the number of actual matches is above the limit value you can make subsequent requests by increasing the offset value.

Matches have different possible states they can be in:

StateDescription
Not startedMatch has not been started yet.
1st periodMatch is in the first period of regular play.
2nd periodMatch is in the second period of regular play.
3nd periodMatch is in the third period of regular play.
Over timeGame was considered a draw in normal time. Additional extra time is needed to decide the winner.
Break timeShort pause between in play periods and over time.
PenaltiesPenalty shootout to decide the winner of the match.
FinishedMatch has been concluded.
Finished after penaltiesMatch has been concluded with the penalty shootout.
Finished after over timeMatch has been concluded in over time.
PostponedMatch has been postponed due to certain circumstances that are preventing the game from being played. Event start time will be changed to a moment in the future.
SuspendedMatch has already been in play but was suspended. In the future the game will resume from the exact point where it was halted.
CancelledGame will not be played.
AwardedGame awarded to one of the teams when the other forfeits or specific circumstances have been met such as insufficient players, late arrival, team withdrawl, etc.
InterruptedAn issue arose that is preventing the game from continuing. Based on the interruption the game will either resume normal play or be abandoned.
AbandonedConsidered "abandoned" when it is prematurely ended by the officials and can not be resumed or completed. In the future the game might be resumed from the exact point where it was halted.
UnknownUnknown match coverage or state.
To be announcedMatch's start time will be updated or competing teams are not yet known.

Below is an example of what you can aim to achieve with the matches endpoint:

Hockey matches example

get/hockey/matches

Request

Query parameters

leagueNamestring
Example:DEL
leagueIdnumber
Example:16953
datestring
Example:2023-10-13

Date that follows the YYYY-MM-DD format.

timezonestring
Example:Europe/London

Valid timezone identifier.

seasonnumber
Example:2023
homeTeamIdnumber
Example:223746
awayTeamIdnumber
Example:214385
homeTeamNamestring
Example:Frankfurt Lowen
awayTeamNamestring
Example:Kolner
countryCodestring
Example:DE
countryNamestring
Example:Germany
limitnumber
Example:100
offsetnumber

Headers

x-rapidapi-hoststring required

sport-highlights-api.p.rapidapi.com

x-rapidapi-keystring required

Rapid API Token

Response

Example response

{
  "data": [
    {
      "id": 291869956,
      "week": "1",
      "date": "2023-10-13T17:30:00.000Z",
      "country": {
        "code": "DE",
        "name": "Germany",
        "logo": "https://example.com/logos/country/DE.png"
      },
      "awayTeam": {
        "id": 223746,
        "logo": "https://example.com/logos/team/223746.png",
        "name": "Frankfurt Lowen"
      },
      "homeTeam": {
        "id": 223746,
        "logo": "https://example.com/logos/team/223746.png",
        "name": "Frankfurt Lowen"
      },
      "league": {
        "id": 16953,
        "season": 2023,
        "name": "DEL",
        "logo": "https://example.com/logos/league/16953.png"
      },
      "state": {
        "description": "1st period",
        "score": {
          "current": "4 - 4",
          "overTime": "6 - 4",
          "penalties": "17 - 33",
          "firstPeriod": "2 - 0",
          "secondPeriod": "2 - 1",
          "thirdPeriod": "5 - 2"
        }
      }
    }
  ],
  "pagination": {
    "totalCount": 490,
    "offset": 20,
    "limit": 100
  },
  "plan": {
    "tier": "BASIC",
    "message": "Some results might be hidden with FREE tier. Check your API coverage for more information: https://rapidapi.com/highlightly-api-highlightly-api-default/api/sport-highlights-api/details"
  }
}

Changes

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