nba

nba

Source:

Operations for NBA.

Methods

(async, static) getBoxScore(id)

Source:

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

Example
const result = await sdv.nba.getBoxScore(401283399);
Parameters:
Name Type Description
id number

Game id.

Returns:

json

(async, static) getPicks(id)

Source:

Gets the NBA game PickCenter data for a specified game.

Example
const result = await sdv.nba.getPicks(401283399);
Parameters:
Name Type Description
id number

Game id.

Returns:

json

(async, static) getPlayByPlay(id)

Source:

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

Example
const result = await sdv.nba.getPlayByPlay(401283399);
Parameters:
Name Type Description
id number

Game id.

Returns:

json

(async, static) getSchedule(year, month, day)

Source:

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

Example
const result = await sdv.nba.getSchedule(
year = 2016, month = 04, day = 15
)
Parameters:
Name Type Description
year *

Year (YYYY)

month *

Month (MM)

day *

Day (DD)

Returns:

json

(async, static) getScoreboard(year, month, day, limit)

Source:

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

Example
const result = await sdv.nba.getScoreboard(
year = 2019, month = 11, day = 16
)
Parameters:
Name Type Description
year *

Year (YYYY)

month *

Month (MM)

day *

Day (DD)

limit number

Limit on the number of results @default 300

Returns:

json

(async, static) getStandings(year, group)

Source:

Gets the team standings for the NBA.

Example
get NBA standings
const yr = 2016;
const result = await sdv.nba.getStandings(year = yr);
Parameters:
Name Type Description
year number

Season

group number

acceptable group names: 'league','conference','division'

Returns:

json

(async, static) getSummary(id)

Source:

Gets the NBA game summary data for a specified game.

Example
const result = await sdv.nba.getSummary(401283399);
Parameters:
Name Type Description
id number

Game id.

Returns:

json

(async, static) getTeamInfo(id)

Source:

Gets the team info for a specific NBA team.

Example
get individual team data
const teamId = 16;
const result = await sdv.nba.getTeamInfo(teamId);
Parameters:
Name Type Description
id number

Team Id

Returns:

json

(async, static) getTeamList()

Source:

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

Example
get list of teams
const result = await sdv.nba.getTeamList();
Returns:

json

(async, static) getTeamPlayers(id)

Source:

Gets the team roster information for a specific NBA team.

Example
get team roster data
const teamId = 16;
const result = await sdv.nba.getTeamPlayers(teamId);
Parameters:
Name Type Description
id number

Team Id

Returns:

json