MLB & Minor League Player Stats API
Season stat lines for every MLB and minor-league player (Triple-A to Single-A): hitting, pitching or fielding, with team, league, position, counting stats and rate stats such as average, OPS and ERA.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from statsapi.mlb.com/api/v1/stats
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/mlb-player-season-stats/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"season":2026},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
24 fields: 22 here, 2 technical ones under Technical details.
Basics
- Stat group
hitting, pitching or fielding: which stat group the row comes from.
Example hitting
- Player name
Player's full name.
Example Pete Crow-Armstrong
- Team name
Example Chicago Cubs
- League
League name, such as NL.
Example NL
- Position
Position abbreviation, such as CF or P.
Example CF
- Games played
Example 162
- Plate appearances
Example 726
- At bats
At bats (hitting).
Example 626
- Hits
Example 175
- Home runs
Example 45
- Rbi
Runs batted in.
Example 107
- Stolen bases
Example 41
- Batting average
Example 0.28
- Obp
On-base percentage (hitting).
Example 0.372%
- Slg
Slugging percentage (hitting).
Example 0.57%
- Ops
On-base plus slugging (hitting).
Example 0.942
- Strikeouts
Strikeouts: by the batter, or by the pitcher.
Example 187
- Walks
Walks: drawn by the batter, or issued by the pitcher.
Example 83
- Era
Earned run average (pitching).
Example 1.8
- Whip
Walks plus hits per inning pitched (pitching).
Example 0.8
- Innings pitched
Example 174.2
- Saves
Example 0
Technical detailsField names and types for developers, and the 2 fields hidden above
Hidden by default
These 2 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.
- ID
idPlayer id, season, level and team. - Player ID
player_idMLB's player id.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
stat_group | text | Stat group | 3 of 3 |
player_id | text | Player ID (hidden) | 3 of 3 |
player_name | text | Player name | 3 of 3 |
team | text | Team name | 3 of 3 |
league | text | League | 3 of 3 |
position | text | Position | 3 of 3 |
games_played | number | Games played | 3 of 3 |
plate_appearances | number | Plate appearances | 2 of 3 |
at_bats | number | At bats | 3 of 3 |
hits | number | Hits | 3 of 3 |
home_runs | number | Home runs | 3 of 3 |
rbi | number | Rbi | 2 of 3 |
stolen_bases | number | Stolen bases | 3 of 3 |
avg | number | Batting average | 3 of 3 |
obp | number | Obp | 3 of 3 |
slg | number | Slg | 3 of 3 |
ops | number | Ops | 3 of 3 |
strikeouts | number | Strikeouts | 3 of 3 |
walks | number | Walks | 3 of 3 |
era | number | Era | 1 of 3 |
whip | number | Whip | 1 of 3 |
innings_pitched | number | Innings pitched | 1 of 3 |
saves | number | Saves | 1 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Stat group | Player name | Team name | League | Position | Games played | Plate appearances | At bats | Hits | Home runs | Rbi | Stolen bases | Batting average | Obp | Slg | Ops | Strikeouts | Walks | Era | Whip | Innings pitched | Saves |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | hitting | Pete Crow-Armstrong | Chicago Cubs | NL | CF | 162 | 726 | 626 | 175 | 45 | 107 | 41 | 0.28 | 0.372% | 0.57% | 0.942 | 187 | 83 | — | — | — | — |
| 2 | pitching | Jacob Misiorowski | Milwaukee Brewers | NL | P | 30 | — | 610 | 96 | 14 | — | 2 | 0.157 | 0.224% | 0.246% | 0.47 | 252 | 44 | 1.8 | 0.8 | 174.2 | 0 |
| 3 | hitting | Kyle Schwarber | Philadelphia Phillies | NL | DH | 156 | 701 | 581 | 135 | 45 | 97 | 3 | 0.232 | 0.354% | 0.503% | 0.857 | 220 | 105 | — | — | — | — |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Stats come from MLB's public stats service and update during games; a player traded in-season has one row per team.
- Hitting rows leave pitching fields empty and pitching rows leave hitting fields empty (group both returns both kinds); fielding rows carry games only. stat_group tells which a row is.
- In pitching rows, at_bats, hits, home_runs, avg, obp, slg and ops are what batters did against that pitcher.
- Every record is a player's whole season for the level you pick; the pool is all players, not only qualified ones, so many rows have tiny samples.
- At most 5,000 players per run; use sort_stat and teams to narrow.
- MLB's notice on every response allows only individual, non-commercial, non-bulk use without written authorization. Get MLB's permission before using this data commercially.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.