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.

Try it
Ready-made, maintained by usRecords, 24 fieldsv1.0

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

Seasonoptional
Season year.
Example: 2026
Groupoptional
Which stats: hitting, pitching, fielding, or both (hitters and pitchers mixed, each sorted by home runs and strikeouts).
Leveloptional
MLB, AAA, AA, High-A or Single-A.
Sort statoptional
Stat to sort by, such as homeRuns, ops, era, strikeOuts. Ignored when group is both.
Example: homeRuns
Teamsoptional
Only players of these teams, by name or part of it, such as Chicago Cubs. One per line, or separated by commas.
Example: Chicago Cubs
Maximum resultsoptional
Most players to return.
Example: 200

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
Endpoint
POSThttps://pullrow.dev/v1/apis/mlb-player-season-stats/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

seasonnumber
Season year.
example: 2026
grouptext
Which stats: hitting, pitching, fielding, or both (hitters and pitchers mixed, each sorted by home runs and strikeouts).
default: hittingexample: hittingone of: hitting, pitching, fielding, both
leveltext
MLB, AAA, AA, High-A or Single-A.
default: MLBexample: MLBone of: MLB, AAA, AA, High-A, Single-A
sort_stattext
Stat to sort by, such as homeRuns, ops, era, strikeOuts. Ignored when group is both.
example: homeRuns
teamslist
Only players of these teams, by name or part of it, such as Chicago Cubs.
example: Chicago Cubs
max_resultsnumber
Most players to return.
example: 200

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 nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
stat_grouptextStat group3 of 3
player_idtextPlayer ID (hidden)3 of 3
player_nametextPlayer name3 of 3
teamtextTeam name3 of 3
leaguetextLeague3 of 3
positiontextPosition3 of 3
games_playednumberGames played3 of 3
plate_appearancesnumberPlate appearances2 of 3
at_batsnumberAt bats3 of 3
hitsnumberHits3 of 3
home_runsnumberHome runs3 of 3
rbinumberRbi2 of 3
stolen_basesnumberStolen bases3 of 3
avgnumberBatting average3 of 3
obpnumberObp3 of 3
slgnumberSlg3 of 3
opsnumberOps3 of 3
strikeoutsnumberStrikeouts3 of 3
walksnumberWalks3 of 3
eranumberEra1 of 3
whipnumberWhip1 of 3
innings_pitchednumberInnings pitched1 of 3
savesnumberSaves1 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordStat groupPlayer nameTeam nameLeaguePositionGames playedPlate appearancesAt batsHitsHome runsRbiStolen basesBatting averageObpSlgOpsStrikeoutsWalksEraWhipInnings pitchedSaves
1hittingPete Crow-ArmstrongChicago CubsNLCF16272662617545107410.280.372%0.57%0.94218783————
2pitchingJacob MisiorowskiMilwaukee BrewersNLP30—6109614—20.1570.224%0.246%0.47252441.80.8174.20
3hittingKyle SchwarberPhiladelphia PhilliesNLDH156701581135459730.2320.354%0.503%0.857220105————

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.
Known limits
  • 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.