Skip to main content

ncaa

ncaa : object#

Operations for NCAA Sports.

Kind: global namespace

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

ParamTypeDescription
urlstringGame 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

ParamTypeDescription
gamenumberGame 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

ParamTypeDescription
gamenumberGame 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

ParamTypeDescription
gamenumberGame 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

ParamTypeDescription
gamenumberGame 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

ParamTypeDescription
gamenumberGame 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

ParamTypeDescription
sportstringSport 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'
divisionstringDivision 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

ParamTypeDescription
sportstringSport 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

ParamTypeDescription
sportstringSport 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
seasonstringSeason 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

ParamDescription
sportSport 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
seasonSeason of query, value for 2016-2017 season would be 2017.
divisionDivision, for college football: 11 for FBS, 12 for FCS, otherwise 1 for Division-I, 2 for Division-II, 3 for Division-III.
rankingPeriodInteger value indicating the ranking period, options can be found from using the @function ncaa.getSportDivisionData function.
typeIndividual or Team type of statistics
gameHighlogical, indicating whether the statistic desired is of the game-high variety
categoryValue 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

ParamTypeDescription
sportSport 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
seasonSeason of query, value for 2016-2017 season would be 2017.
divisionDivision, for college football: 11 for FBS, 12 for FCS, otherwise 1 for Division-I, 2 for Division-II, 3 for Division-III.
rankingPeriodInteger 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
categoryValue 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

ParamTypeDescription
sportSport 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
seasonSeason of query, value for 2016-2017 season would be 2017.
divisionDivision, for college football: 11 for FBS, 12 for FCS, otherwise 1 for Division-I, 2 for Division-II, 3 for Division-III.
rankingPeriodInteger 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
categoryValue 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')