MLB Stats API — Trade Deadline & Pennant Race Tracker avatar

MLB Stats API — Trade Deadline & Pennant Race Tracker

Pricing

Pay per event

Go to Apify Store
MLB Stats API — Trade Deadline & Pennant Race Tracker

MLB Stats API — Trade Deadline & Pennant Race Tracker

Pulls live game schedules, standings, and trade-deadline transactions from the official MLB Stats API (statsapi.mlb.com). Surface box-score results, wild-card race standings, and real-time roster moves from the /transactions endpoint — the differentiator that competing actors don't expose.

Pricing

Pay per event

Rating

0.0

(0)

Developer

BowTiedRaccoon

BowTiedRaccoon

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 hours ago

Last modified

Share

Pull live game schedules, standings, wild-card race data, and trade-deadline transactions from the official MLB Stats API (statsapi.mlb.com). Three modes in one actor — the only Apify actor that surfaces the /transactions endpoint for real-time roster moves.

What this actor does

  • Schedule mode — Pulls box scores and game results for any date range. Includes home/away teams, scores, winning/losing/save pitchers, venue, and game status.
  • Standings mode — Snapshots current AL and NL division standings including wild-card race position (wildCardRank, wildCardGamesBack, wins/losses).
  • Transactions mode — The trade-deadline differentiator: streams roster moves (trades, DFA, call-ups, options) from the /transactions endpoint for any date window.

Input

FieldTypeDefaultDescription
modestringscheduleschedule, standings, or transactions
startDatestringtodayStart date YYYY-MM-DD (schedule / transactions)
endDatestringstartDateEnd date YYYY-MM-DD (schedule / transactions)
leagueIdsstring103,104League IDs for standings (103=AL, 104=NL)
gameTypestringRGame type: R=Regular, S=Spring, E=Exhibition, D=Division Series
maxItemsinteger10Maximum records to return (0 = no limit)

Output schema

Every record shares the same 17-field flat schema regardless of mode:

FieldNotes
game_pkMLB game ID (or transaction ID)
game_dateDate YYYY-MM-DD
game_typeR / standings / transaction
seasonMLB season year
home_team / home_team_abbrevHome team name and abbreviation
home_scoreRuns scored (home) — wins count in standings mode
away_team / away_team_abbrevAway team or division rank in standings mode
away_scoreRuns scored (away) — losses in standings mode
venueBallpark name — games back in standings mode
statusGame status or wild-card games back
winning_pitcherWP name (Final games) — wild-card rank in standings
losing_pitcherLP name (Final games) — games played in standings
save_pitcherSave pitcher name if applicable
home_runs_totalTotal HRs in game (when available)
sourcestatsapi.mlb.com/schedule | /standings | /transactions

Trade deadline use case

The July 31 trade deadline is the highest-traffic period in baseball analytics. Set mode: transactions with startDate: 2026-07-28 and endDate: 2026-08-01 to capture every roster move in the deadline window:

{
"mode": "transactions",
"startDate": "2026-07-28",
"endDate": "2026-08-01",
"maxItems": 0
}

Pennant race use case

Track the wild-card standings as the pennant race heats up in August and September:

{
"mode": "standings",
"leagueIds": "103,104",
"maxItems": 0
}

API details

  • Source: https://statsapi.mlb.com/api/v1/ (official MLB Stats API)
  • Authentication: none required — fully open public API
  • Rate limits: generous; actor uses a 150ms courtesy delay
  • Proxy: none needed