Skip to main content

nhl

nhl : object#

Operations for NHL.

Kind: global namespace

nhl.getPlayByPlay(id) โ‡’#

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

Kind: static method of nhl
Returns: json

ParamTypeDescription
idnumberGame id.

Example

const result = await sdv.nhl.getPlayByPlay(401272446);

nhl.getBoxScore(id) โ‡’#

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

Kind: static method of nhl
Returns: json

ParamTypeDescription
idnumberGame id.

Example

const result = await sdv.nhl.getBoxScore(401272446);

nhl.getSummary(id) โ‡’#

Gets the NHL game summary data for a specified game.

Kind: static method of nhl
Returns: json

ParamTypeDescription
idnumberGame id.

Example

const result = await sdv.nhl.getSummary(401272446);

nhl.getPicks(id) โ‡’#

Gets the NHL PickCenter data for a specified game.

Kind: static method of nhl
Returns: json

ParamTypeDescription
idnumberGame id.

Example

const result = await sdv.nhl.getPicks(401272446);

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

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

Kind: static method of nhl
Returns: json

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

Example

const result = await sdv.nhl.getSchedule(year = 2019, month = 11, day = 17)

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

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

Kind: static method of nhl
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.nhl.getScoreboard(year = 2019, month = 11, day = 16)

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

Gets the team standings for the NHL.

Kind: static method of nhl
Returns: json

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

Example

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

nhl.getTeamList()#

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

Kind: static method of nhl
Example

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

nhl.getTeamInfo(id) โ‡’#

Gets the team info for a specific NHL team.

Kind: static method of nhl
Returns: json

ParamTypeDescription
idnumberTeam Id

Example

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

nhl.getTeamPlayers(id) โ‡’#

Gets the team roster information for a specific NHL team.

Kind: static method of nhl
Returns: json

ParamTypeDescription
idnumberTeam Id

Example

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