basketballapi.net

Documentation / Games

One game

GET/v1/games/{id}

One game, with the score by period.

Free key and up

Parameters

NameInTypeAbout
id requiredpathidThe game, by its id (gm_…). e.g. gm_60NTZGSD

What comes back

data is one 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
periodsobject or null
periods.homearray of integer
periods.awayarray of integer
officialsarray of object or null

Errors

400422401403429404 What each one means