GET/api/v1/uniforms/game
Game uniforms
Uniform assignments for one or more games.
On this page
Try it
https://statsapi.mlb.com/api/v1/uniforms/game?gamePks=744914const res = await fetch('https://statsapi.mlb.com/api/v1/uniforms/game?gamePks=744914')
const data = await res.json()curl -s 'https://statsapi.mlb.com/api/v1/uniforms/game?gamePks=744914'
Reference
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
gamePks | csv | yes | One or more game ids (note the plural). |
Response
Type: UniformsResponse
/** `GET /api/v1/uniforms/game` */
export interface UniformsResponse extends WithCopyright {
uniforms: GameUniforms[]
}Notes
The param is
gamePks(plural); a singulargamePkreturns an error.
Build with it
Live examples powered by this endpoint with real data. Inspiration — restyle and remix freely.
Uniform assignments
Which uniform each side wore for the featured game.
Finding a game…
Example URLs
- Uniforms for a game:
https://statsapi.mlb.com/api/v1/uniforms/game?gamePks=744914