Menu

Who got lucky in 2026? Joining MLB season stats with Statcast xwOBA in one script (and the Coors Field trap)
📰

Who got lucky in 2026? Joining MLB season stats with Statcast xwOBA in one script (and the Coors Field trap)

DEV Community: datascience·Ken-Mutisya·3 days ago
#E1UUhqq8
#devtodatascience#science#devto#dev#stats
Long article (942 words) — no AI summary yet.
Reading 0:00
15s threshold

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

Enter fullscreen mode

Exit fullscreen mode

Each split has player.id (the MLBAM id), team , position and a stat object with everything from plateAppearances to ops and babip .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.