Pull MLB schedule and live game feed data from the public statsapi.mlb.com endpoints
domain: statsapi.mlb.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗
Steps
Call GET https://statsapi.mlb.com/api/v1/schedule with sportId and date params to get scheduled games — no API key or registration is required
Extract the gamePk from the schedule response for any game you want details on
Call the live game feed at GET https://statsapi.mlb.com/api/v1.1/game/{gamePk}/feed/live (note the v1.1 path, which differs from most other v1 endpoints) for play-by-play and near-real-time updates
Poll the live feed at a reasonable interval during in-progress games rather than continuously hammering it
Treat the API as free only for individual, non-commercial, non-bulk use — commercial or bulk applications require prior written authorization from MLB Advanced Media
Known gotchas
This is not an officially documented/supported public API — endpoints and fields can change without notice, and most reference docs are community-maintained, not MLB's own
The live feed endpoint uses v1.1 while most other endpoints use v1 — an easy path mistake
Commercial or bulk use requires explicit written permission from MLBAM; scraping at scale without it violates MLB's stated usage terms
Give your agent this knowledge — and 15,500+ more routes
One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp
Need this verified for your stack — or a route we don't have yet?