Skip to content
FastballAPI

The baseball data API.

Every MLB pitch since 2018.

Pitch-by-pitch data with pitch type, velocity and location, counted against every box score, and every plate appearance with the base-out state and the batted ball; 2015 to 2017 are included too, with about 98 to 99% of each season's pitches. Box scores, standings and our own ratings and run values. Sportsbook lines from 4 to 13 books per game from 2015 to 2023. Call it over REST or point Claude at it over MCP. The first 500 credits are free and we do not ask for a card.

500 free credits, no card. Works in Claude, ChatGPT and Cursor: connect over MCP

pitches
8.2M+
games
28,000+
players
4,300+
seasons
12

Also in FastballAPI

The college baseball API

NCAA Division I baseball, every season since 2010: play-by-play, standings, sportsbook lines and season lines. Same key and credits as the MLB.

See the NCAA data
games
29,489
pitches
498,239
seasons
17

This week

What get_schedule returns right now.

Rendered from the same rows get_schedule returns, refreshed every morning. Lines appear once sportsbooks post them, usually the day before.

First pitchAwayHomeGame id
Thu 5:00 PM ETCLECHW401907993
Thu 8:00 PM ETTBNYY401907988
Fri 4:30 PM ETSDMIL401908006
Fri 8:00 PM ETATLLAD401908017
Sat 5:00 PM ETCHWCLE401907994
Sat 8:00 PM ETNYYTB401907989

get_schedule · 2 credits · then get_game for the box score and every book's line

Coverage

Coverage you can inspect before you build.

Pitch-by-pitch
Since 2018

Every pitch of every final game since 2018, with type, velocity, location and count; pitch counts match the box score to within 0.05% a season. 2015 to 2017 are included too, with about 98 to 99% of each season's pitches.

Run values
RE24

A run value on every plate appearance, from each season's own run expectancy table.

Sportsbook lines
4 to 13 books

Each sportsbook's moneyline, run line and total, 4 to 13 books per game from 2015 to 2023 (about 4 in 2015, 10 in 2016 and 2017, 7 to 8 in 2018 to 2020 and 12 in 2021 to 2023).

