1/22/2024 0 Comments Nhl stats apiThe primary feeds require only a date or season to call the endpoints. Find the coach element and locate the full_name attribute. Call the Team Profile using the Team ID. Call the season or series schedule and find id for the coach's team.>To find the coach's name for a given team: >The number of the players's assists is displayed. Find the assists statistics and locate the player full_name.Call the Game Boxscore using the Game Id.Call the schedule or daily schedule and find the Game Id for the chosen game.>To find a players assists for a given game: The map below illustrates how you can obtain the parameters you need. To best utilize the NHL API, you will need several parameters to create your API calls. Note: Authentication is required for all API calls. ?expand=schedule.Statistics Summary Documentation Change Log Frequently Asked Questions API If no date range is specified, returns results from the current day. GET Returns a list of data about the schedule for a specified date range. For playoff games, the 2nd digit of the specific number gives the round of the playoffs, the 3rd digit specifies the matchup, and the 4th digit specifies the game (out of 7). (1271 for seasons with 31 teams (2017 and onwards) and 1230 for seasons with 30 teams). For regular season and preseason games, this ranges from 0001 to the number of games played. The final 4 digits identify the specific game number. The next 2 digits give the type of game, where 01 = preseason, 02 = regular season, 03 = playoffs, 04 = all-star. The first 4 digits identify the season of the game (ie. If the startTimecode param is missing, returns an empty array. Returns updates (like new play events, updated stats for boxscore, etc.) for the specified game ID 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |