npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/fantasydata_cbb_v3_stats

v4.0.0

Published

DataFire integration for CBB v3 Stats

Downloads

4

Readme

@datafire/fantasydata_cbb_v3_stats

Client library for CBB v3 Stats

Installation and Usage

npm install --save @datafire/fantasydata_cbb_v3_stats
let fantasydata_cbb_v3_stats = require('@datafire/fantasydata_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.

fantasydata_cbb_v3_stats.AreGamesInProgress({
  "format": ""
}, context)

Input

  • input object
    • format required string (values: XML, JSON): Desired response format. Valid entries are XML or JSON.

Output

  • output boolean

BoxScore

Box Score

fantasydata_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

Output

BoxScoresByDate

Box Scores by Date

fantasydata_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).

Output

BoxScoresByDateDelta

Box Scores by Date Delta

fantasydata_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:

Output

CurrentSeason

Current Season

fantasydata_cbb_v3_stats.CurrentSeason({
  "format": ""
}, context)

Input

  • input object
    • format required string (values: XML, JSON): Desired response format. Valid entries are XML or JSON.

Output

Schedules

Schedules

fantasydata_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.

Output

  • output array

GamesByDate

Games by Date

fantasydata_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).

Output

  • output array

LeagueHierarchy

League Hierarchy

fantasydata_cbb_v3_stats.LeagueHierarchy({
  "format": ""
}, context)

Input

  • input object
    • format required string (values: XML, JSON): Desired response format. Valid entries are XML or JSON.

Output

PlayerDetailsByPlayer

Player Details by Player

fantasydata_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.

Output

ProjectedPlayerGameStatsByDate

Projected Player Game Stats by Date

fantasydata_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).

Output

ProjectedPlayerGameStatsByPlayer

Projected Player Game Stats by Player

fantasydata_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.

Output

PlayerGameStatsByDate

Player Game Stats by Date

fantasydata_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).

Output

PlayerGameStatsByPlayer

Player Game Stats by Player

fantasydata_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.

Output

PlayerSeasonStats

Player Season Stats

fantasydata_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.

Output

PlayerSeasonStatsByPlayer

Player Season Stats By Player

fantasydata_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.

Output

PlayerSeasonStatsByTeam

Player Season Stats by Team

fantasydata_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.

Output

PlayerDetailsByActive

Player Details by Active

fantasydata_cbb_v3_stats.PlayerDetailsByActive({
  "format": ""
}, context)

Input

  • input object
    • format required string (values: XML, JSON): Desired response format. Valid entries are XML or JSON.

Output

PlayerDetailsByTeam

Player Details by Team

fantasydata_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.

Output

TeamGameStatsByDate

Team Game Stats by Date

fantasydata_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).

Output

TeamSeasonStats

Team Season Stats

fantasydata_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.

Output

TournamentHierarchy

Tournament Hierarchy

fantasydata_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.

Output

Teams

Teams

fantasydata_cbb_v3_stats.Teams({
  "format": ""
}, context)

Input

  • input object
    • format required string (values: XML, JSON): Desired response format. Valid entries are XML or JSON.

Output

  • output array

Definitions

BoxScore

Conference

  • Conference object
    • ConferenceID integer
    • Name string
    • Teams array

Game

  • Game object
    • AwayTeam string
    • AwayTeamID integer
    • AwayTeamMoneyLine integer
    • AwayTeamPreviousGameID integer
    • AwayTeamPreviousGlobalGameID integer
    • AwayTeamScore integer
    • AwayTeamSeed integer
    • Bracket string
    • DateTime string
    • Day string
    • GameID integer
    • GlobalAwayTeamID integer
    • GlobalGameID integer
    • GlobalHomeTeamID integer
    • HomeTeam string
    • HomeTeamID integer
    • HomeTeamMoneyLine integer
    • HomeTeamPreviousGameID integer
    • HomeTeamPreviousGlobalGameID integer
    • HomeTeamScore integer
    • HomeTeamSeed integer
    • OverUnder number
    • Period string
    • PointSpread number
    • Round integer
    • Season integer
    • SeasonType integer
    • Status string
    • TimeRemainingMinutes integer
    • TimeRemainingSeconds integer
    • TournamentDisplayOrder integer
    • TournamentDisplayOrderForHomeTeam string
    • TournamentID integer
    • Updated string

Period

  • Period object
    • AwayScore integer
    • GameID integer
    • HomeScore integer
    • Name string
    • Number integer
    • PeriodID integer
    • Type string

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

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

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

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

Season

  • Season object
    • Description string
    • EndYear integer
    • PostSeasonStartDate string
    • RegularSeasonStartDate string
    • Season integer
    • StartYear integer

Team

  • Team object
    • Active boolean
    • ApRank integer
    • Conference string
    • ConferenceID integer
    • ConferenceLosses integer
    • ConferenceWins integer
    • GlobalTeamID integer
    • Losses integer
    • Name string
    • School string
    • TeamID integer
    • TeamLogoUrl string
    • Wins integer
    • [Key] string

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

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

Tournament

  • Tournament object
    • Games array
    • Location string
    • Name string
    • Season integer
    • TournamentID integer