diff --git a/README.md b/README.md index fdaa727..e02f239 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,34 @@ All of this has been compiled and tested by hand in Jan of 2018, prior to this m single place. [OpenAPI 3.0 specification file for the NHL API](https://github.com/erunion/sport-api-specifications/tree/master/nhl) thanks to @[erunion](https://github.com/erunion) -### Teams + +[Teams](#teams) + +[Divisions](#divisions) + +[Conferences](#conferences) + +[People](#people) + +[Game-IDs](#game-ids) + +[Schedule](#schedule) + +[Standings](#standings) + +[Standings Types](#standings-types) + +[Stats Types](#stats-types) + +[Team Stats](#team-stats) + +[Draft](#draft) + +[Prospects](#prospects) + +--- + +### Teams `GET https://statsapi.web.nhl.com/api/v1/teams` Returns a list of data about all teams including their id, venue details, division, conference and franchise information. @@ -82,7 +109,7 @@ including id value, name, jersey number and position details. }, ``` --- -### Divisions +### Divisions `GET https://statsapi.web.nhl.com/api/v1/divisions` Returns full list of divisions and associated data like which conference they belong to, id values and API links. Does not show inactive divisions @@ -105,7 +132,7 @@ single division. This can show old inactive divisions such as 13 Patrick. }, ``` --- -### Conferences +### Conferences `GET https://statsapi.web.nhl.com/api/v1/conferences` Returns conference details for all current NHL conferences. @@ -131,7 +158,7 @@ specific conference, also can look up id 7 for World Cup of Hockey. } ``` --- -### People +### People `GET https://statsapi.web.nhl.com/api/v1/people/ID` Gets details for a player, must specify the id value in order to return data. ```{ @@ -447,7 +474,7 @@ in-progress season and shows **projected** totals based on current onPaceRegular ``` --- -### Game +### Game `GET https://statsapi.web.nhl.com/api/v1/game/ID/feed/live` Returns all data about a specified game id including play data with on-ice coordinates and post-game details like first, second and third stars and any details about shootouts. The @@ -465,11 +492,11 @@ multiple types of media relating to the game including videos of shots, goals an Returns updates (like new play events, updated stats for boxscore, etc.) for the specified game ID since the given startTimecode. If the startTimecode param is missing, returns an empty array. -#### Game IDs +#### Game IDs The first 4 digits identify the season of the game (ie. 2017 for the 2017-2018 season). The next 2 digits give the type of game, where 01 = preseason, 02 = regular season, 03 = playoffs, 04 = all-star. The final 4 digits identify the specific game number. For regular season and preseason games, this ranges from 0001 to the number of games played. (1271 for seasons with 31 teams (2017 and onwards) and 1230 for seasons with 30 teams). 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). --- -### Schedule +### Schedule `GET https://statsapi.web.nhl.com/api/v1/schedule` Returns a list of data about the schedule for a specified date range. If no date range is specified, returns results from the current day. @@ -749,14 +776,14 @@ The first 4 digits identify the season of the game (ie. 2017 for the 2017-2018 s ``` --- -### Standings +### Standings `GET https://statsapi.web.nhl.com/api/v1/standings` Returns ordered standings data for each team broken up by divisions --- -### Standings Types +### Standings Types `GET https://statsapi.web.nhl.com/api/v1/standingsTypes` Returns all the standings types to be used in order do get a specific standings @@ -797,14 +824,14 @@ Returns the complete wildcard (with leaders) standings on 01/16/2018. --- -### Stats Types +### Stats Types `GET https://statsapi.web.nhl.com/api/v1/statTypes` Returns all the stats types to be used in order do get a specific kind of player stats --- -### Team Stats +### Team Stats `GET https://statsapi.web.nhl.com/api/v1/teams/5/stats` Returns current season stats and the current season rankings for a specific team @@ -900,7 +927,7 @@ Ex: --- -### Draft +### Draft `GET https://statsapi.web.nhl.com/api/v1/draft` Get round-by-round data for current year's NHL Entry Draft. @@ -931,7 +958,7 @@ Ex: }, ``` -### Prospects +### Prospects `GET https://statsapi.web.nhl.com/api/v1/draft/prospects` Get all NHL Entry Draft prospects.