wnba

wnba

Source:

Operations for WNBA.

Methods

(async, static) getBoxScore(id)

Source:

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

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

Game id.

Returns:

json

(async, static) getPlayByPlay(id)

Source:

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

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

Game id.

Returns:

json

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

Source:

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

Example
const result = await sdv.wnba.getSchedule(
year = 2019, month = 07, 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 WNBA scoreboard data for a specified date if available.

Example
const result = await sdv.wnba.getScoreboard(
year = 2019, month = 07, day = 15
)
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 WNBA.

Example
get WNBA standings
const yr = 2016;
const result = await sdv.wnba.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 WNBA game summary data for a specified game.

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

Game id.

Returns:

json

(async, static) getTeamInfo(id)

Source:

Gets the team info for a specific WNBA team.

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

Team Id

Returns:

json

(async, static) getTeamList()

Source:

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

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

json

(async, static) getTeamPlayers(id)

Source:

Gets the team roster information for a specific WNBA team.

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

Team Id

Returns:

json