---
title: "Get match by id"
method: GET
path: "/baseball/matches/{id}"
tags: ["Baseball.Matches"]
---

# Get match by id

`GET /baseball/matches/{id}`

## Request

- Base URL: `https://sports.highlightly.net`
- URL: `https://sports.highlightly.net/baseball/matches/{id}`
- Auth: none declared. Required headers: `x-rapidapi-host`, `x-rapidapi-key`
- TypeScript: <https://skmtc.dev/highlightly/apis/sports-api-highlightly/docs/baseball/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`, match `stats`, who the game's `referees` are, each team's `rosters`, and `plays`.

> 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`

- BaseballDetailedMatchResponseDto[]
  - `id` number, required
  - `round` string, required
  - `date` string, required
  - `league` string, required
  - `season` number, required
  - `awayTeam` BaseballMatchTeamResponseDto, required
    - `id` number, required
    - `logo` string
    - `name` string
    - `displayName` string, required
    - `abbreviation` string, required
  - `homeTeam` BaseballMatchTeamResponseDto, required
    - `id` number, required
    - `logo` string
    - `name` string
    - `displayName` string, required
    - `abbreviation` string, required
  - `state` BaseballMatchStateResponseDto, required
    - `description` 'Finished' | 'Postponed' | 'Period End' | 'Rain Delay' | 'Scheduled' | 'Half Time' | 'In Progress' | 'Canceled' | 'Unknown' | 'Suspended' | 'Abandoned', required
    - `report` string: Additional description of the match state.
    - `score` BaseballMatchScoreResponseDto, required
      - `home` BaseballMatchScore, required
        - `hits` number
        - `errors` number
        - `innings` string[], required: Scores for each played inning.
      - `away` BaseballMatchScore, required
        - `hits` number
        - `errors` number
        - `innings` string[], required: Scores for each played inning.
      - `current` string
  - `venue` BaseballMatchVenueResponseDto
    - `city` string, required
    - `name` string, required
    - `state` string, required
  - `stats` BaseballMatchStatisticsResponseDto[]
    - `team` BaseballMatchTeamStatisticsResponseDto, required
      - `id` number, required
      - `name` string, required
      - `logo` string
      - `statistics` BaseballTeamStatItemResponseDto[], required
        - `name` string, required
        - `value` number, required
        - `group` string, required
  - `plays` BaseballDetailedMatchPlaysDto[]
    - `type` string, required
    - `teamId` number, required
    - `description` string, required
    - `currentOuts` number, required
    - `period` string, required
    - `pitch` BaseballDetailedMatchPitch, required
      - `type` string
      - `velocity` number
      - `ballsCount` number
      - `strikesCount` number
    - `result` BaseballDetailedMatchResult, required
      - `ballsCount` number
      - `strikesCount` number
    - `score` BaseballDetailedMatchScoreAtPlay, required
      - `away` number
      - `home` number
  - `referees` BaseballDetailedMatchRefereesDto[]
    - `name` string, required
    - `position` string, required
  - `rosters` BaseballDetailedMatchRostersDto
    - `awayTeam` BaseballDetailedMatchRosterSingleDto, required
      - `jersey` number
      - `fullName` string, required
      - `position` string, required
      - `isStarter` boolean, required
    - `homeTeam` BaseballDetailedMatchRosterSingleDto, required
      - `jersey` number
      - `fullName` string, required
      - `position` string, required
      - `isStarter` boolean, required
  - `forecast` DetailedMatchForecastResponseDto
    - `status` string
    - `temperature` string
  - `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)
