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

Documentation/Guides

Quick start | Baseball Data API

Quick start

A key, the first call, the answer.

Make an account and your free key is made with it. It is filled in on these pages for you, so Run works straight away.

Your first call: every league's finals from yesterday.

curl https://api.baseballapi.net/v1/results/yesterday \
  -H "X-API-Key: YOUR_KEY"

Every answer has data (what you asked for) and meta (counts and paging). Next, list the leagues with /v1/leagues and find games with /v1/{league}/games.