MLB data API

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.

GET /v1/mlb/games/{gameId}/pitches
# 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 endpoints, and the plan each needs

Every endpoint below is live today. Full parameters, field definitions and sample responses are in the docs.

EndpointWhat it returnsPlan
GET /v1/mlb/injuriesInjury report: status, expected return, type and note per player.Free
GET /v1/mlb/playersPlayer directory: bats/throws, age, debut.Free
GET /v1/mlb/probable-lineupsProjected batting orders, handedness and status.Free
GET /v1/mlb/probable-pitchersAnnounced probable starting pitchers per game.Free
GET /v1/mlb/scheduleGames with venue and status.Free
GET /v1/mlb/standingsW/L, GB, streak, runs for/against and splits.Free
GET /v1/mlb/teamsTeams with league, division and logos.Free
GET /v1/mlb/ballparksBallparks with location and field orientation.Pro
GET /v1/mlb/batter-vs-pitcherCareer batter vs pitcher head-to-head slash line (AB, H, HR, AVG/OBP/SLG/OPS).Pro
GET /v1/mlb/bullpenBullpen 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-typesDamage 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}/pitchesPitch-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-appearancesAt-bat outcomes with inning, base/out state, handedness and pitch count.Pro
GET /v1/mlb/games/{gameId}/playsOrdered play-by-play with running score, count, batted-ball coordinates and trajectory.Pro
GET /v1/mlb/games/{gameId}/propsPer-book player prop lines for a game.Pro
GET /v1/mlb/park-factorsPer-venue, per-season run / HR / hit environment (park factors, 1.00 = neutral).Pro
GET /v1/mlb/pitcher-appearancesPer-outing pitching lines (starter or reliever): IP, ER, K, BB, HR, holds and saves.Pro
GET /v1/mlb/players/{playerId}/game-statsPer-game batting and pitching box lines.Pro
GET /v1/mlb/players/{playerId}/hit-ratesHit rate for hits, total bases, HR, RBIs, pitcher strikeouts and more.Pro
GET /v1/mlb/players/{playerId}/season-statsSeason aggregates incl.Pro
GET /v1/mlb/reliever-vulnerabilityPer-reliever HR and hard-contact vulnerability with vs-LHB / vs-RHB splits and an overall vulnerability score.Pro
GET /v1/mlb/team-statsTeam season batting, pitching and fielding totals (AVG/OBP/SLG/OPS, ERA, WHIP, fielding).Pro
GET /v1/mlb/weatherHourly ballpark weather: temperature, humidity, pressure, wind and precipitation, with a baseball wind label.Pro
GET /v1/mlb/game-simGame 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-modelHome-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/projectionsPer-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-performanceModel 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-picksGraded model picks with edge, fair odds, Kelly stake and settled result (All-Access).All-Access
GET /v1/mlb/sim-battersPer-batter simulated line and prop probabilities (hits, TB, HR, RBI, runs, SB) from the game sim (All-Access).All-Access
GET /v1/mlb/sim-pitchersPer-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.

Free$0 /mo

Teams, players, schedules and standings. 7 MLB endpoints. 30 requests a minute. No credit card.

Start free
All-Access$89.99 /mo

Every sport and every engine: projections, game simulations, the HR model and more. 800 requests a minute.

Get All-Access

Compare plans in full

Frequently 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.