nfl
object
#
nfl : Operations for NFL.
Kind: global namespace
- nfl :
object
#
nfl.getPlayByPlay(id) โGets the NFL game play-by-play data for a specified game.
Kind: static method of nfl
Returns: json
Param | Type | Description |
---|---|---|
id | number | Game 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
Param | Type | Description |
---|---|---|
id | number | Game 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
Param | Type | Description |
---|---|---|
id | number | Game 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
Param | Type | Description |
---|---|---|
id | number | Game 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
Param | Type | Description |
---|---|---|
year | * | Year (YYYY) |
month | * | Month (MM) |
day | * | Day (DD) |
Example
const result = await sdv.nfl.getSchedule(year = 2019, month = 11, day = 17)
#
nfl.getScoreboard(year, month, day, limit) โGets the NFL scoreboard data for a specified date if available.
Kind: static method of nfl
Returns: json
Param | Type | Description |
---|---|---|
year | * | Year (YYYY) |
month | * | Month (MM) |
day | * | Day (DD) |
limit | number | Limit 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
Param | Type | Description |
---|---|---|
year | number | Season |
group | number | acceptable group names: 'league','conference','division' |
Example
const yr = 2016;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
Param | Type | Description |
---|---|---|
id | number | Team 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
Param | Type | Description |
---|---|---|
id | number | Team Id |
Example
const teamId = 16;const result = await sdv.nfl.getTeamPlayers(teamId);