MLB Stats API Docs

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

GET/api/v1/people/{personId}/stats

Person stats

A person’s stats for a type, group, and season.

On this page

Try it

Path
Query
https://statsapi.mlb.com/api/v1/people/660271/stats?stats=season&group=hitting&season=2026
const res = await fetch('https://statsapi.mlb.com/api/v1/people/660271/stats?stats=season&group=hitting&season=2026')
const data = await res.json()
curl -s 'https://statsapi.mlb.com/api/v1/people/660271/stats?stats=season&group=hitting&season=2026'

Reference

Path parameters

NameTypeRequiredDescription
personIdnumberyes

Person id, e.g. 660271 (Shohei Ohtani).

Query parameters

NameTypeRequiredDescription
statsseasoncareeryearByYeargameLogstatSplitsvsPlayeryes

Stat type to return.

grouphittingpitchingfieldingno

Stat group.

seasonnumberno

Four-digit year.

gameTypeRSPWDLFno

Game type.

Response

Type: StatsResponse

/**
 * `GET /api/v1/stats`, `/people/{personId}/stats`, and
 * `/people/{personId}/stats/game/{gamePk}`.
 */
export interface StatsResponse extends WithCopyright {
	stats: StatGroup[]
}

Notes

  • Stat names accepted by group come from /api/v1/baseballStats.

Build with it

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

Season stat line

A compact slash-line + counting-stats panel for the chosen player.

Loading live data…

Example URLs

  • Ohtani hitting, 2026 season: https://statsapi.mlb.com/api/v1/people/660271/stats?stats=season&group=hitting&season=2026