MLB Records and Stats

Official MLB stats: teams, standings, players and games

AUTH NONECORS AGENT ?HTTPS COMMERCIAL

MLB's Stats API serves current and historical baseball data, teams, rosters, standings, schedules and box scores, without an API key. Responses are JSON and carry MLB Advanced Media's copyright terms.

HOW IT'S SCORED ⓘ
Status badge · for your READMEshipapis health badge: — · unmonitored
ON PROBE SCHEDULE

We probe a documented GET and expect 2xx JSON — full uptime and health score. Open provider docs ↗

Uptime historystarts after first probe

On our probe schedule. Uptime charts appear after the first check lands.

Example responsefrom provider docs — not verified by us
GET https://statsapi.mlb.com/api/v1/teams?sportId=1

{
  "copyright": "Copyright 2026 MLB Advanced Media, L.P.",
  "teams": [
    {
      "id": 133,
      "name": "Athletics",
      "teamName": "Athletics",
      "locationName": "Sacramento",
      "league": "American League",
      "division": "American League West",
      "venue": "Sutter Health Park"
    }
  ]
}
Call itcurl · fetch · python
curl "https://statsapi.mlb.com/api/v1/teams?sportId=1"
const res = await fetch("https://statsapi.mlb.com/api/v1/teams?sportId=1");
const data = await res.json();
console.log(data);
import requests

res = requests.get("https://statsapi.mlb.com/api/v1/teams?sportId=1")
print(res.json())
Endpoints · 3On scheduleFULL DOCS ↗
On schedule — GET /teams?sportId=1 awaits first probe
GET/teams?sportId=1PROBED

Official MLB stats: teams, standings, players and games

GET/teams?limit=5

Teams — documented GET route.

GET/teams?page=1

Teams — documented GET route.

Machine-readable spec

We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.

Response-shape history

Not tracked yet. Shape-change history starts once this API joins our probe schedule.

MLB Records and Stats: common questions

Is MLB Records and Stats free to use?

Yes — MLB Records and Stats is a free health & food API. Free tier: Free — no key; subject to MLB copyright terms. The free tier is for non-commercial use.

Does MLB Records and Stats need an API key?

No — MLB Records and Stats needs no API key or signup. You can call it straight away; rate limits still apply (Unpublished).

Can I call MLB Records and Stats from the browser?

Yes — MLB Records and Stats returns CORS headers over HTTPS, so front-end code can fetch it directly with no backend proxy. Use the fetch snippet on this page, or hit "Run live" to try it now.

Is MLB Records and Stats up right now?

MLB Records and Stats is catalogued but not yet on our probe schedule, so we don't publish a live status for it. Check the provider's own status page or docs for its current state.