basketballapi.net

Documentation / Games

Games

GET/v1/games

Games by day, dates, competition, season, team or status.

Free key and up A list: pages of 50, see paging

Parameters

NameInTypeAbout
datequerydateOne day, as YYYY-MM-DD. e.g. 2026-10-09
fromquerydateThe first day, as YYYY-MM-DD.
toquerydateThe last day, as YYYY-MM-DD.
competitionqueryidOnly this competition, by its id (cp_…). e.g. cp_11A6HQXJ
seasonqueryidOnly this season, by its id (ss_…). e.g. ss_K1TTWVRM
teamqueryidOnly this team, by its id (tm_…). e.g. tm_Z81WSSTP
statusqueryenumOne of: scheduled, final, no_result.
pagequeryintegerWhich page, from 1.
cursorquerystringThe next_cursor from the last answer, to carry on.
per_pagequeryintegerRecords an answer, from 1 to 200. 50 if left out.

What comes back

data is a list of these:

FieldTypeAbout
ididA game id.
competitionobject
competition.ididA competition id.
competition.namestring
seasonobject
season.ididA season id.
season.namestring
stagestring or nullregular, play-in, playoffs, preseason or all-star for most competitions; a few name their own stages (final four, cup). The stats endpoints count regular-season and play-off games, never preseason or all-star; standings count regular season only.
roundstring or null
datedateThe venue's own calendar day.
tip_offdate-time or null
statusstringno_result: no score and none to come (called off, abandoned, decided by forfeit, postponed and not replayed on the day, or never reported). A game postponed to a later day stays scheduled.
homeobject
home.ididA team id.
home.namestring
awayobject
away.ididA team id.
away.namestring
home_scoreinteger or null
away_scoreinteger or null
attendanceinteger or null
venuestring or nullThe arena, where the league names it.
hasobject
has.boxscoreboolean
has.playbyplayboolean
has.shotsboolean

Errors

400422401403429 What each one means