nfl

nfl

Source:

Operations for NFL.

Methods

(async, static) getBoxScore(id)

Source:

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

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

Game id.

Returns:

json

(async, static) getPicks(id)

Source:

Gets the NFL PickCenter data for a specified game.

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

Game id.

Returns:

json

(async, static) getPlayByPlay(id)

Source:

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

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

Game id.

Returns:

json

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

Source:

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

Example
const result = await sdv.nfl.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 NFL scoreboard data for a specified date if available.

Example
const result = await sdv.nfl.getScoreboard(
year = 2019, month = 11, day = 17
)
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 NFL.

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

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

Game id.

Returns:

json

(async, static) getTeamInfo(id)

Source:

Gets the team info for a specific NFL team.

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

Team Id

Returns:

json

(async, static) getTeamList()

Source:

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

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

(async, static) getTeamPlayers(id)

Source:

Gets the team roster information for a specific NFL team.

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

Team Id

Returns:

json