Update (2.0.0): Every function now returns a promise. Existing functionality should still be preserved, so it is safe to update from previous versions without making any changes.
cfb-data
- currently supports retrieving the following types of data:
- detailed play-by-play
- scores
- standings
- rankings
- investigating future support for other types of data
- team statistics
- individual statistics
contents
-
a. games
b. scores
c. schedules
d. conferences
e. teams
f. rankings
g. standings
h. recruiting
install
npm install cfb-data
use
const cfb = ;
games
const gameId = 400763535; // get detailed play-by-play data for a gameconst result = await cfbgames; // get box scoreconst result = await cfbgames; // get game all game dataconst summary = await cfbgames;
scores
// get scoreboard dataconst inputs = year: 2015 week: 5; const result = await cfbscoreboard;
schedules
const inputs = groups: 80 // all FBS games year: 2017 week: 8; const result = await cfbschedule;
conferences
const results = await cfbscoreboard;
teams
// get list of teamsconst result = await cfbteams; // get individual team dataconst teamId = 130;const result = await cfbteams; // get team roster dataconst result = await cfbteams;
rankings
// get rankingsconst inputs = year: 2015 week: 10; const result = await cfbrankings;
standings
// get standingsconst inputs = year: 2015; const result = await cfbstandings;
recruiting
// get recruiting data from 247Composite// get player rankingsconst result = await cfbrecruiting; const result = await cfbrecruiting; const result = await cfbrecruiting; // get school rankingsconst result = await cfbrecruiting; // get a school's commit listconst result = await cfbrecruiting;
license
MIT