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

# Get a single team by id

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

## Request

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

## Path parameters

- `id` integer, required: Primary Key

## Response `200`

Single teams row.

- MLBTeams: The 30 MLB franchises, organized into the American and National Leagues with three divisions in each.
  - `abbreviation` string, required
  - `active` boolean, required
  - `city` string, required
  - `division` string, required
  - `full_name` string, required
  - `id` integer, required: Primary Key
  - `league` string, required
  - `league_team_id` integer, nullable: Official MLB team ID (issued by the league)
  - `logo_url` string, nullable: URL to team logo image
  - `name` string, required
  - `venue_id` integer, nullable

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