MLB Stats API Docs

Type to search endpoints by name, path, or keyword.

GET/api/v1/uniforms/game

Game uniforms

Uniform assignments for one or more games.

On this page

Try it

Query
https://statsapi.mlb.com/api/v1/uniforms/game?gamePks=744914
const 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

NameTypeRequiredDescription
gamePkscsvyes

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 singular gamePk returns 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