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/sportsdata_nhl_v3_scores

v3.0.0

Published

DataFire integration for NHL v3 Scores

Downloads

4

Readme

@datafire/sportsdata_nhl_v3_scores

Client library for NHL v3 Scores

Installation and Usage

npm install --save @datafire/sportsdata_nhl_v3_scores
let sportsdata_nhl_v3_scores = require('@datafire/sportsdata_nhl_v3_scores').create({
  apiKeyHeader: "",
  apiKeyQuery: ""
});

.then(data => {
  console.log(data);
});

Description

Actions

TeamsAll

Teams (All)

sportsdata_nhl_v3_scores.TeamsAll({
  "format": ""
}, context)

Input

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

Output

  • output array

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_nhl_v3_scores.AreGamesInProgress({
  "format": ""
}, context)

Input

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

Output

  • output boolean

CurrentSeason

Current Season

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

Input

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

Output

PlayerDetailsByFreeAgent

Player Details by Free Agent

sportsdata_nhl_v3_scores.PlayerDetailsByFreeAgent({
  "format": ""
}, context)

Input

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

Output

Schedules

Schedules

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

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

News

News

sportsdata_nhl_v3_scores.News({
  "format": ""
}, context)

Input

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

Output

  • output array

NewsByDate

News by Date

sportsdata_nhl_v3_scores.NewsByDate({
  "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 news.

Output

  • output array

NewsByPlayer

News by Player

sportsdata_nhl_v3_scores.NewsByPlayer({
  "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

  • output array

PlayerDetailsByPlayer

Player Details by Player

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

PlayerDetailsByActive

Player Details by Active

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

Input

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

Output

PlayersByTeam

Players by Team

sportsdata_nhl_v3_scores.PlayersByTeam({
  "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

Stadiums

Stadiums

sportsdata_nhl_v3_scores.Stadiums({
  "format": ""
}, context)

Input

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

Output

Standings

Standings

sportsdata_nhl_v3_scores.Standings({
  "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.

Output

TeamGameStatsByDate

Team Game Stats by Date

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

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

Output

TeamsActive

Teams (Active)

sportsdata_nhl_v3_scores.TeamsActive({
  "format": ""
}, context)

Input

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

Output

  • output array

Definitions

Game

  • Game object
    • Attendance integer
    • AwayRotationNumber integer
    • AwayTeam string
    • AwayTeamID integer
    • AwayTeamMoneyLine integer
    • AwayTeamScore integer
    • Channel string
    • DateTime string
    • Day string
    • GameEndDateTime string
    • GameID integer
    • GlobalAwayTeamID integer
    • GlobalGameID integer
    • GlobalHomeTeamID integer
    • HomeRotationNumber integer
    • HomeTeam string
    • HomeTeamID integer
    • HomeTeamMoneyLine integer
    • HomeTeamScore integer
    • IsClosed boolean
    • LastPlay string
    • NeutralVenue boolean
    • OverUnder number
    • Period string
    • Periods array
    • PointSpread number
    • PointSpreadAwayTeamMoneyLine integer
    • PointSpreadHomeTeamMoneyLine integer
    • Season integer
    • SeasonType integer
    • StadiumID integer
    • Status string
    • TimeRemainingMinutes integer
    • TimeRemainingSeconds integer
    • Updated string

News

  • News object
    • Content string
    • NewsID integer
    • PlayerID integer
    • Source string
    • Team string
    • TeamID integer
    • TermsOfUse string
    • Title string
    • Updated string
    • Url string

OpponentSeason

  • OpponentSeason object
    • Assists number
    • BenchPenaltyMinutes number
    • Blocks number
    • EmptyNetGoals number
    • FaceoffsLost number
    • FaceoffsWon number
    • FantasyPoints number
    • FantasyPointsDraftKings number
    • FantasyPointsFanDuel number
    • FantasyPointsFantasyDraft number
    • FantasyPointsYahoo number
    • Games integer
    • Giveaways number
    • GlobalTeamID integer
    • Goals number
    • GoaltendingGoalsAgainst number
    • GoaltendingLosses number
    • GoaltendingMinutes integer
    • GoaltendingOvertimeLosses number
    • GoaltendingSaves number
    • GoaltendingSeconds integer
    • GoaltendingShotsAgainst number
    • GoaltendingShutouts number
    • GoaltendingWins number
    • HatTricks number
    • Hits number
    • Losses integer
    • Minutes integer
    • Name string
    • OpponentPosition string
    • OpponentStat OpponentSeason
    • OvertimeLosses integer
    • PenaltyMinutes number
    • PlusMinus number
    • PowerPlayAssists number
    • PowerPlayGoals number
    • Season integer
    • SeasonType integer
    • Seconds integer
    • Shifts number
    • ShootoutGoals number
    • ShortHandedAssists number
    • ShortHandedGoals number
    • ShotsOnGoal number
    • Started integer
    • StatID integer
    • Takeaways number
    • Team string
    • TeamID integer
    • Updated string
    • Wins integer

Penalty

  • Penalty object
    • BenchPenaltyServedByPlayerID integer
    • Description string
    • DrawnByPlayerID integer
    • DrawnByTeamID integer
    • IsBenchPenalty boolean
    • PenalizedPlayerID integer
    • PenalizedTeamID integer
    • PenaltyID integer
    • PenaltyMinutes integer
    • PeriodID integer
    • Sequence integer
    • TimeRemainingMinutes integer
    • TimeRemainingSeconds integer

Period

  • Period object
    • AwayScore integer
    • GameID integer
    • HomeScore integer
    • Name string
    • Penalties array
    • PeriodID integer
    • ScoringPlays array

Player

  • Player object
    • BirthCity string
    • BirthDate string
    • BirthState string
    • Catches string
    • DepthChartOrder integer
    • DepthChartPosition string
    • DraftKingsName string
    • DraftKingsPlayerID integer
    • FanDuelName string
    • FanDuelPlayerID integer
    • FantasyAlarmPlayerID integer
    • FantasyDraftName string
    • FantasyDraftPlayerID integer
    • FirstName string
    • GlobalTeamID integer
    • Height integer
    • InjuryBodyPart string
    • InjuryNotes string
    • InjuryStartDate string
    • InjuryStatus string
    • Jersey integer
    • LastName string
    • PhotoUrl string
    • PlayerID integer
    • Position string
    • RotoWirePlayerID integer
    • RotoworldPlayerID integer
    • Shoots string
    • SportRadarPlayerID string
    • SportsDirectPlayerID integer
    • StatsPlayerID integer
    • Status string
    • Team string
    • TeamID integer
    • UsaTodayHeadshotNoBackgroundUpdated string
    • UsaTodayHeadshotNoBackgroundUrl string
    • UsaTodayHeadshotUpdated string
    • UsaTodayHeadshotUrl string
    • UsaTodayPlayerID integer
    • Weight integer
    • XmlTeamPlayerID integer
    • YahooName string
    • YahooPlayerID integer

ScoringPlay

  • ScoringPlay object
    • AllowedByTeamID integer
    • AssistedByPlayerID1 integer
    • AssistedByPlayerID2 integer
    • AwayTeamScore integer
    • EmptyNet boolean
    • HomeTeamScore integer
    • PeriodID integer
    • PowerPlay boolean
    • ScoredByPlayerID integer
    • ScoredByTeamID integer
    • ScoringPlayID integer
    • Sequence integer
    • ShortHanded boolean
    • TimeRemainingMinutes integer
    • TimeRemainingSeconds integer

Season

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

Stadium

  • Stadium object
    • Active boolean
    • Address string
    • Capacity integer
    • City string
    • Country string
    • GeoLat number
    • GeoLong number
    • Name string
    • StadiumID integer
    • State string
    • Zip string

Standing

  • Standing object
    • City string
    • Conference string
    • ConferenceLosses integer
    • ConferenceRank integer
    • ConferenceWins integer
    • Division string
    • DivisionLosses integer
    • DivisionRank integer
    • DivisionWins integer
    • GlobalTeamID integer
    • Key string
    • Losses integer
    • Name string
    • OvertimeLosses integer
    • Percentage number
    • Season integer
    • SeasonType integer
    • ShutoutWins integer
    • TeamID integer
    • Wins integer

Team

  • Team object
    • Active boolean
    • City string
    • Conference string
    • Division string
    • GlobalTeamID integer
    • Name string
    • PrimaryColor string
    • QuaternaryColor string
    • SecondaryColor string
    • StadiumID integer
    • TeamID integer
    • TertiaryColor string
    • WikipediaLogoUrl string
    • WikipediaWordMarkUrl string
    • [Key] string

TeamGame

  • TeamGame object
    • Assists number
    • BenchPenaltyMinutes number
    • Blocks number
    • DateTime string
    • Day string
    • EmptyNetGoals number
    • FaceoffsLost number
    • FaceoffsWon number
    • FantasyPoints number
    • FantasyPointsDraftKings number
    • FantasyPointsFanDuel number
    • FantasyPointsFantasyDraft number
    • FantasyPointsYahoo number
    • GameID integer
    • Games integer
    • Giveaways number
    • GlobalGameID integer
    • GlobalOpponentID integer
    • GlobalTeamID integer
    • Goals number
    • GoaltendingGoalsAgainst number
    • GoaltendingLosses number
    • GoaltendingMinutes integer
    • GoaltendingOvertimeLosses number
    • GoaltendingSaves number
    • GoaltendingSeconds integer
    • GoaltendingShotsAgainst number
    • GoaltendingShutouts number
    • GoaltendingWins number
    • HatTricks number
    • Hits number
    • HomeOrAway string
    • IsGameOver boolean
    • Losses integer
    • Minutes integer
    • Name string
    • Opponent string
    • OpponentID integer
    • OvertimeLosses integer
    • PenaltyMinutes number
    • PlusMinus number
    • PowerPlayAssists number
    • PowerPlayGoals number
    • Season integer
    • SeasonType integer
    • Seconds integer
    • Shifts number
    • ShootoutGoals number
    • ShortHandedAssists number
    • ShortHandedGoals number
    • ShotsOnGoal number
    • Started integer
    • StatID integer
    • Takeaways number
    • Team string
    • TeamID integer
    • Updated string
    • Wins integer

TeamSeason

  • TeamSeason object
    • Assists number
    • BenchPenaltyMinutes number
    • Blocks number
    • EmptyNetGoals number
    • FaceoffsLost number
    • FaceoffsWon number
    • FantasyPoints number
    • FantasyPointsDraftKings number
    • FantasyPointsFanDuel number
    • FantasyPointsFantasyDraft number
    • FantasyPointsYahoo number
    • Games integer
    • Giveaways number
    • GlobalTeamID integer
    • Goals number
    • GoaltendingGoalsAgainst number
    • GoaltendingLosses number
    • GoaltendingMinutes integer
    • GoaltendingOvertimeLosses number
    • GoaltendingSaves number
    • GoaltendingSeconds integer
    • GoaltendingShotsAgainst number
    • GoaltendingShutouts number
    • GoaltendingWins number
    • HatTricks number
    • Hits number
    • Losses integer
    • Minutes integer
    • Name string
    • OpponentPosition string
    • OpponentStat OpponentSeason
    • OvertimeLosses integer
    • PenaltyMinutes number
    • PlusMinus number
    • PowerPlayAssists number
    • PowerPlayGoals number
    • Season integer
    • SeasonType integer
    • Seconds integer
    • Shifts number
    • ShootoutGoals number
    • ShortHandedAssists number
    • ShortHandedGoals number
    • ShotsOnGoal number
    • Started integer
    • StatID integer
    • Takeaways number
    • Team string
    • TeamID integer
    • Updated string
    • Wins integer