---
title: "Get match by id"
method: GET
path: "/nhl/matches/{id}"
tags: ["NHL, NCAAH.Matches"]
---

# Get match by id

`GET /nhl/matches/{id}`

## Request

- Base URL: `https://sports.highlightly.net`
- URL: `https://sports.highlightly.net/nhl/matches/{id}`
- Auth: none declared. Required headers: `x-rapidapi-host`, `x-rapidapi-key`
- TypeScript: <https://skmtc.dev/highlightly/apis/sports-api-highlightly/docs/nhl/matches/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve detailed match information by specifying the match id path parameter.

Fetched data will have additional information about the `venue`, weather `forecast`, `overallStatistics` for each team, who the game's `referees` are and `events`.

> Note: Used to retrieve additional match information.

## Path parameters

- `id` number, required

## Headers

- `x-rapidapi-host` string, required
- `x-rapidapi-key` string, required

## Response `200`

- NhlDetailedMatchResponseDto[]
  - `id` number, required
  - `round` string, required
  - `date` string, required
  - `league` string, required
  - `season` number, required
  - `awayTeam` NhlMatchTeamResponseDto, required
    - `id` number, required
    - `logo` string
    - `name` string
    - `displayName` string, required
    - `abbreviation` string, required
  - `homeTeam` NhlMatchTeamResponseDto, required
    - `id` number, required
    - `logo` string
    - `name` string
    - `displayName` string, required
    - `abbreviation` string, required
  - `state` NhlMatchStateResponseDto, required
    - `period` number: Current in play period.
    - `clock` number: Current minute of the in play period.
    - `description` 'Suspended' | 'Postponed' | 'Cancelled' | 'Abandoned' | 'Finished' | 'In progress' | 'End period' | 'Half time' | 'Unknown' | 'Scheduled', required: Current status/description of the match.
    - `score` NhlMatchScoreResponseDto, required
      - `current` string: Home - Away score for the match.
      - `firstPeriod` string: Home - Away score in 1st period.
      - `secondPeriod` string: Home - Away score in 2nd period.
      - `thirdPeriod` string: Home - Away score in 3rd period.
      - `overtimePeriod` string: Home - Away score in the overtime period.
    - `report` string: Additional description of the match state.
  - `venue` NhlMatchVenueResponseDto
    - `city` string, required
    - `name` string, required
    - `state` string, required
  - `referees` NhlDetailedMatchRefereesDto[]
    - `name` string, required
    - `position` string, required
  - `forecast` DetailedMatchForecastResponseDto
    - `status` string
    - `temperature` string
  - `overallStatistics` NhlOverallStatsResponseDto[]
    - `data` NhlOverallStatsItemResponseDto[], required
      - `value` string, required
      - `displayName` string, required
    - `team` NhlTeamResponseDto, required
      - `id` number, required
      - `logo` string
      - `name` string
      - `displayName` string, required
      - `abbreviation` string, required
      - `league` string, required
  - `events` NhlDetailedMatchEventDto[]
    - `type` string, required
    - `clock` string, required
    - `period` number, required
    - `isScoringPlay` boolean, required
    - `team` NhlTeamResponseDto
      - `id` number, required
      - `logo` string
      - `name` string
      - `displayName` string, required
      - `abbreviation` string, required
      - `league` string, required
  - `predictions` PredictionResponseDto
    - `prematch` PredictionDto[], required
      - `type` string, required
      - `modelType` string, required
      - `generatedAt` string, required
      - `description` string, required
      - `probabilities` PredictionProbabilitiesDto, required
        - `home` string, required
        - `draw` string
        - `away` string, required
    - `live` PredictionDto[], required
      - `type` string, required
      - `modelType` string, required
      - `generatedAt` string, required
      - `description` string, required
      - `probabilities` PredictionProbabilitiesDto, required
        - `home` string, required
        - `draw` string
        - `away` string, required

## Other responses

- `400`: Bad request descriptive error.
- `500`: Internal server error.

---

[API](https://skmtc.dev/highlightly/apis/sports-api-highlightly.md) - [All operations](https://skmtc.dev/highlightly/apis/sports-api-highlightly/llms.txt) - [OpenAPI document](https://skmtc.dev/highlightly/apis/sports-api-highlightly/revisions/c8a366d3091f?raw)
