MLB Stats API — schedule, standings, live & rosters (no key) avatar

MLB Stats API — schedule, standings, live & rosters (no key)

Pricing

from $1.50 / 1,000 mlb queries

Go to Apify Store
MLB Stats API — schedule, standings, live & rosters (no key)

MLB Stats API — schedule, standings, live & rosters (no key)

Official MLB data behind a clean HTTP API: the game schedule with live status and scores, division standings, the live game feed (linescore, count, current play, decisions) and team rosters. Before, during and after every game. No key. Pay per query.

Pricing

from $1.50 / 1,000 mlb queries

Rating

0.0

(0)

Developer

Synthetic

Synthetic

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

4 days ago

Last modified

Categories

Share

Major League Baseball data straight from the official MLB Stats API, behind a clean HTTP API (and MCP tool): the game schedule with live status and scores, division standings, the live game feed (linescore, balls/strikes/outs, current play, winning/losing pitchers) and team rosters. Covers before, during and after every game. Built for scoreboards, bots, fantasy tools and agents. No API key. Pay per query.

  • 🗓️ Schedule — games for a date (or a team, or a date range) with status, scores and probable pitchers.
  • 🏆 Standings — AL / NL division standings: W-L, pct, games back, streak.
  • 🔴 Live game — the live feed for a game: inning, count (balls/strikes/outs), score with hits/errors, current play, and the decision (W/L/save) when final.
  • 👥 Roster — a team's active roster plus team info.
  • ⚾ Official data · no key.

Before, during & after the game

  • Before: schedule (matchups, probable pitchers, first pitch).
  • During: game — inning, count, live score and the current play, updated in near-real-time.
  • After: game (final linescore + winning/losing/save pitchers) and standings.

Sample output (schedule, 2024-10-30)

{
"ok": true, "date": "2024-10-30", "count": 1,
"games": [
{ "gamePk": 775296, "status": "Final",
"away": { "name": "Los Angeles Dodgers", "score": 7 },
"home": { "name": "New York Yankees", "score": 6 },
"inning": 9, "venue": "Yankee Stadium" }
]
}

How to use

  • HTTP API (Standby): POST or GET /schedule, /standings, /game, /roster. GET / returns help. Example: GET /standings?league=al&season=2024.
  • Normal run: pass { operation, ... }; results land in the dataset + key-value store.
  • MCP tool: expose it to your agent via Apify's MCP server.

Input

  • operationschedule · standings · game · roster.
  • date — YYYY-MM-DD (schedule/game; default today). team — id / abbreviation (NYY) / name (Yankees). gamePk — a game id (or use team+date). season — year (standings). league — all / al / nl.

Pricing

Per query from $0.004 (down to $0.001 on higher tiers). One call = one query.

FAQ

Do I need a key? No — the MLB Stats API is public.

How live is game? The MLB feed updates in near-real-time during games (roughly play-by-play).

Can I use team names? Yes — team accepts an id, an abbreviation (NYY) or a name (Yankees).

Notes & limits

Data from the MLB Stats API (statsapi.mlb.com). Times are the API's (US Eastern for many fields). Not affiliated with MLB. Please poll responsibly.