A batting line tells you what happened. Statcast tells you what should have happened, based on how hard and at what angle each ball was hit. The gap between the two, wOBA minus xwOBA, is the best quick read on which hitters ran hot or cold on luck, and which ones are likely to swing back next season.
MLB publishes both, for free, in two places. Here is how to join them, and what the 2026 season looks like.
Source 1: the MLB Stats API
The official API behind MLB.com, no key:
GET https://statsapi.mlb.com/api/v1/stats?stats=season&group=hitting&season=2026&sportId=1&playerPool=all&limit=3000
Each split has player.id (the MLBAM id), team, position and a stat object with everything from plateAppearances to ops and babip. Use group=pitching for pitchers and playerPool=qualified for title qualifiers only.
Source 2: Baseball Savant CSVs
Savant's leaderboards export CSV with the same player id:
GET https://baseballsavant.mlb.com/leaderboard/expected_statistics?type=batter&year=2026&position=&team=&min=1&csv=true
GET https://baseballsavant.mlb.com/leaderboard/statcast?type=batter&year=2026&position=&team=&min=1&csv=true
The first has ba, est_ba, slg, est_slg, woba, est_woba (and era, xera for pitchers). The second has exit velocity, launch angle, hard-hit % and barrels.
Two gotchas cost me time:
- The CSV starts with a byte-order mark, so your first column header is
last_name, first_name, notlast_name, first_name. Strip it. - The column
est_woba_minus_woba_diffis actually wOBA minus xwOBA, the opposite of what its name says. Check it against two players before you trust the sign.
The join
const stats = await (await fetch('https://statsapi.mlb.com/api/v1/stats?stats=season&group=hitting&season=2026&sportId=1&playerPool=all&limit=3000')).json();
const csv = (await (await fetch('https://baseballsavant.mlb.com/leaderboard/expected_statistics?type=batter&year=2026&position=&team=&min=1&csv=true')).text()).replace(/^/, '');
const [head, ...lines] = csv.trim().split('\n');
const cols = head.match(/"[^"]*"|[^,]+/g).map((c) => c.replace(/"/g, ''));
const savant = new Map(lines.map((l) => {
const v = l.match(/"[^"]*"|[^,]+/g).map((c) => c.replace(/"/g, ''));
const row = Object.fromEntries(cols.map((c, i) => [c, v[i]]));
return [row.player_id, row];
}));
for (const s of stats.stats[0].splits) {
const x = savant.get(String(s.player.id));
if (!x || s.stat.plateAppearances < 400) continue;
console.log(s.player.fullName, s.team.name, 'wOBA', x.woba, 'xwOBA', x.est_woba);
}
(A real CSV parser is safer than that regex, but it shows the idea.)
2026: the unluckiest hitters (400+ PA)
wOBA well below xwOBA: they hit the ball better than their line shows.
| Hitter | Team | AVG | wOBA | xwOBA | Gap |
|---|---|---|---|---|---|
| J.T. Realmuto | PHI | .205 | .275 | .317 | −.042 |
| Bobby Witt Jr. | KC | .281 | .345 | .378 | −.033 |
| Salvador Perez | KC | .229 | .285 | .316 | −.031 |
| Corey Seager | TEX | .227 | .320 | .350 | −.030 |
| Jackson Merrill | SD | .254 | .320 | .347 | −.027 |
Bobby Witt Jr. stands out: a 33-point gap on a star's season is the kind of thing that turns into a big bounce-back year.
The luckiest
| Hitter | Team | AVG | wOBA | xwOBA | Gap |
|---|---|---|---|---|---|
| Nolan Arenado | AZ | .255 | .349 | .300 | +.049 |
| Javier Sanoja | MIA | .295 | .342 | .295 | +.047 |
| Ceddanne Rafaela | BOS | .285 | .332 | .285 | +.047 |
| Ty France | SD | .295 | .373 | .327 | +.046 |
| Mickey Moniak | COL | .238 | .322 | .279 | +.043 |
The Coors Field trap
Look at who is on the lucky list: a Rockie. Then sort pitchers by ERA minus xERA (120+ innings): Colorado's Kyle Freeland has a 6.65 ERA against a 5.54 xERA, one of the biggest "unlucky" gaps in baseball.
That is not luck. xwOBA and xERA ignore the ballpark. Coors Field's thin air turns fly balls into hits and home runs, so Rockies hitters will always look lucky and Rockies pitchers unlucky. Before you call a regression, check where the player plays half his games.
Who hits the ball hardest
Barrel rate, 400+ PA: Munetaka Murakami 20.5% (35 HR), James Wood 18.6% (30), Nick Kurtz 18.0%, Shohei Ohtani 16.2%, Mike Trout 16.0%.
Is a gap meaningful?
Across 205 hitters with 400+ PA, the gap has a standard deviation of about 19 points, and a third of hitters are more than 20 points off. A gap of 40+ is unusual, and park effects and sprint speed explain part of it. Chandler Simpson (.305 wOBA, .263 xwOBA, zero home runs) is the textbook case: xwOBA barely credits speed, and he beats out ground balls it scores as outs.
Data and a ready-made scraper
The joined 2026 table (1,619 hitters and pitchers, season stats plus Statcast) is free on Kaggle: MLB 2026 Player Stats with Statcast.
If you'd rather not maintain the join, I put it on Apify as MLB Stats & Statcast. It does the season leaderboard, lookups by player name, and games with probable pitchers.
Witt bounce-back or not?
Top comments (0)