MLB Stats API Docs

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

GET/api/v1/baseballStats

Baseball stats (enum)

Every stat name the API understands.

The source of truth for the stat identifiers used in group/leaderCategories params elsewhere. Each entry maps a lookupParam to its label and which stat groups it belongs to.

On this page

Try it

https://statsapi.mlb.com/api/v1/baseballStats
const res = await fetch('https://statsapi.mlb.com/api/v1/baseballStats')
const data = await res.json()
curl -s 'https://statsapi.mlb.com/api/v1/baseballStats'

Reference

Response

Type: BaseballStatsResponse

/** `GET /api/v1/baseballStats` */
export type BaseballStatsResponse = BaseballStat[]

Notes

  • Returns a bare array, not an object wrapper.

Build with it

Live examples powered by this endpoint with real data. Inspiration — restyle and remix freely.

Stat dictionary

A searchable list of every stat name, label, and group.

Loading stat names…

Example URLs

  • All baseball stats: https://statsapi.mlb.com/api/v1/baseballStats