- Hits
- -
- Home runs
- -
- RBI
- -
- At-bats
- -
MLB data API
The world's easiest
MLB API for developers ballers.
Live scores with inning-by-inning linescores, run-line and totals odds, confirmed starting pitchers, and per-player box scores.
- 36
- Completed seasons
- 1990–2025
- UNKNOWN
- Archive-derived team rows
- 2025 archive unavailable
- 2025
- Showcase season
- Latest complete, fully quotable season
Player box scores
One player identity, one factual stat line.
Canonical player IDs and team identity travel together. When the API serves a first-party asset URL, this page uses it; otherwise it renders initials instead of borrowing another athlete.
Event-level data boundary
A scoring timeline appears only when its source is publishable.
The public coverage manifest currently reports no quotable MLB play-by-play surface. This panel remains in the shared league-page template, but it does not republish source-restricted event rows or manufacture a play.
- No verified scoring-event stream is available in this render.
What developers can build
Five MLB products from the same connected surface.
Each preview has its own substantive baseball tutorial and keeps unavailable rows visibly unavailable.
Standings
2025 MLB records.
These unavailable team rows are derived from the complete, quotable 2025 finished-game archive. Division grouping and streak are not inferred when the archive does not expose them.
Standings are not currently verifiable.
Team strength
Compare the table without inventing a power rating.
These cards rank win percentage calculated from the complete 2025 finished-game archive. They do not relabel that record as Elo or a proprietary model.
Player rankings
The leader categories a complete MLB product needs.
Home runs, RBI, stolen bases, batting average, ERA and strikeouts belong here. Named 2026 leaders are withheld because the current leaderboard source is not cleared for marketing quotation and the endpoint did not answer reliably inside the page budget.
Home runs
Named leaderboard withheld until a quotable source and an in-budget response are both verified.
RBI
Named leaderboard withheld until a quotable source and an in-budget response are both verified.
Stolen bases
Named leaderboard withheld until a quotable source and an in-budget response are both verified.
Batting average
Named leaderboard withheld until a quotable source and an in-budget response are both verified.
ERA
Named leaderboard withheld until a quotable source and an in-budget response are both verified.
Strikeouts
Named leaderboard withheld until a quotable source and an in-budget response are both verified.
Player availability
Unavailable data stays visibly outside the product.
The public baseball injury route is not served today, and pitch-level rows are loaded internally without a public endpoint. This section links to the measured boundary instead of filling an availability card with unsupported status data.
Current-season boundary
Live schedule rows stay out until their source is quotable.
The public schedule surface currently blends providers whose rows cannot all be quoted in marketing. We preserve the working API route, but this page does not turn that response into an implied first-party data claim.
From response to product
The same MLB game, rendered and raw.
The preview uses the canonical match ID, team objects, score and inning arrays in the response. No sample score is substituted when the authenticated read is unavailable.
Verified match unavailable.
{
"data": null,
"note": "verified match response unavailable"
}Embed blueprints
Three useful baseball views to build from served data.
These are product patterns, not tokenless hosted widgets. Build them in your own server-rendered route so the API key stays private, and publish a named leaderboard only when its source and coverage are verified.
Server-rendered pattern
Home run leaders
Rank qualified hitters and show games played beside every total.
GET /v1/players/:id/stats?sport=baseballServer-rendered pattern
Pitching leaders
Separate rate stats from counting stats and state the eligibility rule.
GET /v1/players/:id/stats?sport=baseballServer-rendered pattern
Stolen-base leaders
Keep a missing stat distinct from a verified zero in every row.
GET /v1/players/:id/stats?sport=baseballReal API example
Start with a game, then follow its identity.
Use the returned match UUID for detail, team and player box stats, and paid odds. The same identity connects every surface.
curl -H "Authorization: Bearer $BBS_API_KEY" \
"https://api.bigballsdata.com/v1/stored/matches?sport=baseball&league=mlb&limit=10"MLB data reference
Choose a workflow, then inspect every field.
The interactive endpoint explorer and generated plan table come from checked-in endpoint and capability registries.
10 endpoints · 170 documented fields. Click any row to see every field it returns.
Stats included
Every baseball stat field the API returns today — 64 in total, grouped by how they are produced. Each group carries its own freshness, because a sport is rarely uniformly current.
Per-game player stats
Post-gameWritten after the game ends — not a live in-game feed. Last ingested 2026-09-16.
- Endpoint
- /v1/players/:id/stats
- Last updated
- 2026-09-16
Fields (59)
ERA, RBIs, Air Outs, At Bats, Batting Average, Balks, Batters Faced, Blown Saves, Caught Stealing, Doubles, Earned Runs, Errors, Fielding Assists, Fielding Chances, Fielding %, Fly Outs, Innings Pitched, Games Started, Ground Outs, Grounded Into Double Play, Hit Batsmen, Hit by Pitch, Hits, Hits/At Bats, Hits Allowed, Holds, Home Runs, Home Runs Allowed, Inherited Runners, Inherited Runners Scored, Intentional Walks, Left on Base, Line Outs, Losses, On-Base %, Outs Recorded, Pitch Count, Pitches, Pitches/Strikes, Plate Appearances, Pop Outs, Putouts, RBI, Runs, Runs Allowed, Sacrifice Flies, Sacrifice Hits, Saves (pitching), Slugging %, Stolen Bases, Strikeouts, Strikeouts Pitching, Strikes, Total Bases, Triples, Walks, Walks Allowed, Wild Pitches, Wins
Team stats (per game)
Post-gameWritten after the game ends — not a live in-game feed. Last ingested 2026-09-16.
- Endpoint
- /v1/matches/:id/statistics
- Last updated
- 2026-09-16
Fields (5)
Batting, Fielding, Pitching, Records, Score
Not included
- Not shown here — pitch_level: pitch-level tracking data with no route serving it.
Missing a baseball stat?
Tell us the field and workflow. Requests guide the next supported surface.
MCP
Connect an agent to the MLB surface.
MCP covers discovery, matches, standings and player stats. Use REST for match-stat detail and odds, which are not MCP tools today.
YOU
Build an MLB scoreboard and fantasy board.
✓ get_coverage sport=baseball
✓ get_matches league=mlb
✓ get_player_stats player_id={player_id}
Data freshness
Freshness is stated per MLB surface.
Cadence text comes from the endpoint contract, while observed dates come from coverage or response timestamps. A timestamp is not silently promoted into a schedule.
Live scores
Endpoint-specificRead response timestamps and status
Match stats
Minutes after the final outPer-match team and player lines
Standings
Ingest-drivenRead the row updated_at value
Odds
Timestamped market rowsUse returned snapshot timestamps
Historical games
Correction-safe archiveCoverage dates come from /v1/coverage
Read live from GET /v1/coverage — the same endpoint you can call yourself. Dates are absolute, not a build timestamp.
What you get, by plan
One row per capability, not per field per endpoint. Season spans are counted from rows that are actually populated, and each capability names the simplest endpoint that returns it.
Offensive stats
| Capability | Free | Solo | Trio | Edge | Pro | Endpoint |
|---|---|---|---|---|---|---|
| At-bats | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Batting average | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Caught stealing | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Doubles | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Grounded into double play | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Hit by pitch | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Hits | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Home runs | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Intentional walks | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| On-base percentage | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Plate appearances | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Runners left on base | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Runs | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Runs batted in | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Sacrifice flies | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Sacrifice hits | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Slugging percentage | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Stolen bases | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Strikeouts | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Total bases | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Triples | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Walks | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
Defensive stats
| Capability | Free | Solo | Trio | Edge | Pro | Endpoint |
|---|---|---|---|---|---|---|
| Air outs induced | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Balks | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Batters faced | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Batters hit by pitch (pitching) | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Blown saves | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Earned run average | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Earned runs | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Errors | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Fielding assists | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Fielding chances | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Fielding percentage | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Fly outs induced | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Games started | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Ground outs induced | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Hits allowed | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Holds | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Home runs allowed | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Inherited runners | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Inherited runners scored | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Innings pitched | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Line outs induced | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Losses | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Outs recorded | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Pitch count | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Pop outs induced | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Putouts | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Runs allowed | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Saves | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Strikeouts (pitching) | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Strikes thrown | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Walks allowed | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Wild pitches | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
| Wins | — | ✓ | ✓ | ✓ | ✓ | /v1/scores |
Schedules and fixtures
| Capability | Free | Solo | Trio | Edge | Pro | Endpoint |
|---|---|---|---|---|---|---|
| Score | ✓ | ✓ | ✓ | ✓ | ✓ | /v1/scores |
Ratings and derived intelligence
| Capability | Free | Solo | Trio | Edge | Pro | Endpoint |
|---|---|---|---|---|---|---|
| Current Elo rating | — | ✓ | ✓ | ✓ | ✓ | /v1/teams/{id}/elo |
| Elo rating history | — | ✓ | ✓ | ✓ | ✓ | /v1/teams/{id}/elo |
Measured against production on 2026-11-19. A capability appears here only when it has rows, an endpoint that returns it, and a source we may both serve and quote.
Founder pricing
Start with MLB. Add depth when the product needs it.
Prices come from the shared billing manifest. The generated capability table above remains the source for field-level plan availability.
Free
- ✓ One sport
- ✓ Scores, schedules and current standings
- ✓ Final team box scores
- ✓ Product policy: current season
Solo
- ✓ Everything in Free
- ✓ MLB player and team season stats
- ✓ Player media where stored
- ✓ Product policy: up to five seasons
Trio
- ✓ Everything in Solo
- ✓ Choose three sports
- ✓ The same MLB depth across selected sports
- ✓ Product policy: up to five seasons
Edge
- ✓ Everything in Trio
- ✓ All sports
- ✓ Current and historical MLB odds
- ✓ All available history
Pro
- ✓ Everything in Edge
- ✓ Highest request limits
- ✓ All available history
MLB API FAQ
Answers before you build.
Is there a free MLB API?
Yes. It covers scores, inning linescores, standings, lineups, and box-score stats. There is a free tier; pricing lists what each plan covers. Odds require the Edge plan ($149/mo) or higher. Injury reports are coming soon. Free keys get 1,000 req/day (2,000 with GitHub). No credit card.
Start with the API quickstart →Are starting pitchers available in advance?
Yes. Probable pitchers surface in the lineups endpoint as soon as MLB confirms them, typically the morning of the game; final lineups confirm closer to first pitch.
Explore the MLB endpoint reference →Can I track at-bat outcomes?
The events endpoint surfaces at-bat-level outcomes (home runs, strikeouts, walks, RBIs) and it is live on the free tier. Pitch-by-pitch data is loaded separately — 3,009,091 pitches across the 2023, 2024, 2025 and 2026 seasons, measured 2026-10-14 — and no public endpoint reads it yet. The field list is in Pitch-level data above.
See the pitch data status →How fast do live MLB scores update?
REST cache window is 15 seconds during live games (~200ms typical round trip). WebSocket push for score updates is on the Pro plan.
Explore the MLB endpoint reference →How far back does MLB game history go?
The page reads the current MLB season range and finished-game count from the coverage endpoint instead of hard-coding a date span into this answer. Per-game player batting and pitching lines are a narrower population than the finished-game archive. The current standings endpoint is also a separate current-season surface, so game history must not be used as evidence of historical standings depth.
Explore the MLB endpoint reference →Which batting and pitching fields are available?
Player stat responses are field maps rather than one fixed baseball schema. Common batting keys include at-bats, hits, runs, home runs, RBI, walks, strikeouts, average, on-base percentage, slugging and stolen bases; common pitching keys include innings, earned runs, ERA, WHIP, strikeouts, walks, wins, losses and saves. The exact populated keys depend on the served player row, so missing must remain different from zero.
Read the MLB batting stats guide →Does the MLB API include betting odds?
Yes. Moneyline, spread and total markets are available on the Edge plan and above where returned. Baseball’s run line is represented by the served spread market rather than a separate run-line field. Historical snapshots are available where loaded, but a game is not guaranteed to have every market or sportsbook.
See MLB odds coverage and examples →How do plans change MLB access?
The product policy puts current-season scores, schedules, standings and final box scores on Free. Solo adds deeper player and team statistics, media where stored, and a five-season history entitlement; Trio applies that access across three selected sports. Edge adds betting data and the all-history product entitlement, while this page does not claim that every history boundary is already enforced uniformly by every route.
Compare rate limits by plan →Can an AI agent query MLB data directly?
Yes. The MCP server exposes coverage, matches, standings, player lookup, player stats and team Elo tools. Odds and raw match-stat detail are not MCP tools today, and there is no public pitch-level tool while that endpoint remains in development. An agent can call the missing served surfaces over REST with the same account credential and should label unavailable data rather than estimating it.
Connect the MCP server →How do I authenticate MLB requests?
Create an API key in the dashboard and send it in the documented authorization header. Keep the key on your server rather than placing it in public browser code or an iframe URL. A 401 is an authentication problem, while an empty data array is an availability result and should be handled separately.
Read authentication setup →How should I join games, teams, and players?
Use the canonical match, team and player IDs returned by the API. Display names are presentation fields and can change or collide, so they are not safe join keys. Media must remain attached to the same canonical identity, with a monogram or text fallback when no first-party asset URL is served.
Explore the MLB endpoint reference →Does the linescore handle extra innings?
Yes. Home and away linescores are arrays whose length grows with the game, so clients should derive the inning columns from the response. A scheduled game can have empty arrays and an extra-inning game can have more than nine entries. Keep null or absent innings distinct from a scored zero.
Explore the MLB endpoint reference →Can I embed an MLB widget without an API key?
No tokenless MLB iframe widget ships today. Build the scoreboard in your own server-rendered route so the API key never reaches the visitor. The live-scoreboard tutorial shows the required match and linescore flow and includes the empty states a production embed needs.
Start with the API quickstart →What is the difference between box scores and pitch-level data?
Box scores summarize game and player results such as hits, runs, innings and strikeouts, and those served routes are available today. Pitch-level data describes pitch and batted-ball measurements such as velocity and launch characteristics. Internal loaded rows do not authorize a public capability claim, so the pitch data section of this page labels its endpoint status explicitly.
See the pitch data status →Should I use the SDK, REST, or MCP?
Use the SDK when its typed client covers the workflow, plain REST when you need a route such as match stats or odds, and MCP when an agent is discovering coverage or composing from the supported read tools. All three paths use the same canonical identities and account access. Start from the quickstart, then choose the narrowest interface that exposes the fields your product actually needs.
Start with the API quickstart →67
endpoints for MLB
The table above is a starting selection. This is the whole count, generated from the same registry the gateway enforces, so it cannot drift from what your key can actually call.
- 39
- Free
- 13
- Solo
- 14
- Edge
- 1
- Pro
Every endpoint, with the plan it needs, as JSON: /league-endpoints.json. Request and response reference: /docs and /openapi.json.
A count of endpoints that accept this league, not a measure of how much data sits behind them. Call /v1/coverage for that.
Explore MLB teams
30 captured team profiles. Dated previews, not live data.
MLB teams
- Arizona Diamondbacks
- Athletics
- Atlanta Braves
- Baltimore Orioles
- Boston Red Sox
- Chicago Cubs
- Chicago White Sox
- Cincinnati Reds
- Cleveland Guardians
- Colorado Rockies
- Detroit Tigers
- Houston Astros
- Kansas City Royals
- Los Angeles Angels
- Los Angeles Dodgers
- Miami Marlins
- Milwaukee Brewers
- Minnesota Twins
- New York Mets
- New York Yankees
- Philadelphia Phillies
- Pittsburgh Pirates
- San Diego Padres
- San Francisco Giants
- Seattle Mariners
- St. Louis Cardinals
- Tampa Bay Rays
- Texas Rangers
- Toronto Blue Jays
- Washington Nationals