GET/api/v1/teams/{teamId}/roster
Team roster
Players on a team for a season or roster type.
On this page
Try it
https://statsapi.mlb.com/api/v1/teams/119/roster?rosterType=active&season=2026const res = await fetch('https://statsapi.mlb.com/api/v1/teams/119/roster?rosterType=active&season=2026')
const data = await res.json()curl -s 'https://statsapi.mlb.com/api/v1/teams/119/roster?rosterType=active&season=2026'
Reference
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
teamId | number | yes | Team id, e.g. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
rosterType | active40ManfullSeasonfullRosterdepthChart | no | Which roster to return. Defaults to |
season | number | no | Four-digit year. |
date | date | no | Roster as of a specific day, |
hydrate | csv | no | e.g. |
fields | csv | no | Comma-separated field paths to keep (trims the response), e.g. |
Response
Type: RosterResponse
/** Shared roster wrapper for `/roster`, `/coaches`, and `/jobs/{jobType}`. */
export interface RosterResponse extends WithCopyright {
roster: RosterEntry[]
link: string
teamId?: number
rosterType?: string
}Build with it
Live examples powered by this endpoint with real data. Inspiration — restyle and remix freely.
Roster grid
Every player with headshot, number, and position in a responsive grid.
Loading live data…
Example URLs
- Dodgers active roster (2026):
https://statsapi.mlb.com/api/v1/teams/119/roster?rosterType=active&season=2026 - Dodgers 40-man roster:
https://statsapi.mlb.com/api/v1/teams/119/roster?rosterType=40Man&season=2026