---
title: "Get a single game by id"
method: GET
path: "/api/v1/mlb/games/{id}"
tags: ["MLB"]
---

# Get a single game by id

`GET /api/v1/mlb/games/{id}`

## Request

- Base URL: `https://api.stat-api.com`
- URL: `https://api.stat-api.com/api/v1/mlb/games/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` integer, required: Primary Key

## Response `200`

Single games row.

- MLBGames: Every scheduled and played MLB game — spring training exhibitions, the 162-game regular season, the Wild Card Series, the Division and Championship Series, and the World Series.
  - `attendance` integer, nullable
  - `away_team_id` integer, required
  - `away_team_score` integer, required
  - `channel` string, nullable
  - `day` integer, required
  - `day_night` string, nullable: D=Day, N=Night
  - `doubleheader` boolean, required
  - `duration_minutes` integer, nullable: Total game duration in minutes
  - `end_time` string, date-time, nullable
  - `game_label` string, nullable
  - `game_number` integer, required: For doubleheaders: 1 or 2
  - `game_time` string, date-time, required: Canonical game start time. The ONLY one on any games table — nba and nfl carried a duplicate `start_time` until 2026-08-27 and nhl carried `date_time` and `date_time_utc`; all four sports now expose `game_time` alone.
  - `game_type` string, required: R=Regular, S=Spring, F=Wild Card, D=Division, L=League, W=World Series, E=Exhibition, A=All-Star
  - `home_team_id` integer, required
  - `home_team_score` integer, required
  - `id` integer, required: Primary Key
  - `if_necessary` boolean, nullable
  - `league_game_id` integer, nullable: Official MLB gamePk (issued by the league)
  - `league_id` string, nullable: Official MLB game identifier
  - `losing_pitcher_id` integer, nullable: Losing pitcher of record
  - `neutral_venue` boolean, required
  - `postponed_status` string, nullable
  - `save_pitcher_id` integer, nullable: Save pitcher (if any)
  - `season_id` integer, required
  - `season_type` string, required: Canonical season phase. Postseason round detail (Wild Card/Division/LCS/World Series) is in the league-native `game_type` code.
  - `series_game_number` string, nullable
  - `series_name` string, nullable
  - `series_text` string, nullable
  - `status` string, required: Final, Live, Scheduled, Postponed, Suspended, Cancelled
  - `venue_id` integer, nullable
  - `winning_pitcher_id` integer, nullable: Winning pitcher of record

## Other responses

- `404`: Row not found.

---

[API](https://skmtc.dev/stat-api/apis/sports-db-public-api.md) · [All operations](https://skmtc.dev/stat-api/apis/sports-db-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/stat-api/apis/sports-db-public-api/revisions/601ff9eaca3f?raw)
