Skip to main content

nba

nba : object#

Operations for NBA.

Kind: global namespace

nba.getPlayByPlay(id) โ‡’#

Gets the NBA game play-by-play data for a specified game.

Kind: static method of nba
Returns: json

ParamTypeDescription
idnumberGame id.

Example

const result = await sdv.nba.getPlayByPlay(401283399);

nba.getBoxScore(id) โ‡’#

Gets the NBA game box score data for a specified game.

Kind: static method of nba
Returns: json

ParamTypeDescription
idnumberGame id.

Example

const result = await sdv.nba.getBoxScore(401283399);

nba.getSummary(id) โ‡’#

Gets the NBA game summary data for a specified game.

Kind: static method of nba
Returns: json

ParamTypeDescription
idnumberGame id.

Example

const result = await sdv.nba.getSummary(401283399);

nba.getPicks(id) โ‡’#

Gets the NBA game PickCenter data for a specified game.

Kind: static method of nba
Returns: json

ParamTypeDescription
idnumberGame id.

Example

const result = await sdv.nba.getPicks(401283399);

nba.getSchedule(year, month, day) โ‡’#

Gets the NBA schedule data for a specified date if available.

Kind: static method of nba
Returns: json

ParamTypeDescription
year*Year (YYYY)
month*Month (MM)
day*Day (DD)

Example

const result = await sdv.nba.getSchedule(year = 2016, month = 04, day = 15)

nba.getScoreboard(year, month, day, limit) โ‡’#

Gets the NBA scoreboard data for a specified date if available.

Kind: static method of nba
Returns: json

ParamTypeDescription
year*Year (YYYY)
month*Month (MM)
day*Day (DD)
limitnumberLimit on the number of results @default 300

Example

const result = await sdv.nba.getScoreboard(year = 2019, month = 11, day = 16)

nba.getStandings(year, group) โ‡’#

Gets the team standings for the NBA.

Kind: static method of nba
Returns: json

ParamTypeDescription
yearnumberSeason
groupnumberacceptable group names: 'league','conference','division'

Example

const yr = 2016;const result = await sdv.nba.getStandings(year = yr);

nba.getTeamList() โ‡’#

Gets the list of all NBA teams their identification info for ESPN.

Kind: static method of nba
Returns: json
Example

const result = await sdv.nba.getTeamList();

nba.getTeamInfo(id) โ‡’#

Gets the team info for a specific NBA team.

Kind: static method of nba
Returns: json

ParamTypeDescription
idnumberTeam Id

Example

const teamId = 16;const result = await sdv.nba.getTeamInfo(teamId);

nba.getTeamPlayers(id) โ‡’#

Gets the team roster information for a specific NBA team.

Kind: static method of nba
Returns: json

ParamTypeDescription
idnumberTeam Id

Example

const teamId = 16;const result = await sdv.nba.getTeamPlayers(teamId);