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

# Get a single inning by id

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

## Request

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

## Path parameters

- `id` integer, required: Primary Key

## Response `200`

Single innings row.

- MLBInnings: Each half-inning of every MLB game — runs scored, hits, errors, base traffic, plate appearances, who pitched, and how the offense ended each frame.
  - `away_team_errors` integer, required
  - `away_team_hits` integer, required
  - `away_team_runs` integer, required
  - `game_id` integer, required
  - `home_team_errors` integer, required
  - `home_team_hits` integer, required
  - `home_team_runs` integer, required
  - `id` integer, required: Primary Key
  - `inning_half` string, required
  - `inning_number` integer, required

## 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/23b66b957723?raw)
