nhl

nhl

Source:

Operations for NHL.

Methods

(async, static) getBoxScore(id)

Source:

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

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

Game id.

Returns:

json

(async, static) getPicks(id)

Source:

Gets the NHL PickCenter data for a specified game.

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

Game id.

Returns:

json

(async, static) getPlayByPlay(id)

Source:

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

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

Game id.

Returns:

json

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

Source:

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

Example
const result = await sdv.nhl.getSchedule(
year = 2019, month = 11, day = 17
)
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 NHL scoreboard data for a specified date if available.

Example
const result = await sdv.nhl.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 NHL.

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

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

Game id.

Returns:

json

(async, static) getTeamInfo(id)

Source:

Gets the team info for a specific NHL team.

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

Team Id

Returns:

json

(async, static) getTeamList()

Source:

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

Example
get list of teams
const result = await sdv.nhl.getTeamList();

(async, static) getTeamPlayers(id)

Source:

Gets the team roster information for a specific NHL team.

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

Team Id

Returns:

json