Nice Time on Ice API Browser
This site includes a REST API. This API includes resources for seasons, games, teams, and links. Resources can be accessed using the appropriate identifiers. Query string parameters are available to filter the returned data.
The API uses Sinatra for routing and DataMapper for an ORM. Season, game, and team data was scraped from the NHL schedule page using a Python script with Beautiful Soup.
Click on a URL below to expand it and reveal the available input parameters. Click the button to send a GET HTTP Request to the API. The response JSON data will populate a text box below the button.
-
/api/seasons
Returns all available seasons as a JSON array
-
/api/seasons/{seasonID}
Returns the specified season as a JSON object
-
/api/seasons/{seasonID}/games
Returns all games in a season as a JSON array
-
/api/seasons/{seasonID}/games/{gameID}
Returns a specified game for the specified season as a JSON object
-
/api/seasons/{seasonID}/games/{gameID}/links
Returns links for the specified game as a JSON array
-
/api/teams
Returns all available available teams as a JSON array
-
/api/teams/{teamID}
Returns the specified team as a JSON object
-
/api/teams/{teamID}/seasons
Returns all seasons for a specified team as a JSON array
-
/api/teams/{teamID}/seasons/{seasonID}
Returns the specified season for a team as a JSON array
-
/api/teams/{teamID}/seasons/{seasonID}/links
Returns links for the specified season as a JSON array