MLB playoffs API
playoffs
mlb.playoffsThe MLB postseason bracket — Wild Card Series, Division Series, League Championship Series, and the World Series, tracked as the seeded matchups and outcomes.
GET/api/v1/mlb/playoffsList playoffs for MLB
Parameters
limitqueryintegeroptionaldefault 50Page size. Defaults to 50; max 5000.
from_idquerybigintoptionalReturn rows with id strictly greater than this value; page using the previous response's `next_from_id`. Omit on the first page.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
-H 'Authorization: Bearer YOUR_API_KEY' \
'https://api.stat-api.com/api/v1/mlb/playoffs?limit=3'Responses
200playoffs rows matching the declared filter set, wrapped in { playoffs, limit, next_from_id, has_more }. has_more is true when another row follows this page. To walk every row, start with ?from_id=0 and pass each next_from_id back as from_id until it is null; the filters stay. A first page without from_id comes in the default order and gives next_from_id null.application/jsonshow example ▸
400No declared filter set was satisfied — response body matches MissingRequiredFiltersError; pick one combo from the accepted-sets hint and resend.
application/jsonResponse Schema(12 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
away_team_id | bigint | — e.g. 44 | |
home_team_id | bigint | — e.g. 27 | |
season_id | bigint | — e.g. 2020 | |
series_id | bigint | — | — e.g. 401 |
away_team_wins | integer | — | — e.g. 2 |
games_played | integer | — | — e.g. 2 |
home_team_wins | integer | — | — e.g. 3 |
max_games | integer | — | — e.g. 5 |
series_name | string | — | — Values:AL Division SeriesNL Division SeriesAL Wild Card SeriesNL Wild Card SeriesWorld SeriesNL Championship SeriesAL Championship SeriesNL Wild Card GameAL Wild Card Game |
series_text | string | — | — e.g. LAD won 3-1 |
status | string | — | — e.g. Completed |
GET/api/v1/mlb/playoffs/{id}Get a single playoff by id
Parameters
idpathbigintrequiredPrimary key (id) of the playoff row.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
-H 'Authorization: Bearer YOUR_API_KEY' \
'https://api.stat-api.com/api/v1/mlb/playoffs/{pk_value}'Responses
200Single playoff row.application/jsonshow example ▸
404Row not found.
Response Schema(12 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
away_team_id | bigint | — e.g. 44 | |
home_team_id | bigint | — e.g. 27 | |
season_id | bigint | — e.g. 2020 | |
series_id | bigint | — | — e.g. 401 |
away_team_wins | integer | — | — e.g. 2 |
games_played | integer | — | — e.g. 2 |
home_team_wins | integer | — | — e.g. 3 |
max_games | integer | — | — e.g. 5 |
series_name | string | — | — Values:AL Division SeriesNL Division SeriesAL Wild Card SeriesNL Wild Card SeriesWorld SeriesNL Championship SeriesAL Championship SeriesNL Wild Card GameAL Wild Card Game |
series_text | string | — | — e.g. LAD won 3-1 |
status | string | — | — e.g. Completed |