Skip to main content

nfl

nfl : object#

Operations for NFL.

Kind: global namespace

nfl.getPlayByPlay(id) โ‡’#

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

Kind: static method of nfl
Returns: json

ParamTypeDescription
idnumberGame id.

Example

const result = await sdv.nfl.getPlayByPlay(401220403);

nfl.getBoxScore(id) โ‡’#

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

Kind: static method of nfl
Returns: json

ParamTypeDescription
idnumberGame id.

Example

const result = await sdv.nfl.getBoxScore(401220403);

nfl.getSummary(id) โ‡’#

Gets the NFL game summary data for a specified game.

Kind: static method of nfl
Returns: json

ParamTypeDescription
idnumberGame id.

Example

const result = await sdv.nfl.getSummary(401220403);

nfl.getPicks(id) โ‡’#

Gets the NFL PickCenter data for a specified game.

Kind: static method of nfl
Returns: json

ParamTypeDescription
idnumberGame id.

Example

const result = await sdv.nfl.getPicks(401220403);

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

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

Kind: static method of nfl
Returns: json

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

Example

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

nfl.getWeeklySchedule(week, year, seasonType) โ‡’#

Gets the NFL Weekly Schedule data for a specified season type.

Kind: static method of nfl
Returns: json

ParamTypeDescription
week*Week (1-17) Default is 1
year*Year (YYYY) Default is current year
seasonType*Season Type (1 = Preseason, 2 = Regular Season, 3 = Postseason) Default is 2

Example

const result = await sdv.nfl.getWeeklySchedule(week = 1, year = 2023, seasonType = 2)

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

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

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

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

Gets the team standings for the NFL.

Kind: static method of nfl
Returns: json

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

Example

const yr = 2021;const result = await sdv.nfl.getStandings(year = yr);

nfl.getTeamList()#

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

Kind: static method of nfl
Example

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

nfl.getTeamInfo(id) โ‡’#

Gets the team info for a specific NFL team.

Kind: static method of nfl
Returns: json

ParamTypeDescription
idnumberTeam Id

Example

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

nfl.getTeamPlayers(id) โ‡’#

Gets the team roster information for a specific NFL team.

Kind: static method of nfl
Returns: json

ParamTypeDescription
idnumberTeam Id

Example

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