ncaa
object
#
ncaa : Operations for NCAA Sports.
Kind: global namespace
- ncaa :
object
- .getRedirectUrl(url) โ
- .getInfo(game) โ
- .getBoxScore(game) โ
- .getPlayByPlay(game) โ
- .getTeamStats(game) โ
- .getScoringSummary(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) โ
#
ncaa.getRedirectUrl(url) โGets the gameId for older games whose url redirects to the current url pattern using the game url fragment (relative to https://ncaa.com) pulled from ncaaScoreboard
Kind: static method of ncaa
Returns: json
Param | Type | Description |
---|---|---|
url | string | Game url as pulled from ncaaScoreboard.getNcaaScoreboard. |
Example
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);
#
ncaa.getInfo(game) โGets the gameInfo data for a specified game.
Kind: static method of ncaa
Returns: json
Param | Type | Description |
---|---|---|
game | number | Game id. |
Example
const result = await sdv.ncaa.getInfo(5764053);
#
ncaa.getBoxScore(game) โGets the box score data for a specified game if available.
Kind: static method of ncaa
Returns: json
Param | Type | Description |
---|---|---|
game | number | Game id. |
Example
const result = await sdv.ncaa.getBoxScore(5764053);
#
ncaa.getPlayByPlay(game) โGets the play-by-play data for a specified game if available.
Kind: static method of ncaa
Returns: json
Param | Type | Description |
---|---|---|
game | number | Game id. |
Example
const result = await sdv.ncaa.getPlayByPlay(5764053);
#
ncaa.getTeamStats(game) โGets the team stats data for a specified game if available.
Kind: static method of ncaa
Returns: json
Param | Type | Description |
---|---|---|
game | number | Game id. |
Example
const result = await sdv.ncaa.getTeamStats(5764053);
#
ncaa.getScoringSummary(game) โGets the scoring summary data for a specified game if available.
Kind: static method of ncaa
Returns: json
Param | Type | Description |
---|---|---|
game | number | Game id. |
Example
const result = await sdv.ncaa.getScoringSummary(5764053);
#
ncaa.getScoreboard(sport, division, year, month, day) โGets the scoreboard data for a specified date and team sport if available.
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
const result = await sdv.ncaa.getScoreboard(sport = 'basketball-men', division = 'd3', year = 2019, month = 02, day = 15)
#
ncaa.getSports() โRetrieves the set of sports and their abbreviations.
Kind: static method of ncaa
Returns: json
Example
const result = sdv.ncaa.getSports();
#
ncaa.getSeasons(sport) โRetrieves the seasons for the selected sport.
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
const result = sdv.ncaa.getSeasons(sport='MBB');
#
ncaa.getDivisions(sport, season) โRetrieves the Divisions for the selected sport and season.
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
const result = sdv.ncaa.getDivisions(sport='MBB', season='2017');
#
ncaa.getSportDivisionData(sport, season, division, rankingPeriod, type, gameHigh, category) โRequest the data from the NCAA Stats website.
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
const sportDivisionData = sdv.ncaa.getSportDivisionData(sport='MFB',season='2016',division=12,type='team',gameHigh=true);
#
ncaa.getPlayerData(sport, season, division, rankingPeriod, gameHigh, category) โGet the Player Data from the NCAA Stats website.
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
const players = await sdv.ncaa.getPlayerData(sport = 'MFB', year = '2017', division = '11',rankingPeriod = '52', gameHigh='N', category = '20')
#
ncaa.getTeamData(sport, season, division, rankingPeriod, gameHigh, category) โGet the Team Data from the NCAA Stats website.
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
const teams = await sdv.ncaa.getTeamData(sport = 'MFB', year = '2017', division = '11', rankingPeriod = '52', gameHigh='N', category = '20')