GET/api/v1/people/{personId}/stats
Person stats
A person’s stats for a type, group, and season.
On this page
Try it
https://statsapi.mlb.com/api/v1/people/660271/stats?stats=season&group=hitting&season=2026const 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
| Name | Type | Required | Description |
|---|---|---|---|
personId | number | yes | Person id, e.g. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
stats | seasoncareeryearByYeargameLogstatSplitsvsPlayer | yes | Stat type to return. |
group | hittingpitchingfielding | no | Stat group. |
season | number | no | Four-digit year. |
gameType | RSPWDLF | no | 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
groupcome 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