---
title: "Get highlight by id"
method: GET
path: "/baseball/highlights/{id}"
tags: ["Baseball.Highlights"]
---

# Get highlight by id

`GET /baseball/highlights/{id}`

## Request

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

Retrieve highlight information by specifying the highlight id path parameter.

> Note: Used to check whether a highlight still exists or had its information updated.

## Path parameters

- `id` number, required

## Headers

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

## Response `200`

- BaseballHighlightResponseDto[]
  - `id` number, required
  - `type` string, required
  - `imgUrl` string: Preview picture of the highlight.
  - `title` string, required
  - `description` string
  - `url` string, required: Url location of the video highlight.
  - `embedUrl` string: Url of embeddable video highlight.
  - `match` BaseballHighlightMatchResponseDto, required
    - `id` number, required
    - `round` string, required
    - `date` string, required
    - `league` string, required
    - `season` number, required
    - `awayTeam` BaseballHighlightMatchTeamResponseDto, required
      - `id` number, required
      - `logo` string
      - `name` string
      - `displayName` string, required
      - `abbreviation` string, required
    - `homeTeam` BaseballHighlightMatchTeamResponseDto, required
      - `id` number, required
      - `logo` string
      - `name` string
      - `displayName` string, required
      - `abbreviation` string, required
  - `channel` string: Channel title of a given highlight.
  - `source` string: Aggregation source from social media and other equivalent platforms.

## 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)
