@datafire/sportsdata_cbb_v3_stats
v3.0.0
Published
DataFire integration for CBB v3 Stats
Downloads
4
Readme
@datafire/sportsdata_cbb_v3_stats
Client library for CBB v3 Stats
Installation and Usage
npm install --save @datafire/sportsdata_cbb_v3_stats
let sportsdata_cbb_v3_stats = require('@datafire/sportsdata_cbb_v3_stats').create({
apiKeyHeader: "",
apiKeyQuery: ""
});
.then(data => {
console.log(data);
});
Description
Actions
AreGamesInProgress
Returns true if there is at least one game being played at the time of the request or false if there are none.
sportsdata_cbb_v3_stats.AreGamesInProgress({
"format": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON.
- format required
Output
- output
boolean
BoxScore
Box Score
sportsdata_cbb_v3_stats.BoxScore({
"format": "",
"gameid": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - gameid required
string
: The GameID of an CBB game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905
- format required
Output
- output BoxScore
BoxScoresByDate
Box Scores by Date
sportsdata_cbb_v3_stats.BoxScoresByDate({
"format": "",
"date": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - date required
string
: The date of the game(s).
- format required
Output
- output
array
- items BoxScore
BoxScoresByDateDelta
Box Scores by Date Delta
sportsdata_cbb_v3_stats.BoxScoresByDateDelta({
"format": "",
"date": "",
"minutes": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - date required
string
: The date of the game(s). - minutes required
string
: Only returns player statistics that have changed in the last X minutes. You specify how many minutes in time to go back. Valid entries are:
- format required
Output
- output
array
- items BoxScore
CurrentSeason
Current Season
sportsdata_cbb_v3_stats.CurrentSeason({
"format": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON.
- format required
Output
- output Season
Schedules
Schedules
sportsdata_cbb_v3_stats.Schedules({
"format": "",
"season": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - season required
string
: Year of the season (with optional season type).Examples: 2018, 2018PRE, 2018POST, 2018STAR, 2019, etc.
- format required
Output
- output
array
- items Game
GamesByDate
Games by Date
sportsdata_cbb_v3_stats.GamesByDate({
"format": "",
"date": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - date required
string
: The date of the game(s).
- format required
Output
- output
array
- items Game
LeagueHierarchy
League Hierarchy
sportsdata_cbb_v3_stats.LeagueHierarchy({
"format": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON.
- format required
Output
- output
array
- items Conference
PlayerDetailsByPlayer
Player Details by Player
sportsdata_cbb_v3_stats.PlayerDetailsByPlayer({
"format": "",
"playerid": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - playerid required
string
: Unique FantasyData Player ID.
- format required
Output
- output Player
ProjectedPlayerGameStatsByDate
Projected Player Game Stats by Date
sportsdata_cbb_v3_stats.ProjectedPlayerGameStatsByDate({
"format": "",
"date": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - date required
string
: The date of the game(s).
- format required
Output
- output
array
- items PlayerGameProjection
ProjectedPlayerGameStatsByPlayer
Projected Player Game Stats by Player
sportsdata_cbb_v3_stats.ProjectedPlayerGameStatsByPlayer({
"format": "",
"date": "",
"playerid": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - date required
string
: The date of the game(s). - playerid required
string
: Unique FantasyData Player ID.
- format required
Output
- output PlayerGameProjection
PlayerGameStatsByDate
Player Game Stats by Date
sportsdata_cbb_v3_stats.PlayerGameStatsByDate({
"format": "",
"date": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - date required
string
: The date of the game(s).
- format required
Output
- output
array
- items PlayerGame
PlayerGameStatsByPlayer
Player Game Stats by Player
sportsdata_cbb_v3_stats.PlayerGameStatsByPlayer({
"format": "",
"date": "",
"playerid": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - date required
string
: The date of the game(s). - playerid required
string
: Unique FantasyData Player ID.
- format required
Output
- output PlayerGame
PlayerGameLogsBySeason
Player Game Logs By Season
sportsdata_cbb_v3_stats.PlayerGameLogsBySeason({
"format": "",
"season": "",
"playerid": "",
"numberofgames": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - season required
string
: Season to get games from. Example 2019POST, 2020 - playerid required
string
: Unique FantasyData Player ID.Example:60008094. - numberofgames required
string
: How many games to return. Example all, 10, 25
- format required
Output
- output
array
- items PlayerGame
PlayerSeasonStats
Player Season Stats
sportsdata_cbb_v3_stats.PlayerSeasonStats({
"format": "",
"season": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - season required
string
: Year of the season (with optional season type).Examples: 2018, 2018POST, 2019.
- format required
Output
- output
array
- items PlayerSeason
PlayerSeasonStatsByPlayer
Player Season Stats By Player
sportsdata_cbb_v3_stats.PlayerSeasonStatsByPlayer({
"format": "",
"season": "",
"playerid": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - season required
string
: Year of the season (with optional season type).Examples: 2018, 2018POST, 2019. - playerid required
string
: Unique FantasyData Player ID.
- format required
Output
- output PlayerSeason
PlayerSeasonStatsByTeam
Player Season Stats by Team
sportsdata_cbb_v3_stats.PlayerSeasonStatsByTeam({
"format": "",
"season": "",
"team": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - season required
string
: Year of the season (with optional season type).Examples: 2018, 2018POST, 2019. - team required
string
: The abbreviation of the requested team.
- format required
Output
- output
array
- items PlayerSeason
PlayerDetailsByActive
Player Details by Active
sportsdata_cbb_v3_stats.PlayerDetailsByActive({
"format": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON.
- format required
Output
- output
array
- items Player
PlayerDetailsByTeam
Player Details by Team
sportsdata_cbb_v3_stats.PlayerDetailsByTeam({
"format": "",
"team": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - team required
string
: The abbreviation of the requested team.
- format required
Output
- output
array
- items Player
Stadiums
Stadiums
sportsdata_cbb_v3_stats.Stadiums({
"format": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON.
- format required
Output
- output
array
- items Stadium
TeamGameStatsByDate
Team Game Stats by Date
sportsdata_cbb_v3_stats.TeamGameStatsByDate({
"format": "",
"date": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - date required
string
: The date of the game(s).
- format required
Output
- output
array
- items TeamGame
TeamSeasonStats
Team Season Stats
sportsdata_cbb_v3_stats.TeamSeasonStats({
"format": "",
"season": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - season required
string
: Year of the season (with optional season type).Examples: 2018, 2018POST, 2019.
- format required
Output
- output
array
- items TeamSeason
TournamentHierarchy
Tournament Hierarchy
sportsdata_cbb_v3_stats.TournamentHierarchy({
"format": "",
"season": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON. - season required
string
: Year of the season (with optional season type).Examples: 2018, 2018POST, 2019.
- format required
Output
- output Tournament
Teams
Teams
sportsdata_cbb_v3_stats.Teams({
"format": ""
}, context)
Input
- input
object
- format required
string
(values: XML, JSON): Desired response format. Valid entries are XML or JSON.
- format required
Output
- output
array
- items Team
Definitions
BoxScore
- BoxScore
object
- Game Game
- Periods
array
- items Period
- PlayerGames
array
- items PlayerGame
- TeamGames
array
- items TeamGame
Conference
- Conference
object
- ConferenceID
integer
- Name
string
- Teams
array
- items Team
- ConferenceID
Game
- Game
object
- AwayRotationNumber
integer
- AwayTeam
string
- AwayTeamID
integer
- AwayTeamMoneyLine
integer
- AwayTeamPreviousGameID
integer
- AwayTeamPreviousGlobalGameID
integer
- AwayTeamScore
integer
- AwayTeamSeed
integer
- BottomTeamPreviousGameId
integer
- Bracket
string
- Channel
string
- DateTime
string
- Day
string
- GameEndDateTime
string
- GameID
integer
- GlobalAwayTeamID
integer
- GlobalGameID
integer
- GlobalHomeTeamID
integer
- HomeRotationNumber
integer
- HomeTeam
string
- HomeTeamID
integer
- HomeTeamMoneyLine
integer
- HomeTeamPreviousGameID
integer
- HomeTeamPreviousGlobalGameID
integer
- HomeTeamScore
integer
- HomeTeamSeed
integer
- IsClosed
boolean
- NeutralVenue
boolean
- OverUnder
number
- Period
string
- Periods
array
- items Period
- PointSpread
number
- Round
integer
- Season
integer
- SeasonType
integer
- Stadium Stadium
- Status
string
- TimeRemainingMinutes
integer
- TimeRemainingSeconds
integer
- TopTeamPreviousGameId
integer
- TournamentDisplayOrder
integer
- TournamentDisplayOrderForHomeTeam
string
- TournamentID
integer
- Updated
string
- AwayRotationNumber
Period
- Period
object
- AwayScore
integer
- GameID
integer
- HomeScore
integer
- Name
string
- Number
integer
- PeriodID
integer
- Type
string
- AwayScore
Player
- Player
object
- BirthCity
string
- BirthState
string
- Class
string
- FantasyAlarmPlayerID
integer
- FirstName
string
- GlobalTeamID
integer
- Height
integer
- HighSchool
string
- Jersey
integer
- LastName
string
- PlayerID
integer
- Position
string
- RotoWirePlayerID
integer
- RotoworldPlayerID
integer
- SportRadarPlayerID
string
- Team
string
- TeamID
integer
- Weight
integer
- BirthCity
PlayerGame
- PlayerGame
object
- Assists
integer
- AssistsPercentage
number
- BlockedShots
integer
- BlocksPercentage
number
- DateTime
string
- Day
string
- DefensiveRebounds
integer
- DefensiveReboundsPercentage
number
- DraftKingsPosition
string
- DraftKingsSalary
integer
- EffectiveFieldGoalsPercentage
number
- FanDuelPosition
string
- FanDuelSalary
integer
- FantasyDataSalary
integer
- FantasyPoints
number
- FantasyPointsDraftKings
number
- FantasyPointsFanDuel
number
- FantasyPointsYahoo
number
- FieldGoalsAttempted
integer
- FieldGoalsMade
integer
- FieldGoalsPercentage
number
- FreeThrowsAttempted
integer
- FreeThrowsMade
integer
- FreeThrowsPercentage
number
- GameID
integer
- Games
integer
- GlobalGameID
integer
- GlobalOpponentID
integer
- GlobalTeamID
integer
- HomeOrAway
string
- InjuryBodyPart
string
- InjuryNotes
string
- InjuryStartDate
string
- InjuryStatus
string
- IsGameOver
boolean
- Minutes
integer
- Name
string
- OffensiveRebounds
integer
- OffensiveReboundsPercentage
number
- Opponent
string
- OpponentID
integer
- OpponentPositionRank
integer
- OpponentRank
integer
- PersonalFouls
integer
- PlayerEfficiencyRating
number
- PlayerID
integer
- Points
integer
- Position
string
- Rebounds
integer
- Season
integer
- SeasonType
integer
- StatID
integer
- Steals
integer
- StealsPercentage
number
- Team
string
- TeamID
integer
- ThreePointersAttempted
integer
- ThreePointersMade
integer
- ThreePointersPercentage
number
- TotalReboundsPercentage
number
- TrueShootingAttempts
number
- TrueShootingPercentage
number
- TurnOversPercentage
number
- Turnovers
integer
- TwoPointersAttempted
integer
- TwoPointersMade
integer
- TwoPointersPercentage
number
- Updated
string
- UsageRatePercentage
number
- YahooPosition
string
- YahooSalary
integer
- Assists
PlayerGameProjection
- PlayerGameProjection
object
- Assists
integer
- AssistsPercentage
number
- BlockedShots
integer
- BlocksPercentage
number
- DateTime
string
- Day
string
- DefensiveRebounds
integer
- DefensiveReboundsPercentage
number
- DraftKingsPosition
string
- DraftKingsSalary
integer
- EffectiveFieldGoalsPercentage
number
- FanDuelPosition
string
- FanDuelSalary
integer
- FantasyDataSalary
integer
- FantasyPoints
number
- FantasyPointsDraftKings
number
- FantasyPointsFanDuel
number
- FantasyPointsYahoo
number
- FieldGoalsAttempted
integer
- FieldGoalsMade
integer
- FieldGoalsPercentage
number
- FreeThrowsAttempted
integer
- FreeThrowsMade
integer
- FreeThrowsPercentage
number
- GameID
integer
- Games
integer
- GlobalGameID
integer
- GlobalOpponentID
integer
- GlobalTeamID
integer
- HomeOrAway
string
- InjuryBodyPart
string
- InjuryNotes
string
- InjuryStartDate
string
- InjuryStatus
string
- IsGameOver
boolean
- Minutes
integer
- Name
string
- OffensiveRebounds
integer
- OffensiveReboundsPercentage
number
- Opponent
string
- OpponentID
integer
- OpponentPositionRank
integer
- OpponentRank
integer
- PersonalFouls
integer
- PlayerEfficiencyRating
number
- PlayerID
integer
- Points
integer
- Position
string
- Rebounds
integer
- Season
integer
- SeasonType
integer
- StatID
integer
- Steals
integer
- StealsPercentage
number
- Team
string
- TeamID
integer
- ThreePointersAttempted
integer
- ThreePointersMade
integer
- ThreePointersPercentage
number
- TotalReboundsPercentage
number
- TrueShootingAttempts
number
- TrueShootingPercentage
number
- TurnOversPercentage
number
- Turnovers
integer
- TwoPointersAttempted
integer
- TwoPointersMade
integer
- TwoPointersPercentage
number
- Updated
string
- UsageRatePercentage
number
- YahooPosition
string
- YahooSalary
integer
- Assists
PlayerSeason
- PlayerSeason
object
- Assists
integer
- AssistsPercentage
number
- BlockedShots
integer
- BlocksPercentage
number
- DefensiveRebounds
integer
- DefensiveReboundsPercentage
number
- EffectiveFieldGoalsPercentage
number
- FantasyPoints
number
- FantasyPointsDraftKings
number
- FantasyPointsFanDuel
number
- FantasyPointsYahoo
number
- FieldGoalsAttempted
integer
- FieldGoalsMade
integer
- FieldGoalsPercentage
number
- FreeThrowsAttempted
integer
- FreeThrowsMade
integer
- FreeThrowsPercentage
number
- Games
integer
- GlobalTeamID
integer
- Minutes
integer
- Name
string
- OffensiveRebounds
integer
- OffensiveReboundsPercentage
number
- PersonalFouls
integer
- PlayerEfficiencyRating
number
- PlayerID
integer
- Points
integer
- Position
string
- Rebounds
integer
- Season
integer
- SeasonType
integer
- StatID
integer
- Steals
integer
- StealsPercentage
number
- Team
string
- TeamID
integer
- ThreePointersAttempted
integer
- ThreePointersMade
integer
- ThreePointersPercentage
number
- TotalReboundsPercentage
number
- TrueShootingAttempts
number
- TrueShootingPercentage
number
- TurnOversPercentage
number
- Turnovers
integer
- TwoPointersAttempted
integer
- TwoPointersMade
integer
- TwoPointersPercentage
number
- Updated
string
- UsageRatePercentage
number
- Assists
Season
- Season
object
- ApiSeason
string
- Description
string
- EndYear
integer
- PostSeasonStartDate
string
- RegularSeasonStartDate
string
- Season
integer
- StartYear
integer
- ApiSeason
Stadium
- Stadium
object
- Active
boolean
- Address
string
- Capacity
integer
- City
string
- Country
string
- Name
string
- StadiumID
integer
- State
string
- Zip
string
- Active
Team
- Team
object
- Active
boolean
- ApRank
integer
- Conference
string
- ConferenceID
integer
- ConferenceLosses
integer
- ConferenceWins
integer
- GlobalTeamID
integer
- Losses
integer
- Name
string
- School
string
- ShortDisplayName
string
- Stadium Stadium
- TeamID
integer
- TeamLogoUrl
string
- Wins
integer
- [Key]
string
- Active
TeamGame
- TeamGame
object
- Assists
integer
- AssistsPercentage
number
- BlockedShots
integer
- BlocksPercentage
number
- ConferenceLosses
integer
- ConferenceWins
integer
- DateTime
string
- Day
string
- DefensiveRebounds
integer
- DefensiveReboundsPercentage
number
- EffectiveFieldGoalsPercentage
number
- FantasyPoints
number
- FantasyPointsDraftKings
number
- FantasyPointsFanDuel
number
- FantasyPointsYahoo
number
- FieldGoalsAttempted
integer
- FieldGoalsMade
integer
- FieldGoalsPercentage
number
- FreeThrowsAttempted
integer
- FreeThrowsMade
integer
- FreeThrowsPercentage
number
- GameID
integer
- Games
integer
- GlobalGameID
integer
- GlobalOpponentID
integer
- GlobalTeamID
integer
- HomeOrAway
string
- IsGameOver
boolean
- Losses
integer
- Minutes
integer
- Name
string
- OffensiveRebounds
integer
- OffensiveReboundsPercentage
number
- Opponent
string
- OpponentID
integer
- PersonalFouls
integer
- PlayerEfficiencyRating
number
- Points
integer
- Possessions
number
- Rebounds
integer
- Season
integer
- SeasonType
integer
- StatID
integer
- Steals
integer
- StealsPercentage
number
- Team
string
- TeamID
integer
- ThreePointersAttempted
integer
- ThreePointersMade
integer
- ThreePointersPercentage
number
- TotalReboundsPercentage
number
- TrueShootingAttempts
number
- TrueShootingPercentage
number
- TurnOversPercentage
number
- Turnovers
integer
- TwoPointersAttempted
integer
- TwoPointersMade
integer
- TwoPointersPercentage
number
- Updated
string
- UsageRatePercentage
number
- Wins
integer
- Assists
TeamSeason
- TeamSeason
object
- Assists
integer
- AssistsPercentage
number
- BlockedShots
integer
- BlocksPercentage
number
- ConferenceLosses
integer
- ConferenceWins
integer
- DefensiveRebounds
integer
- DefensiveReboundsPercentage
number
- EffectiveFieldGoalsPercentage
number
- FantasyPoints
number
- FantasyPointsDraftKings
number
- FantasyPointsFanDuel
number
- FantasyPointsYahoo
number
- FieldGoalsAttempted
integer
- FieldGoalsMade
integer
- FieldGoalsPercentage
number
- FreeThrowsAttempted
integer
- FreeThrowsMade
integer
- FreeThrowsPercentage
number
- Games
integer
- GlobalTeamID
integer
- Losses
integer
- Minutes
integer
- Name
string
- OffensiveRebounds
integer
- OffensiveReboundsPercentage
number
- PersonalFouls
integer
- PlayerEfficiencyRating
number
- Points
integer
- Possessions
number
- Rebounds
integer
- Season
integer
- SeasonType
integer
- StatID
integer
- Steals
integer
- StealsPercentage
number
- Team
string
- TeamID
integer
- ThreePointersAttempted
integer
- ThreePointersMade
integer
- ThreePointersPercentage
number
- TotalReboundsPercentage
number
- TrueShootingAttempts
number
- TrueShootingPercentage
number
- TurnOversPercentage
number
- Turnovers
integer
- TwoPointersAttempted
integer
- TwoPointersMade
integer
- TwoPointersPercentage
number
- Updated
string
- UsageRatePercentage
number
- Wins
integer
- Assists
Tournament
- Tournament
object
- Games
array
- items Game
- LeftBottomBracketConference
string
- LeftTopBracketConference
string
- Location
string
- Name
string
- RightBottomBracketConference
string
- RightTopBracketConference
string
- Season
integer
- TournamentID
integer
- Games