The MLB API, down to every pitch
Batting and pitching box scores, pitch-by-pitch with velocity, movement, spin, exit velocity and barrels, batter vs pitcher, park factors and hourly weather, bullpen fatigue, probable pitchers and lineups, and per-book props with hit rates.
Free tier, no credit card. 30 MLB endpoints. One stable /v1 contract with an OpenAPI 3.1 spec.
# Pro plan. Send your key in the x-api-key header.
curl "https://api.statyx.io/v1/mlb/games/53239/pitches?pitcher_id=1801550" \
-H "x-api-key: sk_live_••••••••"
{
"data": [
{
"game_id": 53239,
"batter_id": 1802333,
"pitcher_id": 1801550,
"pitch_number": 1,
"game_pitch_count": 1,
"pitcher_pitch_count": 1,
"balls": 0,
"strikes": 1,
"pitch_call": "called_strike",
"pitch_type_code": "FF",
"pitch_type": "Four-Seam Fastball",
"release_speed": 96.4,
"…": "24 more fields"
}
],
"meta": {
"count": 50,
"game_id": 53239,
"limit": 50,
"offset": 0
}
}
What's in the MLB API
Raw feeds and the analytics computed from them, under one set of ids.
- 30 teams, schedule, standings and team stats
- Batting and pitching box scores
- Sabermetrics: OPS, WAR, ERA, WHIP, K/9
- Pitch-by-pitch: velocity, movement, spin, exit velocity, barrels
- Plate appearances and play-by-play
- Batter vs pitcher and pitcher game appearances
- Park factors, hourly weather and ballparks
- Bullpen fatigue, reliever vulnerability, pitch-type damage
- Probable pitchers, probable lineups and injuries
- Per-book props and hit rates
- Projections, game simulations and the HR model on All-Access
30 endpoints, and the plan each needs
Every endpoint below is live today. Full parameters, field definitions and sample responses are in the docs.
| Endpoint | What it returns | Plan |
|---|---|---|
GET /v1/mlb/injuries | Injury report: status, expected return, type and note per player. | Free |
GET /v1/mlb/players | Player directory: bats/throws, age, debut. | Free |
GET /v1/mlb/probable-lineups | Projected batting orders, handedness and status. | Free |
GET /v1/mlb/probable-pitchers | Announced probable starting pitchers per game. | Free |
GET /v1/mlb/schedule | Games with venue and status. | Free |
GET /v1/mlb/standings | W/L, GB, streak, runs for/against and splits. | Free |
GET /v1/mlb/teams | Teams with league, division and logos. | Free |
GET /v1/mlb/ballparks | Ballparks with location and field orientation. | Pro |
GET /v1/mlb/batter-vs-pitcher | Career batter vs pitcher head-to-head slash line (AB, H, HR, AVG/OBP/SLG/OPS). | Pro |
GET /v1/mlb/bullpen | Bullpen fatigue and HR-risk board per team per slate: recent workload, available arms, fatigue and HR-risk scores with reasons. | Pro |
GET /v1/mlb/bullpen-pitch-types | Damage a bullpen allows by pitch type and handedness split (usage, exit velocity, hard-hit, SLG/OPS allowed, damage score). | Pro |
GET /v1/mlb/games/{gameId}/pitches | Pitch-by-pitch (Statcast-style): velocity, spin, movement, plate location and batted-ball metrics (exit velocity, launch angle, expected BA, barrel). | Pro |
GET /v1/mlb/games/{gameId}/plate-appearances | At-bat outcomes with inning, base/out state, handedness and pitch count. | Pro |
GET /v1/mlb/games/{gameId}/plays | Ordered play-by-play with running score, count, batted-ball coordinates and trajectory. | Pro |
GET /v1/mlb/games/{gameId}/props | Per-book player prop lines for a game. | Pro |
GET /v1/mlb/park-factors | Per-venue, per-season run / HR / hit environment (park factors, 1.00 = neutral). | Pro |
GET /v1/mlb/pitcher-appearances | Per-outing pitching lines (starter or reliever): IP, ER, K, BB, HR, holds and saves. | Pro |
GET /v1/mlb/players/{playerId}/game-stats | Per-game batting and pitching box lines. | Pro |
GET /v1/mlb/players/{playerId}/hit-rates | Hit rate for hits, total bases, HR, RBIs, pitcher strikeouts and more. | Pro |
GET /v1/mlb/players/{playerId}/season-stats | Season aggregates incl. | Pro |
GET /v1/mlb/reliever-vulnerability | Per-reliever HR and hard-contact vulnerability with vs-LHB / vs-RHB splits and an overall vulnerability score. | Pro |
GET /v1/mlb/team-stats | Team season batting, pitching and fielding totals (AVG/OBP/SLG/OPS, ERA, WHIP, fielding). | Pro |
GET /v1/mlb/weather | Hourly ballpark weather: temperature, humidity, pressure, wind and precipitation, with a baseball wind label. | Pro |
GET /v1/mlb/game-sim | Game simulation output: win, total and run-line probabilities, projected runs and first-5, plus score and inning distributions (All-Access). | All-Access |
GET /v1/mlb/hr-model | Home-run model board, one row per slate date, batter and opposing starter: HR probability and score, driver components (form, pitch-mix clash,… | All-Access |
GET /v1/mlb/projections | Per-market player prop projections: raw and calibrated final projection, market-implied projection, fair odds and model components (All-Access). | All-Access |
GET /v1/mlb/quant-performance | Model track record: daily plays, wins/losses, hit rate, average edge, units staked, profit/loss and ROI by market (All-Access). | All-Access |
GET /v1/mlb/quant-picks | Graded model picks with edge, fair odds, Kelly stake and settled result (All-Access). | All-Access |
GET /v1/mlb/sim-batters | Per-batter simulated line and prop probabilities (hits, TB, HR, RBI, runs, SB) from the game sim (All-Access). | All-Access |
GET /v1/mlb/sim-pitchers | Per-pitcher simulated line and K / ER / hits-allowed market probabilities from the game sim (All-Access). | All-Access |
Start free, upgrade when you ship
No contracts and no setup fees. Change plans any time; access follows your key immediately.
Teams, players, schedules and standings. 7 MLB endpoints. 30 requests a minute. No credit card.
Start freeEverything in Free plus full box scores, advanced stats, hit rates and the live odds board. 600 requests a minute.
Get ProEvery sport and every engine: projections, game simulations, the HR model and more. 800 requests a minute.
Get All-AccessFrequently asked questions
Is there a free MLB API?
Yes. The Free plan includes 7 MLB endpoints, such as /v1/mlb/injuries, /v1/mlb/players, /v1/mlb/probable-lineups, /v1/mlb/probable-pitchers, at 30 requests a minute. No credit card is needed to start.
How much does the MLB API cost?
Pro is $24.99 a month per sport and adds full stats, box scores, hit rates and the live odds board. All-Access is $89.99 a month for every sport and every engine, including projections and game simulations. Plans are month to month with no setup fee.
Can I use the data in a commercial app?
Yes. Paid plans cover showing the data in your own app or site, free or paid, including to your users at scale. Reselling or redistributing the raw data as a feed or dataset is not included; contact us for that.
What format is the data in, and how do I authenticate?
JSON over HTTPS in one consistent { data, meta } envelope. Send your key in the x-api-key header. A public OpenAPI 3.1 spec at /v1/openapi.json lets you generate a client in any language.
Do players, teams and games keep the same ids across endpoints?
Yes. Every endpoint uses the same stable Statyx ids, so a player or game from one endpoint joins directly to stats, odds and props from another.
More from the Statyx API
Make your first call in two minutes
Create a free key, paste the curl above, and you have live MLB data in JSON.