

Multiple types of media relating to the game including videos of shots, goals and saves. Shots, PIMs, blocked, takeaways, giveaways and hits.

Than feed/live and is much more suitable for post-game details including goals, Theĭata returned is simply too large at often over 30k lines and is best explored The rest of the league for a specific regularSeasonStatRankingsĪ specified game id including play data with on-ice coordinates and post-gameĭetails like first, second and third stars and any details about shootouts. ?stats=regularSeasonStatRankings&season=20162017 Returns where someone stands vs ?stats=gameLog&season=20162017 Provides a game log showing stats for each game of a season ?stats=vsTeam&season=20162017 Conference stats split ?stats=vsConference&season=20162017 Conference stats split ?stats=vsDivision&season=20162017 Division stats split ?stats=byDayOfWeek&season=20162017 Split done by day of the week ?stats=byMonth&season=20162017 Monthly split of stats ?stats=winLoss&season=20162017 Very similar to the previous modifier except it provides the W/L/OT split instead of Home and Away ?stats=homeAndAway&season=20162017 Provides a split between home and away games. Note - stats have changed over the years, the below sample is for Wayne GretzkyĪnd does not include things like evenTimeOnIce and other time related stats ?stats=statsSingleSeason&season=19801981 Obtains single season statistics Lots of append options to change what kind of stats you wish to obtain Modifiers Including id value, name, jersey number and position details. NHL and NHL team marks are the property of the NHL and its teams. "copyright" : "NHL and the NHL Shield are registered trademarks of the National Hockey League. ?stats=statsSingleSeasonPlayoffs Speciy which stats to get. ?teamId=4,5,29 Can string team id together to get multiple teams ?expand=team.roster&season=20142015 Adding the season identifier shows the roster for that season ?expand=team.stats Returns the teams stats for the season ?expand= Same as above but for the last game played ?expand= Returns details of the upcoming game for a team ?expand=person.names Same as above, but gives less info. ?expand=team.roster Shows roster of active players for the specified team GET Returns the same information as above justįor a single team instead of the entire league. OpenAPI 3.0 specification file for the NHL API thanks to erunionĪll teams including their id, venue details, division, conference and franchise information. NHL API DocumentationĪll of this has been compiled and tested by hand in Jan of 2018, prior to this most of the information was spread across the internet in various posts and not available in a cohesive I will no longer be maintaining the repo at this(github) location but it will remain up for posterity sake, the above link will contain all future work on the documentation.
