nba
object
#
nba : Operations for NBA.
Kind: global namespace
- nba :
object
#
nba.getPlayByPlay(id) โGets the NBA game play-by-play data for a specified game.
Kind: static method of nba
Returns: json
Param | Type | Description |
---|---|---|
id | number | Game 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
Param | Type | Description |
---|---|---|
id | number | Game 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
Param | Type | Description |
---|---|---|
id | number | Game 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
Param | Type | Description |
---|---|---|
id | number | Game 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
Param | Type | Description |
---|---|---|
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
Param | Type | Description |
---|---|---|
year | * | Year (YYYY) |
month | * | Month (MM) |
day | * | Day (DD) |
limit | number | Limit 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
Param | Type | Description |
---|---|---|
year | number | Season |
group | string | acceptable 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
Param | Type | Description |
---|---|---|
id | number | Team 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
Param | Type | Description |
---|---|---|
id | number | Team Id |
Example
const teamId = 16;const result = await sdv.nba.getTeamPlayers(teamId);