basketballapi.net

Documentation / Bulk export

Bulk export

GET/v1/export

A whole season of one competition in one answer: its games, teams, players, player box lines or team box lines, as JSON rows or a CSV file. Leave season out for the competition's newest.

Complete and up

Parameters

NameInTypeAbout
competition requiredqueryidOnly this competition, by its id (cp_…). e.g. cp_11A6HQXJ
seasonqueryidOnly this season, by its id (ss_…). e.g. ss_K1TTWVRM
table requiredqueryenumOne of: games, teams, players, player_lines, team_lines. e.g. games
formatqueryenumOne of: json, csv.

What comes back

data is one of these:

FieldTypeAbout
ididA game id.
datedate
tip_offdate-time or null
statusstring
stagestring or null
roundstring or null
competition_ididA competition id.
competitionstring
season_ididA season id.
seasonstring
home_ididA team id.
homestring
away_ididA team id.
awaystring
home_scoreinteger or null
away_scoreinteger or null
attendanceinteger or null
venuestring or null
has_boxscoreboolean
has_playbyplayboolean
has_shotsboolean

Errors

400422401403429 What each one means