DatasetSeasonsVolumeStatusTools
Games and box scores
Line scores and every batter's and pitcher's line.
See the season tableEvery game, every playerFull
Pitch-by-pitch
Count, pitch type, velocity, location and result for every pitch.
See the season tableAbout 295 pitches per gameFull
Pitch type and velocity are on 96% or more of each season's pitches, and 99.8% or more from 2020. Automatic balls and strikes are not pitches.
Plate appearances
Base-out state, result, batted-ball trajectory and location, runs, RE24.
See the season tableAbout 76 per gameFull
Win probability
The home team's win probability after each plate appearance, as ESPN computes it.
2019 to currentAfter every plate appearancePartial
From 2019 only.
Odds
Moneyline, run line and total by sportsbook; opening and closing from 2024, the final pregame line before that.
2015 to current4 to 13 books per game to 2023, usually one sincePartial
Mostly one book per game since 2024; no player props.
Ratings
Our Elo, before and after every game.
Every season loadedEvery team, every gameFull
College baseball
NCAA Division I games with league=ncaabase: the tournament by round since 2010, scores since 2015, box scores and plate appearances (from the scorer's text) for part of each season since 2020, ratings, lines from 2023 (4.7 books a game in 2023 and 4.2 in 2024, one since).
2010 to currentThe Division I games ESPN carriesPartial
Not every Division I game, and box scores and play-by-play for part of each season only (the college page shows each season). No pitch rows or batted-ball locations.
Injury report
Each listed player's status, injury and expected return, captured daily.
From launchDailyPartial
Daily captures from launch; no history before that.

Full detail in the data atlas. Sportsbooks: the books ESPN reports: 4 to 13 books per game from 2015 to 2023, then usually ESPN BET or DraftKings alone. Most games since 2024 have one book.

Last written 2026-10-08 04:54 UTC. Every dataset's own refresh time is in the changelog.

Why trust it

Every pitch, reconciled with the box score.

Pitch-level baseball data is usually scraped and trusted. Here every season's pitches and plate appearances are counted against the box scores: from 2018 pitch counts match to within 0.05% a season, 2015 to 2017 hold 98 to 99% of their pitches, and the run values are computed from the same rows.

Since 2018

Every pitch: type, velocity, location and count

Each pitch with its type, velocity, location and the count it came in, and each ball in play with its trajectory and where it landed. A pitcher's arsenal is one call.

RE24

A run value on every plate appearance

Run expectancy for all 24 base-out states, rebuilt from each season's own plate appearances, and the run value of every plate appearance against it. Leaderboards that see context, not just outcomes.

4 to 13 books through 2023

Lines by sportsbook

Moneylines, run lines and totals from 4 to 13 books per game from 2015 to 2023, each book stored separately, with results against the median close.

Tools

Every tool, and what a call costs.

Every tool is one REST endpoint and one MCP tool with the same name, the same parameters, and a fixed credit cost. Empty results are not charged.

Access

REST or MCP. Same data either way.

Call it from any language over REST. Let Claude or Cursor query it in plain English over MCP.

  • GET https://mcp.fastballapi.com/v1/tools public catalogue with JSON Schema
  • POST https://mcp.fastballapi.com/v1/{tool}
  • MCP https://mcp.fastballapi.com/mcp
curl -X POST https://mcp.fastballapi.com/v1/list_teams \
  -H "x-api-key: YOUR_API_KEY"

# every tool: POST /v1/{tool} with a JSON body
# responses carry X-Credits-Used and X-Credits-Remaining

Pricing

Free to start, then you pay per call.

500 credits on signup, no card. Subscriptions add a monthly allowance; wallet top-ups never expire.

Free
$0
500 wallet credits on signup
  • +All 18 endpoints
  • +REST API + MCP access
  • +No credit card required
Start free
Starter
$19/mo
10,000 credits/month
  • +10,000 credits/month
  • +All 18 endpoints
  • +Email support
  • +Overage at wallet rates
Choose Starter
ProMost popular
$49/mo
30,000 credits/month
  • +30,000 credits/month
  • +All 18 endpoints
  • +Priority support
  • +Overage at wallet rates
Choose Pro
Scale
$149/mo
125,000 credits/month
  • +125,000 credits/month
  • +All 18 endpoints
  • +Dedicated support
  • +Volume rates available
Choose Scale

Full breakdown, credit costs per tool, and FAQ on the pricing page.

Questions

The things people ask before signing up.

Is FastballAPI free?

Every account starts with 500 credits and no card. Calls cost 1 to 10 credits depending on the endpoint, so 500 is a few hundred real requests. Paid plans start at $19/mo for 10,000 credits a month, and wallet top-ups never expire.

How far back does the data go?

Every MLB game since 2018 has every pitch, every plate appearance and both box scores; 2015 to 2017 are included too, with about 98 to 99% of each season's pitches. Win probability starts in 2019. Sportsbook lines carry 4 to 13 books per game from 2015 to 2023 (about 4 in 2015, 10 in 2016 and 2017, 7 to 8 in 2018 to 2020 and 12 in 2021 to 2023), then usually one. The coverage page shows exactly which seasons are loaded.

What is MCP, and do I need it?

MCP is the protocol Claude, Cursor and similar assistants use to call tools. Point one at https://mcp.fastballapi.com/mcp with your key and it picks the endpoint and reads the response itself — no client code. If you are writing an application instead, ignore MCP and use the REST endpoints; they are the same 18 tools.

Can I use this commercially?

Yes, inside your own product or model, within the terms. Reselling the data itself as a feed is not permitted. FastballAPI is independent and not affiliated with MLB or any club.

How current is it?

One update a day, early morning US Eastern (10:00 UTC): scores, box scores and every pitch of the previous day's games, the next week's schedule, every book's line for the next two days, the injury report, run values and ratings. There is no live pitch-by-pitch feed.

Where do the stats come from?

Games, box scores, every pitch and plate appearance, win probability, injuries and sportsbook lines from public ESPN data. Batting rates, run expectancy and RE24, standings with Pythagorean records and team Elo are computed here from those rows. Nothing is licensed from another analytics provider.

What are the rate limits?

60 requests a minute, dropping to 10 if your credit balance falls below 100. The limit is the same on every plan — credits, not requests, are the spend boundary.

Before you write another scraper

Start with 500 credits and no card.

FastballAPI · The baseball data API.