Node.js client which retrieves sports data from the ESPN API as well as from the NCAA website, with support for NBA, NFL, NHL, MLB, WNBA, men's and women's college basketball, and college football.
npm install sportsdataverse
!Lifecycle:maturing
!Contributors
 
 

``bash`
npm install sportsdataverseDocumentation
For more information on the package and function reference, please see the sportsdataverse node.js documentation website


To cite the sportsdataverse Node.js package in publications, use:
BibTex Citation
`bibtex`
@misc{gilani_2021_sportsdataverse_js,
author = {Gilani, Saiem},
title = {sportsdataverse-js: The SportsDataverse's Node.js Package for Sports Data.},
url = {https://js.sportsdataverse.org},
year = {2021}
}
Support for the following data from ESPN's endpoints:
- play-by-play (including shot location data when available)
- scores
- schedule
- standings
- rankings (not available for professional sports)
Recruiting data from 247Sports available for:
- men's college basketball
- college football
The following sports are available from ESPN:
- Men's College Basketball
- Women's College Basketball
- College Football
- WNBA
- MLB
- NBA
- NFL
- NHL
- All team sports on the NCAA website:
- 'football'
- 'basketball-men'
- 'basketball-women'
- 'soccer-men'
- 'soccer-women'
- 'fieldhockey'
- 'volleyball-women'
- 'icehockey-men'
- 'icehockey-women'
- 'baseball'
- 'beach-volleyball'
- 'lacrosse-men'
- 'lacrosse-women'
- 'volleyball-men'
Operations for College Football.
Kind: global namespace
* cfb : object
* .getPlayByPlay(id) ⇒
* .getBoxScore(id) ⇒
* .getSummary(id) ⇒
* .getPicks(id) ⇒
* .getPlayerRankings(year, page, group, state) ⇒
* .getSchoolRankings(year, page) ⇒
* .getSchoolCommits(year, school) ⇒
* .getRankings(year, week) ⇒
* .getSchedule(year, month, day, group, seasontype) ⇒
* .getScoreboard(year, month, day, group, seasontype, limit) ⇒
* .getConferences(year, group) ⇒
* .getStandings(year, group) ⇒
* .getTeamList(group) ⇒
* .getTeamInfo(id) ⇒
* .getTeamPlayers(id)
Kind: static method of cfb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.cfb.getPlayByPlay(401256194);
Kind: static method of cfb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.cfb.getBoxScore(401256194);
Kind: static method of cfb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.cfb.getSummary(401256194);
Kind: static method of cfb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.cfb.getPicks(401256194);
Kind: static method of cfb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| page | number | Page (50 per page) |
| group | "HighSchool" \| "JuniorCollege" \| "PrepSchool" | Institution Type |
| state | string | State of recruit |
Example
`js`
const result = await sdv.cfb.getPlayerRankings({year: 2016});
Kind: static method of cfb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| page | number | Page (50 per page) |
Example
`js`
const result = await sdv.cfb.getSchoolRankings({year: 2016});
Kind: static method of cfb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| school | string | School |
Example
`js`
const result = await sdv.cfb.getSchoolCommits({school: 'Florida State', year: 2021});
Kind: static method of cfb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| week | \* | Week |
Example
`js`
const result = await sdv.cfb.getRankings(year = 2020, week = 4)
Kind: static method of cfb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| month | \* | Month (MM) |
| day | \* | Day (DD) |
| group | number | Group is 80 for FBS, 81 for FCS |
| seasontype | number | Pre-Season: 1, Regular Season: 2, Postseason: 3, Off-season: 4 |
Example
`js`
const result = await sdv.cfb.getSchedule(year = 2019, month = 11, day = 16, group=80)
Kind: static method of cfb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| month | \* | Month (MM) |
| day | \* | Day (DD) |
| group | number | Group is 80 for FBS, 81 for FCS |
| seasontype | number | Pre-Season: 1, Regular Season: 2, Postseason: 3, Off-season: 4 |
| limit | number | Limit on the number of results @default 300 |
Example
`js`
const result = await sdv.cfb.getScoreboard(
year = 2019, month = 11, day = 16, group=80
)
Kind: static method of cfb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | number | Season |
| group | number | Group is 80 for FBS, 81 for FCS |
Example
`js`
const yr = 2021;
const result = await sdv.cfb.getConferences(year = yr, group = 80);
Kind: static method of cfb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | number | Season |
| group | number | Group is 80 for FBS, 81 for FCS |
Example
`js`
const yr = 2020;
const result = await sdv.cfb.getStandings(year = yr);
Kind: static method of cfb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| group | number | Group is 80 for FBS, 81 for FCS |
Example
`js`
const result = await sdv.cfb.getTeamList(group=80);
Kind: static method of cfb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Team Id |
Example
`js`
const teamId = 52;
const result = await sdv.cfb.getTeamInfo(teamId);
Kind: static method of cfb
| Param | Type | Description |
| --- | --- | --- |
| id | number | Team Id |
Example
`js`
const teamId = 52;
const result = await sdv.cfb.getTeamPlayers(teamId);
Operations for Men's College Basketball.
Kind: global namespace
* mbb : object
* .getPlayByPlay(id) ⇒
* .getBoxScore(id) ⇒
* .getSummary(id) ⇒
* .getPicks(id) ⇒
* .getPlayerRankings(year, page, group) ⇒
* .getSchoolRankings(year, page) ⇒
* .getSchoolCommits(year, school) ⇒
* .getSchedule(year, month, day, group, seasontype) ⇒
* .getScoreboard(year, month, day, group, seasontype, limit) ⇒
* .getConferences(year, group) ⇒
* .getStandings(year, group) ⇒
* .getTeamList(group) ⇒
* .getTeamInfo(id) ⇒
* .getTeamPlayers(id) ⇒
Kind: static method of mbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.mbb.getPlayByPlay(401260281);
Kind: static method of mbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.mbb.getBoxScore(401260281);
Kind: static method of mbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.mbb.getSummary(401260281);
Kind: static method of mbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.mbb.getPicks(401260281);
Kind: static method of mbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| page | number | Page (50 per page) |
| group | "HighSchool" \| "JuniorCollege" \| "PrepSchool" | Institution Type |
Example
`js`
const result = await sdv.mbb.getPlayerRankings({year: 2016});
Kind: static method of mbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| page | number | Page (50 per page) |
Example
`js`
const result = await sdv.mbb.getSchoolRankings({year: 2016});
Kind: static method of mbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| school | string | School |
Example
`js`
const result = await sdv.mbb.getSchoolCommits({school: 'Clemson', year: 2016});
Kind: static method of mbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| month | \* | Month (MM) |
| day | \* | Day (DD) |
| group | number | Group is 50 for Division-I, 51 for Division-II, 52 for Division-III |
| seasontype | number | Pre-Season: 1, Regular Season: 2, Postseason: 3, Off-season: 4 |
Example
`js`
const result = await sdv.mbb.getSchedule(
year = 2021, month = 02, day = 15, group=50
)
Kind: static method of mbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| month | \* | Month (MM) |
| day | \* | Day (DD) |
| group | number | Group is 50 for Division-I, 51 for Division-II, 52 for Division-III |
| seasontype | number | Pre-Season: 1, Regular Season: 2, Postseason: 3, Off-season: 4 |
| limit | number | Limit on the number of results @default 300 |
Example
`js`
const result = await sdv.mbb.getScoreboard(
year = 2021, month = 02, day = 15, group=50
)
Kind: static method of mbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | number | Season |
| group | number | Group is 50 for Division-I, 51 for Division-II, 52 for Division-III |
Example
`js`
const yr = 2021;
const result = await sdv.mbb.getConferences(year = yr, group = 50);
Kind: static method of mbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | number | Season |
| group | number | Group is 50 for Division-I, 51 for Division-II, 52 for Division-III, see wbb.getConferences() for more info |
Example
`js`
const yr = 2020;
const result = await sdv.mbb.getStandings(year = yr);
Kind: static method of mbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| group | number | Group is 50 for Division-I, 51 for Division-II, 52 for Division-III |
Example
`js`
const result = await sdv.mbb.getTeamList(group=50);
Kind: static method of mbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Team Id |
Example
`js`
const teamId = 52;
const result = await sdv.mbb.getTeamInfo(teamId);
Kind: static method of mbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Team Id |
Example
`js`
const teamId = 52;
const result = await sdv.mbb.getTeamPlayers(teamId);
Operations for MLB.
Kind: global namespace
* mlb : object
* .getPlayByPlay(id) ⇒
* .getBoxScore(id) ⇒
* .getSummary(id) ⇒
* .getPicks(id) ⇒
* .getSchedule(year, month, day) ⇒
* .getScoreboard(year, month, day, limit) ⇒
* .getStandings(year, group) ⇒
* .getTeamList() ⇒
* .getTeamInfo(id) ⇒
* .getTeamPlayers(id) ⇒
Kind: static method of mlb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.mlb.getPlayByPlay(401472105);
Kind: static method of mlb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.mlb.getBoxScore(401472105);
Kind: static method of mlb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.mlb.getSummary(401472105);
Kind: static method of mlb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.mlb.getPicks(401472105);
Kind: static method of mlb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| month | \* | Month (MM) |
| day | \* | Day (DD) |
Example
`js`
const result = await sdv.mlb.getSchedule(
year = 2016, month = 04, day = 15
)
Kind: static method of mlb
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
`js`
const result = await sdv.mlb.getScoreboard(
year = 2019, month = 11, day = 16
)
Kind: static method of mlb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | number | Season |
| group | string | acceptable group names: 'league','conference','division' |
Example
`js`
const yr = 2016;
const result = await sdv.mlb.getStandings(year = yr);
Kind: static method of mlb
Returns: json
Example
`js`
const result = await sdv.mlb.getTeamList();
Kind: static method of mlb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Team Id |
Example
`js`
const teamId = 16;
const result = await sdv.mlb.getTeamInfo(teamId);
Kind: static method of mlb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Team Id |
Example
`js`
const teamId = 16;
const result = await sdv.mlb.getTeamPlayers(teamId);
Operations for NBA.
Kind: global namespace
* nba : object
* .getPlayByPlay(id) ⇒
* .getBoxScore(id) ⇒
* .getSummary(id) ⇒
* .getPicks(id) ⇒
* .getSchedule(year, month, day) ⇒
* .getScoreboard(year, month, day, limit) ⇒
* .getStandings(year, group) ⇒
* .getTeamList() ⇒
* .getTeamInfo(id) ⇒
* .getTeamPlayers(id) ⇒
Kind: static method of nba
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.nba.getPlayByPlay(401283399);
Kind: static method of nba
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.nba.getBoxScore(401283399);
Kind: static method of nba
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.nba.getSummary(401283399);
Kind: static method of nba
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.nba.getPicks(401283399);
Kind: static method of nba
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| month | \* | Month (MM) |
| day | \* | Day (DD) |
Example
`js`
const result = await sdv.nba.getSchedule(
year = 2016, month = 04, day = 15
)
Kind: static method of nba
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
`js`
const result = await sdv.nba.getScoreboard(
year = 2019, month = 11, day = 16
)
Kind: static method of nba
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | number | Season |
| group | string | acceptable group names: 'league','conference','division' |
Example
`js`
const yr = 2016;
const result = await sdv.nba.getStandings(year = yr);
Kind: static method of nba
Returns: json
Example
`js`
const result = await sdv.nba.getTeamList();
Kind: static method of nba
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Team Id |
Example
`js`
const teamId = 16;
const result = await sdv.nba.getTeamInfo(teamId);
Kind: static method of nba
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Team Id |
Example
`js`
const teamId = 16;
const result = await sdv.nba.getTeamPlayers(teamId);
Operations for NCAA Sports.
Kind: global namespace
* ncaa : object
* .getRedirectUrl(url) ⇒
* .getInfo(game) ⇒
* .getBoxScore(game) ⇒
* .getPlayByPlay(game) ⇒
* .getScoreboard(sport, division, year, month, day) ⇒
* .getSports() ⇒
* .getSeasons(sport) ⇒
* .getDivisions(sport, season) ⇒
* .getSportDivisionData(sport, season, division, rankingPeriod, type, gameHigh, category) ⇒
* .getPlayerData(sport, season, division, rankingPeriod, gameHigh, category) ⇒
* .getTeamData(sport, season, division, rankingPeriod, gameHigh, category) ⇒
Kind: static method of ncaa
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| url | string | Game url as pulled from ncaaScoreboard.getNcaaScoreboard. |
Example
`js`
const result = await sdv.ncaaScoreboard.getNcaaScoreboard(
sport = 'basketball-men', division = 'd3', year = 2019, month = 02, day = 15
)
const urlGame = result["games"][16]["game"]["url"]
const gameId = await sdv.ncaa.getRedirectUrl(url=urlGame);
Kind: static method of ncaa
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| game | number | Game id. |
Example
`js`
const result = await sdv.ncaa.getInfo(5764053);
Kind: static method of ncaa
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| game | number | Game id. |
Example
`js`
const result = await sdv.ncaa.getBoxScore(5764053);
Kind: static method of ncaa
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| game | number | Game id. |
Example
`js`
const result = await sdv.ncaa.getPlayByPlay(5764053);
Kind: static method of ncaa
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| sport | string | Sport name. Acceptable values: 'football','basketball-men', 'basketball-women', 'baseball', 'softball', 'soccer-men','soccer-women', 'fieldhockey', 'icehockey-men','icehockey-women', 'lacrosse-men','lacrosse-women', 'beach-volleyball', 'volleyball-women', 'volleyball-men' |
| division | string | Division of teams desired. Acceptable values: Football - ['fbs','fcs','d2','d3'] All others - ['d1','d2','d3'] |
| year | \* | Year (YYYY) |
| month | \* | Month (MM) |
| day | \* | Day (DD) |
Example
`js`
const result = await sdv.ncaa.getScoreboard(
sport = 'basketball-men', division = 'd3', year = 2019, month = 02, day = 15
)
Kind: static method of ncaa
Returns: json
Example
`js`
const result = sdv.ncaa.getSports();
Kind: static method of ncaa
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| sport | string | Sport abbreviation. Acceptable values: 'MBA' = Baseball, 'MBB' = Men's basketball, 'MFB' = Men's Football, 'MIH' = Men's Ice-hockey, 'MLA' = Men's Lacrosse', 'MSO' = Men's Soccer, 'MTE' = Men's Tennis, 'MVB' = Men's Volleyball, 'MWP' = Men's Water Polo, 'WBB' = Women's Basketball, 'WBW' = Women's Bowling, 'WFH' = Field Hockey, 'WIH' = Women's Ice-Hockey, 'WLA' = Women's Lacrosse, 'WSB' = Women's Softball, 'WSO' = Women's Soccer, 'WSV' = Women's Beach Volleyball, 'WTE' = Women's Tennis, 'WVB' = Women's Volleyball, 'WWP' = Women's Water Polo |
Example
`js`
const result = sdv.ncaa.getSeasons(sport='MBB');
Kind: static method of ncaa
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| sport | string | Sport abbreviation. Acceptable values: 'MBA' = Baseball, 'MBB' = Men's basketball, 'MFB' = Men's Football, 'MIH' = Men's Ice-hockey, 'MLA' = Men's Lacrosse', 'MSO' = Men's Soccer, 'MTE' = Men's Tennis, 'MVB' = Men's Volleyball, 'MWP' = Men's Water Polo, 'WBB' = Women's Basketball, 'WBW' = Women's Bowling, 'WFH' = Field Hockey, 'WIH' = Women's Ice-Hockey, 'WLA' = Women's Lacrosse, 'WSB' = Women's Softball, 'WSO' = Women's Soccer, 'WSV' = Women's Beach Volleyball, 'WTE' = Women's Tennis, 'WVB' = Women's Volleyball, 'WWP' = Women's Water Polo |
| season | string | Season for sport |
Example
`js`
const result = sdv.ncaa.getDivisions(sport='MBB', season='2017');
Kind: static method of ncaa
Returns: json
| Param | Description |
| --- | --- |
| sport | Sport abbreviation. Acceptable values: 'MBA' = Baseball, 'MBB' = Men's basketball, 'MFB' = Men's Football, 'MIH' = Men's Ice-hockey, 'MLA' = Men's Lacrosse', 'MSO' = Men's Soccer, 'MTE' = Men's Tennis, 'MVB' = Men's Volleyball, 'MWP' = Men's Water Polo, 'WBB' = Women's Basketball, 'WBW' = Women's Bowling, 'WFH' = Field Hockey, 'WIH' = Women's Ice-Hockey, 'WLA' = Women's Lacrosse, 'WSB' = Women's Softball, 'WSO' = Women's Soccer, 'WSV' = Women's Beach Volleyball, 'WTE' = Women's Tennis, 'WVB' = Women's Volleyball, 'WWP' = Women's Water Polo |
| season | Season of query, value for 2016-2017 season would be 2017. |
| division | Division, for college football: 11 for FBS, 12 for FCS, otherwise 1 for Division-I, 2 for Division-II, 3 for Division-III. |
| rankingPeriod | Integer value indicating the ranking period, options can be found from using the @function ncaa.getSportDivisionData function. |
| type | Individual or Team type of statistics |
| gameHigh | logical, indicating whether the statistic desired is of the game-high variety |
| category | Value for the stat category, can also be found using the @function ncaa.getSportDivisionData |
Example
`js`
const sportDivisionData = sdv.ncaa.getSportDivisionData(sport='MFB',season='2016',division=12,type='team',gameHigh=true);
Kind: static method of ncaa
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| sport | | Sport abbreviation. Acceptable values: 'MBA' = Baseball, 'MBB' = Men's basketball, 'MFB' = Men's Football, 'MIH' = Men's Ice-hockey, 'MLA' = Men's Lacrosse', 'MSO' = Men's Soccer, 'MTE' = Men's Tennis, 'MVB' = Men's Volleyball, 'MWP' = Men's Water Polo, 'WBB' = Women's Basketball, 'WBW' = Women's Bowling, 'WFH' = Field Hockey, 'WIH' = Women's Ice-Hockey, 'WLA' = Women's Lacrosse, 'WSB' = Women's Softball, 'WSO' = Women's Soccer, 'WSV' = Women's Beach Volleyball, 'WTE' = Women's Tennis, 'WVB' = Women's Volleyball, 'WWP' = Women's Water Polo |
| season | | Season of query, value for 2016-2017 season would be 2017. |
| division | | Division, for college football: 11 for FBS, 12 for FCS, otherwise 1 for Division-I, 2 for Division-II, 3 for Division-III. |
| rankingPeriod | | Integer value indicating the ranking period, options can be found from using the @function ncaa.getSportDivisionData function. |
| gameHigh | 'Y' \| 'N' | logical, indicating whether the statistic desired is of the game-high variety |
| category | | Value for the stat category, can also be found using the @function ncaa.getSportDivisionData |
Example
`js`
const players = await sdv.ncaa.getPlayerData(sport = 'MFB', year = '2017', division = '11',rankingPeriod = '52', gameHigh='N', category = '20')
Kind: static method of ncaa
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| sport | | Sport abbreviation. Acceptable values: 'MBA' = Baseball, 'MBB' = Men's basketball, 'MFB' = Men's Football, 'MIH' = Men's Ice-hockey, 'MLA' = Men's Lacrosse', 'MSO' = Men's Soccer, 'MTE' = Men's Tennis, 'MVB' = Men's Volleyball, 'MWP' = Men's Water Polo, 'WBB' = Women's Basketball, 'WBW' = Women's Bowling, 'WFH' = Field Hockey, 'WIH' = Women's Ice-Hockey, 'WLA' = Women's Lacrosse, 'WSB' = Women's Softball, 'WSO' = Women's Soccer, 'WSV' = Women's Beach Volleyball, 'WTE' = Women's Tennis, 'WVB' = Women's Volleyball, 'WWP' = Women's Water Polo |
| season | | Season of query, value for 2016-2017 season would be 2017. |
| division | | Division, for college football: 11 for FBS, 12 for FCS, otherwise 1 for Division-I, 2 for Division-II, 3 for Division-III. |
| rankingPeriod | | Integer value indicating the ranking period, options can be found from using the @function ncaaSports.getSportDivisionData function. |
| gameHigh | 'Y' \| 'N' | logical, indicating whether the statistic desired is of the game-high variety |
| category | | Value for the stat category, can also be found using the @function ncaaSports.getSportDivisionData |
Example
`js`
const teams = await sdv.ncaa.getTeamData(sport = 'MFB', year = '2017', division = '11', rankingPeriod = '52', gameHigh='N', category = '20')
Operations for NFL.
Kind: global namespace
* nfl : object
* .getPlayByPlay(id) ⇒
* .getBoxScore(id) ⇒
* .getSummary(id) ⇒
* .getPicks(id) ⇒
* .getSchedule(year, month, day) ⇒
* .getWeeklySchedule(week, year, seasonType) ⇒
* .getScoreboard(year, month, day, limit) ⇒
* .getStandings(year, group) ⇒
* .getTeamList()
* .getTeamInfo(id) ⇒
* .getTeamPlayers(id) ⇒
Kind: static method of nfl
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.nfl.getPlayByPlay(401220403);
Kind: static method of nfl
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.nfl.getBoxScore(401220403);
Kind: static method of nfl
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.nfl.getSummary(401220403);
Kind: static method of nfl
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.nfl.getPicks(401220403);
Kind: static method of nfl
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| month | \* | Month (MM) |
| day | \* | Day (DD) |
Example
`js`
const result = await sdv.nfl.getSchedule(
year = 2019, month = 11, day = 17
)
Kind: static method of nfl
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| 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
`js`
const result = await sdv.nfl.getWeeklySchedule(
week = 1, year = 2023, seasonType = 2
)
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
`js`
const result = await sdv.nfl.getScoreboard(
year = 2019, month = 11, day = 17
)
Kind: static method of nfl
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | number | Season |
| group | string | acceptable group names: 'league','conference','division' |
Example
`js`
const yr = 2021;
const result = await sdv.nfl.getStandings(year = yr);
Kind: static method of nfl
Example
`js`
const result = await sdv.nfl.getTeamList();
Kind: static method of nfl
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Team Id |
Example
`js`
const teamId = 16;
const result = await sdv.nfl.getTeamInfo(teamId);
Kind: static method of nfl
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Team Id |
Example
`js`
const teamId = 16;
const result = await sdv.nfl.getTeamPlayers(teamId);
Operations for NHL.
Kind: global namespace
* nhl : object
* .getPlayByPlay(id) ⇒
* .getBoxScore(id) ⇒
* .getSummary(id) ⇒
* .getPicks(id) ⇒
* .getSchedule(year, month, day) ⇒
* .getScoreboard(year, month, day, limit) ⇒
* .getStandings(year, group) ⇒
* .getTeamList()
* .getTeamInfo(id) ⇒
* .getTeamPlayers(id) ⇒
Kind: static method of nhl
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.nhl.getPlayByPlay(401272446);
Kind: static method of nhl
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.nhl.getBoxScore(401272446);
Kind: static method of nhl
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.nhl.getSummary(401272446);
Kind: static method of nhl
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.nhl.getPicks(401272446);
Kind: static method of nhl
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| month | \* | Month (MM) |
| day | \* | Day (DD) |
Example
`js`
const result = await sdv.nhl.getSchedule(
year = 2019, month = 11, day = 17
)
Kind: static method of nhl
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
`js`
const result = await sdv.nhl.getScoreboard(
year = 2019, month = 11, day = 16
)
Kind: static method of nhl
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | number | Season |
| group | string | acceptable group names: 'league','conference','division' |
Example
`js`
const yr = 2016;
const result = await sdv.nhl.getStandings(year = yr);
Kind: static method of nhl
Example
`js`
const result = await sdv.nhl.getTeamList();
Kind: static method of nhl
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Team Id |
Example
`js`
const teamId = 16;
const result = await sdv.nhl.getTeamInfo(teamId);
Kind: static method of nhl
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Team Id |
Example
`js`
const teamId = 16;
const result = await sdv.nhl.getTeamPlayers(teamId);
ERROR, Cannot find namespace.
Operations for WBB.
Kind: global namespace
* wbb : object
* .getPlayByPlay(id) ⇒
* .getBoxScore(id) ⇒
* .getSummary(id) ⇒
* .getSchedule(year, month, day, group, seasontype, limit) ⇒
* .getScoreboard(year, month, day, group, seasontype, limit) ⇒
* .getConferences(year, group) ⇒
* .getStandings(year, group) ⇒
* .getTeamList(group) ⇒
* .getTeamInfo(id) ⇒
* .getTeamPlayers(id) ⇒
Kind: static method of wbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.wbb.getPlayByPlay(401260565);
Kind: static method of wbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.wbb.getBoxScore(401260565);
Kind: static method of wbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.wbb.getSummary(401260565);
Kind: static method of wbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| month | \* | Month (MM) |
| day | \* | Day (DD) |
| group | number | Group is 50 for Division-I, 51 for Division-II, 52 for Division-III |
| seasontype | number | Pre-Season: 1, Regular Season: 2, Postseason: 3, Off-season: 4 |
| limit | number | Limit on the number of results @default 300 |
Example
`js`
const result = await sdv.wbb.getSchedule(
year = 2021, month = 02, day = 15, group=50
)
Kind: static method of wbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| month | \* | Month (MM) |
| day | \* | Day (DD) |
| group | number | Group is 50 for Division-I, 51 for Division-II, 52 for Division-III |
| seasontype | number | Pre-Season: 1, Regular Season: 2, Postseason: 3, Off-season: 4 |
| limit | number | Limit on the number of results @default 300 |
Example
`js`
const result = await sdv.wbb.getScoreboard(
year = 2019, month = 02, day = 15, group=50
)
Kind: static method of wbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | number | Season |
| group | number | Group is 50 for Division-I, 51 for Division-II, 52 for Division-III |
Example
`js`
const yr = 2021;
const result = await sdv.wbb.getConferences(year = yr, group = 50);
Kind: static method of wbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | number | Season |
| group | number | Group is 50 for Division-I, 51 for Division-II, 52 for Division-III, see wbb.getConferences() for more info |
Example
`js`
const yr = 2020;
const result = await sdv.wbb.getStandings(year = yr);
Kind: static method of wbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| group | number | Group is 50 for Division I, 51 for Division II, 52 for Division III |
Example
`js`
get list of teams
const result = await sdv.wbb.getTeamList(group=50);
Kind: static method of wbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Team Id |
Example
`js`
const teamId = 52;
const result = await sdv.wbb.getTeamInfo(teamId);
Kind: static method of wbb
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Team Id |
Example
`js`
const teamId = 52;
const result = await sdv.wbb.getTeamPlayers(teamId);
Operations for WNBA.
Kind: global namespace
* wnba : object
* .getPlayByPlay(id) ⇒
* .getBoxScore(id) ⇒
* .getSummary(id) ⇒
* .getSchedule(year, month, day) ⇒
* .getScoreboard(year, month, day, limit) ⇒
* .getStandings(year, group) ⇒
* .getTeamList() ⇒
* .getTeamInfo(id) ⇒
* .getTeamPlayers(id) ⇒
Kind: static method of wnba
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.wnba.getPlayByPlay(401244185);
Kind: static method of wnba
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.wnba.getBoxScore(401244185);
Kind: static method of wnba
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Game id. |
Example
`js`
const result = await sdv.wnba.getSummary(401244185);
Kind: static method of wnba
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | \* | Year (YYYY) |
| month | \* | Month (MM) |
| day | \* | Day (DD) |
Example
`js`
const result = await sdv.wnba.getSchedule(
year = 2019, month = 07, day = 15
)
Kind: static method of wnba
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
`js`
const result = await sdv.wnba.getScoreboard(
year = 2019, month = 07, day = 15
)
Kind: static method of wnba
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| year | number | Season |
| group | string | acceptable group names: 'league','conference' |
Example
`js`
const yr = 2016;
const result = await sdv.wnba.getStandings(year = yr);
Kind: static method of wnba
Returns: json
Example
`js`
const result = await sdv.wnba.getTeamList();
Kind: static method of wnba
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Team Id |
Example
`js`
const teamId = 16;
const result = await sdv.wnba.getTeamInfo(teamId);
Kind: static method of wnba
Returns: json
| Param | Type | Description |
| --- | --- | --- |
| id | number | Team Id |
Example
`js``
const teamId = 16;
const result = await sdv.wnba.getTeamPlayers(teamId);
*
© 2020-21 sportsdataverse.js, developed by Saiem Gilani, part of the SportsDataverse