BaseballData API
Data
Coverage
MLB seasons held129MLB 2026 games2,469Postseason line scores40WBC and Premier12 games242Czech box scores1,430
See all coverage
DocsPricingStatus

Baseball Data API Documentation

Build on the baseball record

One key, one JSON shape, 11 endpoints. Every game since 1897, the leagues abroad, and the people and parks around them. Every page here is built from the API's own list of endpoints, so it always matches what the API does.

Your first call
$ curl \
    https://api.baseballapi.net/v1/results/yesterday \
    -H "X-API-Key: YOUR_KEY"
{
  "data": [
    { "id": "gm_9tw9rna6", "league": "kbo",
      "status": "final",
      "away": { "name": "Away club", "runs": 5 },
      "home": { "name": "Home club", "runs": 3 } },
    ...
  ],
  "meta": { "count": 7 }
}
200 OKExample answer, the shape only
Base URL
https://api.baseballapi.net/v1
Endpoints
11
MCP tools
11
Format
JSON, UTC
  1. 1Get a keyMade with your account, filled in on these pages for you
  2. 2Make the first callYesterday's finals in every league, in one call
  3. 3Read the answerEvery answer is data and meta; every error has a fixed code

The reference

Every endpoint, by subject

11 endpoints in 5 subjects. Each page has Try it with your key, every parameter and field, and a real answer.

On the free key