Giter VIP home page Giter VIP logo

nhl-score-api's People

Contributors

peruukki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nhl-score-api's Issues

Season 2020/2021 games are unobtainable

Trying to get games' data from any game of 2020/2021 season results in empty games array.
i.e nhl-score-api.herokuapp.com/api/scores?startDate=2021-01-19

Streaks and standings information are current, not before the game

The streaks and standings fields are supposed to return the information as it was before the game, but currently they just return the current information, i.e. how it is after the game.

This happens because the NHL Stats API no longer returns date-specific standings information, so https://statsapi.web.nhl.com/api/v1/standings gives the same results as e.g. https://statsapi.web.nhl.com/api/v1/standings?date=2019-10-06. I don't know if they stopped supporting older standings or if it's a bug. Some history is still available, e.g. queries until October 1st (https://statsapi.web.nhl.com/api/v1/standings?date=2019-10-01) return last season's final standings.

API does not update in a timely fashion

As of posting, it is 5:07pm on Sunday March 4. Several games are already live, with several more scheduled for tonight. Despite this, the API still returns Saturday's games stats.

Is this a bug or is there a particular time the API updates?

Inaccurate Scores on a live game appears to be missing Goals array

heya,
just happened to look at this during a live game and see this data:

{"date":{"raw":"2020-08-09","pretty":"Sun Aug 9"},"games":[{"status":{"state":"FINAL"},"startTime":"2020-08-09T16:00:00Z","goals":[{"team":"WSH","period":"1","scorer":{"player":"T.J. Oshie","seasonTotal":1},"assists":[],"min":19,"sec":44},{"team":"WSH","period":"3","scorer":{"player":"Tom Wilson","seasonTotal":1},"assists":[{"player":"Ilya Kovalchuk","seasonTotal":1},{"player":"Michal Kempny","seasonTotal":1}],"min":2,"sec":49},{"team":"BOS","period":"3","scorer":{"player":"Jake DeBrusk","seasonTotal":1},"assists":[{"player":"Ondrej Kase","seasonTotal":1},{"player":"David Krejci","seasonTotal":1}],"min":10,"sec":30}],"scores":{"BOS":1,"WSH":2},"teams":{"away":{"abbreviation":"BOS","id":6},"home":{"abbreviation":"WSH","id":15}},"preGameStats":{"records":{"WSH":{"wins":0,"losses":1,"ot":1},"BOS":{"wins":0,"losses":2,"ot":0}},"standings":{"BOS":{"conferenceRank":"1","leagueRank":"1"},"WSH":{"conferenceRank":"3","leagueRank":"5"}}},"currentStats":{"records":{"BOS":{"wins":0,"losses":3,"ot":0},"WSH":{"wins":1,"losses":1,"ot":1}},"streaks":{"BOS":{"type":"WINS","count":1},"WSH":{"type":"OT","count":1}},"standings":{"BOS":{"conferenceRank":"1","leagueRank":"1"},"WSH":{"conferenceRank":"3","leagueRank":"5"}}}},{"status":{"state":"LIVE","progress":{"currentPeriod":1,"currentPeriodOrdinal":"1st","currentPeriodTimeRemaining":{"min":0,"sec":0,"pretty":"END"}}},"startTime":"2020-08-09T19:00:00Z","goals":[],"scores":{"DAL":0,"STL":0},"teams":{"away":{"abbreviation":"DAL","id":25},"home":{"abbreviation":"STL","id":19}},"preGameStats":{"records":{"DAL":{"wins":0,"losses":2,"ot":0},"STL":{"wins":0,"losses":2,"ot":0}},"standings":{"DAL":{"conferenceRank":"4","leagueRank":"10"},"STL":{"conferenceRank":"1","leagueRank":"2"}}},"currentStats":{"records":{"DAL":{"wins":0,"losses":2,"ot":0},"STL":{"wins":0,"losses":2,"ot":0}},"streaks":{"DAL":{"type":"LOSSES","count":3},"STL":{"type":"WINS","count":1}},"standings":{"DAL":{"conferenceRank":"4","leagueRank":"10"},"STL":{"conferenceRank":"1","leagueRank":"2"}}}},{"status":{"state":"PREVIEW"},"startTime":"2020-08-10T00:00:00Z","goals":[],"scores":{"CBJ":0,"TOR":0},"teams":{"away":{"abbreviation":"CBJ","id":29},"home":{"abbreviation":"TOR","id":10}},"preGameStats":{"records":{"CBJ":{"wins":2,"losses":2,"ot":0},"TOR":{"wins":2,"losses":2,"ot":0}},"standings":{"CBJ":{"conferenceRank":"9","leagueRank":"14"},"TOR":{"conferenceRank":"8","leagueRank":"13"}},"playoffSeries":{"round":0,"wins":{"CBJ":2,"TOR":2}}},"currentStats":{"records":{"CBJ":{"wins":2,"losses":2,"ot":0},"TOR":{"wins":2,"losses":2,"ot":0}},"standings":{"CBJ":{"conferenceRank":"9","leagueRank":"14"},"TOR":{"conferenceRank":"8","leagueRank":"13"}},"playoffSeries":{"round":0,"wins":{"CBJ":2,"TOR":2}}}}]}

looking at the STL-DAL game, currently live, end of 1st period. The goals array is [] blank. More importantly, the scores shows 0-0 but in fact, the score is 1-0.

See NHL stats api linescore data pulled at same time:

{ "copyright" : "NHL and the NHL Shield are registered trademarks of the National Hockey League. NHL and NHL team marks are the property of the NHL and its teams. © NHL 2020. All Rights Reserved.", "currentPeriod" : 1, "currentPeriodOrdinal" : "1st", "currentPeriodTimeRemaining" : "END", "periods" : [ { "periodType" : "REGULAR", "num" : 1, "ordinalNum" : "1st", "home" : { "goals" : 1, "shotsOnGoal" : 0, "rinkSide" : "left" }, "away" : { "goals" : 0, "shotsOnGoal" : 0, "rinkSide" : "right" } } ], "shootoutInfo" : { "away" : { "scores" : 0, "attempts" : 0 }, "home" : { "scores" : 0, "attempts" : 0 } }, "teams" : { "home" : { "team" : { "id" : 19, "name" : "St. Louis Blues", "link" : "/api/v1/teams/19" }, "goals" : 1, "shotsOnGoal" : 0, "goaliePulled" : false, "numSkaters" : 0, "powerPlay" : false }, "away" : { "team" : { "id" : 25, "name" : "Dallas Stars", "link" : "/api/v1/teams/25" }, "goals" : 0, "shotsOnGoal" : 0, "goaliePulled" : false, "numSkaters" : 0, "powerPlay" : false } }, "powerPlayStrength" : "Even", "hasShootout" : false, "intermissionInfo" : { "intermissionTimeRemaining" : 0, "intermissionTimeElapsed" : 0, "inIntermission" : false } }

is this a bug? any idea? Just expecting accurate scores data from otherwise well done little api :)

Team name and location to details

Hi there

Happy new NHL Season :)

#Enhancement
Do you think you could add teamName ("Bruins") and locationName ("Boston") keys to the teams details section?

I know it will add to the data payload but useful to have those alongside abbreviation and id

If not too much trouble, thanks!

Not seeing today's games in /scores/latest

Hi there,

Not seeing any current game data in /scores/latest .... Not sure if anything to do with your recent changes. Maybe just a blip today, but heads up. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.