GET/api/v1/teams/{teamId}
Get team by id
A single team by its id.
On this page
Try it
https://statsapi.mlb.com/api/v1/teams/119?season=2026const res = await fetch('https://statsapi.mlb.com/api/v1/teams/119?season=2026')
const data = await res.json()curl -s 'https://statsapi.mlb.com/api/v1/teams/119?season=2026'
Reference
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
teamId | number | yes | Team id, e.g. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
season | number | no | Four-digit year. |
hydrate | csv | no | Comma-separated hydrations. |
fields | csv | no | Comma-separated field paths to keep (trims the response), e.g. |
Response
Type: TeamsResponse
/** `GET /api/v1/teams` */
export interface TeamsResponse extends WithCopyright {
teams: Team[]
}Notes
Like the list endpoint, the single-team response is still wrapped in a
teamsarray of length 1.
Build with it
Live examples powered by this endpoint with real data. Inspiration — restyle and remix freely.
Team card
Logo, ballpark, division, and founding year — a team identity badge.
Loading live data…
Example URLs
- Dodgers (2026):
https://statsapi.mlb.com/api/v1/teams/119?season=2026