MLB Live Pitch-by-Pitch API
One record per pitch from MLB and minor-league games, live or past: pitcher, batter, pitch type, velocity, spin, location, the call, the count and, for balls in play, exit velocity, launch angle and distance.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/mlb-live-game-feed/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"game_pks":[776135]},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
24 fields: 21 here, 3 technical ones under Technical details.
Basics
- Game ID
MLB's game id.
Example 776135
- Inning number
Example 1
- Half inning
top or bottom.
Example top
- At bat index
Plate appearance number within the game, from 0.
Example 0
- Pitch number
Pitch number within the plate appearance.
Example 1
- Batter name
Batter's name.
Example Zach Cole
- Pitcher name
Pitcher's name.
Example Sam Aldegheri
- Pitch type
Pitch type, such as Four-Seam Fastball.
Example Four-Seam Fastball
- Start speed
Release speed in mph.
Example 91.3
- Spin rate
Spin rate in rpm.
Example 2,373
- Zone
Strike-zone cell 1 to 14 where the pitch crossed the plate.
Example 13
- Plate x
Horizontal position at the plate in feet.
Example -0.812302
- Plate z
Height at the plate in feet.
Example 1.264378
- Call
Result of the pitch, such as Ball, Called Strike or In play, no out.
Example Ball
- Balls
Balls in the count after the pitch.
Example 1
- Strikes
Strikes in the count after the pitch.
Example 0
- Outs
Outs after the pitch.
Example 0
- Event
Result of the plate appearance on its last pitch, such as Single or Strikeout.
- Launch speed
Exit velocity of a ball in play in mph.
- Launch angle
Launch angle of a ball in play in degrees.
- Hit distance
Distance of a ball in play in feet.
Technical detailsField names and types for developers, and the 3 fields hidden above
Hidden by default
These 3 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.
- ID
idGame id, at-bat index and pitch number. - Batter ID
batter_idMLB's batter id. - Pitcher ID
pitcher_idMLB's pitcher id.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
game_pk | text | Game ID | 3 of 3 |
inning | number | Inning number | 3 of 3 |
half_inning | text | Half inning | 3 of 3 |
at_bat_index | number | At bat index | 3 of 3 |
pitch_number | number | Pitch number | 3 of 3 |
batter_id | text | Batter ID (hidden) | 3 of 3 |
batter_name | text | Batter name | 3 of 3 |
pitcher_id | text | Pitcher ID (hidden) | 3 of 3 |
pitcher_name | text | Pitcher name | 3 of 3 |
pitch_type | text | Pitch type | 3 of 3 |
start_speed | number | Start speed | 3 of 3 |
spin_rate | number | Spin rate | 3 of 3 |
zone | number | Zone | 3 of 3 |
plate_x | number | Plate x | 3 of 3 |
plate_z | number | Plate z | 3 of 3 |
call | text | Call | 3 of 3 |
balls | number | Balls | 3 of 3 |
strikes | number | Strikes | 3 of 3 |
outs | number | Outs | 3 of 3 |
event | text | Event | 0 of 3 |
launch_speed | number | Launch speed | 0 of 3 |
launch_angle | number | Launch angle | 0 of 3 |
hit_distance | number | Hit distance | 0 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Game ID | Inning number | Half inning | At bat index | Pitch number | Batter name | Pitcher name | Pitch type | Start speed | Spin rate | Zone | Plate x | Plate z | Call | Balls | Strikes | Outs | Event | Launch speed | Launch angle | Hit distance |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 776135 | 1 | top | 0 | 1 | Zach Cole | Sam Aldegheri | Four-Seam Fastball | 91.3 | 2,373 | 13 | -0.812302 | 1.264378 | Ball | 1 | 0 | 0 | — | — | — | — |
| 2 | 776135 | 1 | top | 0 | 2 | Zach Cole | Sam Aldegheri | Four-Seam Fastball | 93.1 | 2,358 | 7 | -0.302692 | 1.806867 | Called Strike | 1 | 1 | 0 | — | — | — | — |
| 3 | 776135 | 1 | top | 0 | 3 | Zach Cole | Sam Aldegheri | Four-Seam Fastball | 91.8 | 2,346 | 11 | -0.05697 | 3.774911 | Ball | 2 | 1 | 0 | — | — | — | — |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Pick games by game_pks, by dates (every MLB game that day) or leave both empty for today's MLB games; one request is made per game, so a full slate takes a few seconds per game.
- While a game is on, the feed holds the pitches thrown so far and updates within seconds; games not started yet return no pitches.
- Pitch speed, spin, zone and location come from MLB's tracking and can be empty for pitches without tracking data (some minor-league parks, intentional balls).
- balls, strikes and outs are the count after the pitch. event holds the result of the plate appearance and is filled only on its last pitch; launch fields are filled only for balls in play.
- dates covers MLB games only; for a minor-league game pass its game_pks. At most 10,000 pitches per run.
- MLB's notice on every response allows only individual, non-commercial, non-bulk use without written authorization. Get MLB's permission before using this data commercially.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.