Nhl.Api 3.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Nhl.Api --version 3.0.0
NuGet\Install-Package Nhl.Api -Version 3.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Nhl.Api" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nhl.Api --version 3.0.0
#r "nuget: Nhl.Api, 3.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Nhl.Api as a Cake Addin
#addin nuget:?package=Nhl.Api&version=3.0.0

// Install Nhl.Api as a Cake Tool
#tool nuget:?package=Nhl.Api&version=3.0.0

Build/Test Build/Test Code Analysis NuGet NuGet Downloads Issues License codecov

The Official Unofficial .NET NHL API 🏒

A modern C# .NET library for the NHL API providing various NHL information about players, games, teams, conferences, divisions, statistics and more

<div align="center"> <img src="https://user-images.githubusercontent.com/15982357/151871970-87419a98-69f1-47c3-9a82-f15c48e30c5f.png" alt="nhl-api-logo" height="350" /> </div>

Table of Contents 📚

  • Installation 💭 <a href="#installing-nhl-api">Installing Nhl.Api</a>
  • Implementation 🚀 <a href="#implementation">Implementation</a>
  • Documentation 📖 <a href="#documentation">Documentation</a>
  • Bugs 🐛 <a href="#bugs">Bugs</a>
  • Feature Backlog 📈 <a href="#feature-backlog">Feature Backlog</a>
  • Notable Mentions 🙏 <a href="#notable-mentions">Notable Mentions</a>
  • Contents 📋 <a href="#contents">Contents</a>

Installing Nhl.Api 💭 <a name="installing-nhl-api"></a>

You should install Nhl.Api with NuGet:

Install-Package Nhl.Api

Or via the .NET Core command line interface:

dotnet add package Nhl.Api

Either commands, from Package Manager Console or .NET Core CLI, will download and install all required dependencies.

Implementation 🚀 <a name="implementation"></a>

If you are using any type of a inversion of control or dependency injection library such as the built in library within .NET Core, Unity, or AutoFac. It's very simple to implement, or you can create an instance of the NhlApi class and use the API as you would like.

If you are using the built-in .NET Core dependency injection library, there is a NuGet package to easily add the Nhl.Api to your .NET application, <a href="https://github.com/Afischbacher/Nhl.Api.Extensions.Microsoft.DependencyInjection">Nhl.Api.Extensions.Microsoft.DependencyInjection</a> this extension, it's highly recommended.

Nhl.Api.Extensions.Microsoft.DependencyInjection

builder.Services.AddNhlApi();

.NET

builder.Services.AddSingleton<INhlApi, NhlApi>();

Unity

container.RegisterType<INhlApi, NhlApi>();

AutoFac

builder.RegisterType<NhlApi>().As<INhlApi>();

Simple Object Instantiation

var nhlApi = new NhlApi();

<br/> You can also use a subset of the Nhl.Api for specific data within the Nhl.Api, such as only game data, player data, statistics or league information.<br/> These individual API's make up the Nhl.Api in it's entirety. <br/> If you are using the <a href="https://github.com/Afischbacher/Nhl.Api.Extensions.Microsoft.DependencyInjection">Nhl.Api.Extensions.Microsoft.DependencyInjection</a> NuGet, these API's are included automatically within your .NET Core project.

Documentation 📖 <a name="documentation"></a>

Once registered using your dependency injection library of choice or just using the simple instance of the NHL API. Explore the API and see the all the possibilities.

Nhl Player Api

.NET

builder.Services.AddSingleton<INhlPlayerApi, NhlPlayerApi>(); <br/>

Unity

container.RegisterType<INhlPlayerApi, NhlPlayerApi>();<br/>

AutoFac

builder.RegisterType<NhlPlayerApi>().As<INhlPlayerApi>();<br/>

Simple Object Instantiation

var nhlPlayerApi = new NhlPlayerApi();<br/>

Nhl Game Api

.NET

builder.Services.AddSingleton<INhlGameApi, NhlGameApi>();<br/>

Unity

container.RegisterType<INhlGameApi, NhlGameApi>();<br/>

AutoFac

builder.RegisterType<NhlGameApi>().As<INhlGameApi>();<br/>

Simple Object Instantiation

var nhlGameApi = new NhlGameApi();<br/>

Nhl Statistics Api

.NET

builder.Services.AddSingleton<INhlStatisticsApi, NhlStatisticsApi>();<br/>

Unity

container.RegisterType<INhlStatisticsApi, NhlStatisticsApi>();<br/>

AutoFac

builder.RegisterType<NhlStatisticsApi>().As<INhlStatisticsApi>();<br/>

Simple Object Instantiation

var nhlStatisticsApi = new NhlStatisticsApi();<br/>

Nhl League Api

.NET

builder.Services.AddSingleton<INhlLeagueApi, NhlLeagueApi>();<br/>

Unity

container.RegisterType<INhlLeagueApi, NhlLeagueApi>();<br/>

AutoFac

builder.RegisterType<NhlLeagueApi>().As<INhlLeagueApi>();<br/>

Simple Object Instantiation

var nhlLeagueApi = new NhlLeagueApi();<br/>

Bugs 🐛 <a name="bugs"></a>

If you have any issues with the library or suggestions, please feel free to create an issue and it will be adressed as soon as possible 😃

Feature Backlog 📈 <a name="feature-backlog"></a>

Currently there are no features in the backlog, but if you have any suggestions, please feel free to create an issue and it will be adressed as soon as possible 😃

Notable Mentions 🙏 <a name="notable-mentions"></a>

Thank you to all the people in the hockey community, especially:

  • <a target="_blank" href="https://gitlab.com/dword4/nhlapi">Drew Hynes</a> for providing the leading guidance for the all of the NHL stat heads for having the new API documented for usage, without him this would not be possible.
  • <a target="_blank" href="https://www.zacharymaludzinski.com/">Zachary Maludzinski</a> to contributed to documenting the <a href="https://api-web.nhle.com/api/v1" target="_blank">NHL Web API</a>. Without all this help, and documentation one of this would be possible.
  • <a target="_blank" href="https://www.nhl.com/">NHL</a> for providing the API for the community to use to build awesome stuff.

Contents 📋 <a name="contents"></a>

<a name='T-Nhl-Api-NhlApi'></a>

NhlApi type

Namespace

Nhl.Api

Summary

The official unofficial Nhl.Api providing various NHL information about players, teams, conferences, divisions, statistics and more

<a name='M-Nhl-Api-NhlApi-#ctor'></a>

#ctor() constructor

Summary

The official unofficial Nhl.Api providing various NHL information about players, teams, conferences, divisions, statistics and more

Parameters

This constructor has no parameters.

<a name='M-Nhl-Api-NhlApi-Dispose'></a>

Dispose() method

Summary

Releases and disposes all unused or garbage collected resources for the Nhl.Api

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlApi-DisposeAsync'></a>

DisposeAsync() method

Summary

Releases and disposes all unused or garbage collected resources for the Nhl.Api asynchronously

Returns

The await-able result of the asynchronous operation

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlApi-GetAllRosterSeasonsByTeamAsync-System-Int32-'></a>

GetAllRosterSeasonsByTeamAsync(teamId) method

Summary

Returns every active season for an NHL team and their participation in the NHL

Returns

Returns every active season for an NHL team and their participation in the NHL

Parameters
Name Type Description
teamId System.Int32 The NHL team identifider, Example: 55 - Seattle Kraken

<a name='M-Nhl-Api-NhlApi-GetAllRosterSeasonsByTeamAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum-'></a>

GetAllRosterSeasonsByTeamAsync(team) method

Summary

Returns every active season for an NHL team and their participation in the NHL

Returns

Returns every active season for an NHL team and their participation in the NHL

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifider, see TeamEnum for more information, Example: 9 - Ottawa Senators

<a name='M-Nhl-Api-NhlApi-GetAllSeasonsAsync'></a>

GetAllSeasonsAsync() method

Summary

Returns all the NHL seasons for the NHL league

Returns

Returns all the NHL seasons for the NHL league

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlApi-GetCurrentTeamScoreboardAsync-System-Int32-'></a>

GetCurrentTeamScoreboardAsync(teamId) method

Summary

Returns the current NHL team scoreboard for the current date and time, with upcoming game scores and completed game scores

Returns

Returns the current NHL team scoreboard for the current date and time, with upcoming game scores and completed game scores

Parameters
Name Type Description
teamId System.Int32 The team identifier, Example: 10 - Toronto Maples Leafs

<a name='M-Nhl-Api-NhlApi-GetCurrentTeamScoreboardAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum-'></a>

GetCurrentTeamScoreboardAsync(team) method

Summary

Returns the current NHL team scoreboard for the current date and time, with upcoming game scores and completed game scores

Returns

Returns the current NHL team scoreboard for the current date and time, with upcoming game scores and completed game scores

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifier, 55 - Seattle Kraken, see TeamEnum for more information

<a name='M-Nhl-Api-NhlApi-GetGameCenterBoxScoreByGameIdAsync-System-Int32-'></a>

GetGameCenterBoxScoreByGameIdAsync(gameId) method

Summary

Returns the NHL game center box score for the specified game id, including the game information, game status, game venue and more

Returns

Returns the NHL game center box score for the specified game id, including the game information, game status, game venue and more

Parameters
Name Type Description
gameId System.Int32 The NHL game identfier, Example: 2023020204

<a name='M-Nhl-Api-NhlApi-GetGameCenterLandingByGameIdAsync-System-Int32-'></a>

GetGameCenterLandingByGameIdAsync(gameId) method

Summary

Returns the NHL game center feed for the specified game id, including the game information, game status, game venue and more

Returns

Returns the NHL game center feed for the specified game id, including the game information, game status, game venue and more

Parameters
Name Type Description
gameId System.Int32 The NHL game identfier, Example: 2023020204

<a name='M-Nhl-Api-NhlApi-GetGameCenterPlayByPlayByGameIdAsync-System-Int32-'></a>

GetGameCenterPlayByPlayByGameIdAsync(gameId) method

Summary

Returns the NHL game center feed for the specified game id, including the game information, game status, game venue and more

Returns

Returns the NHL game center feed for the specified game id, including the game information, game status, game venue and more

Parameters
Name Type Description
gameId System.Int32 The NHL game identfier, Example: 2023020204

<a name='M-Nhl-Api-NhlApi-GetGameMetadataByGameIdAsync-System-Int32-'></a>

GetGameMetadataByGameIdAsync(gameId) method

Summary

Returns the NHL game metadata for the specified game id, including the teams, season states and more

Returns

Returns the NHL game metadata for the specified game id, including the teams, season states and more

Parameters
Name Type Description
gameId System.Int32 The NHL game identfier, Example: 2023020204

<a name='M-Nhl-Api-NhlApi-GetGameScoreboardAsync'></a>

GetGameScoreboardAsync() method

Summary

Returns the live NHL game scoreboard, including the game information, game status, game venue and more

Returns

Returns the live NHL game scoreboard, including the game information, game status, game venue and more

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlApi-GetGameScoresByDateAsync-System-DateOnly-'></a>

GetGameScoresByDateAsync(date) method

Summary

Returns all of the NHL game scores for the specified date, including the game id, game date and time, game status, game venue and more

Returns

Returns all of the NHL game scores for the specified date, including the game id, game date and time, game status, game venue and more

Parameters
Name Type Description
date System.DateOnly The date and time, Example: 2020-10-02

<a name='M-Nhl-Api-NhlApi-GetGoalieInformationAsync-System-Int32-'></a>

GetGoalieInformationAsync(playerId) method

Summary

Returns the NHL goalie's profile information including their birth date, birth city, height, weight, position and much more

Returns

Returns the NHL player's profile information

Parameters
Name Type Description
playerId System.Int32 An NHL player id, Example: 8480313 - Logan Thompson

<a name='M-Nhl-Api-NhlApi-GetGoalieInformationAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum-'></a>

GetGoalieInformationAsync(player) method

Summary

Returns the NHL goalie's profile information including their birth date, birth city, height, weight, position and much more

Returns

Returns the NHL player's profile information

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum An NHL player id, Example: 8480313 - Logan Thompson, see PlayerEnum for more information on NHL players

<a name='M-Nhl-Api-NhlApi-GetGoalieSeasonGameLogsBySeasonAndGameTypeAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum,System-String,Nhl-Api-Enumerations-Game-GameType-'></a>

GetGoalieSeasonGameLogsBySeasonAndGameTypeAsync(player,seasonYear,gameType) method

Summary

The goalie season game log for an NHL goalie for a specific season and game type including stats such as saves, goals against, save percentage and more

Returns

The collection of player season game logs with each game played including statistics, all available season and more

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum An NHL player id, Example: 8478402 - Joseph Woll, see PlayerEnum for more information on NHL goalies
seasonYear System.String The season year parameter for determining the season for the season, SeasonYear for all available seasons
gameType Nhl.Api.Enumerations.Game.GameType The game type parameter for determining the game type for the type of player season logs

<a name='M-Nhl-Api-NhlApi-GetGoalieSeasonGameLogsBySeasonAndGameTypeAsync-System-Int32,System-String,Nhl-Api-Enumerations-Game-GameType-'></a>

GetGoalieSeasonGameLogsBySeasonAndGameTypeAsync(playerId,seasonYear,gameType) method

Summary

The goalie season game log for an NHL goalie for a specific season and game type including stats such as saves, goals against, save percentage and more

Returns

The collection of player season game logs with each game played including statistics, all available season and more

Parameters
Name Type Description
playerId System.Int32 An NHL player id, Example: 8479361 - Joseph Woll
seasonYear System.String The season year parameter for determining the season for the season, SeasonYear for all available seasons
gameType Nhl.Api.Enumerations.Game.GameType The game type parameter for determining the game type for the type of player season logs

<a name='M-Nhl-Api-NhlApi-GetGoalieStatsisticsLeadersAsync-Nhl-Api-Enumerations-Statistic-GoalieStatisticsType,Nhl-Api-Enumerations-Game-GameType,System-String,System-Int32-'></a>

GetGoalieStatsisticsLeadersAsync(goalieStatisticsType,seasonYear,gameType,limit) method

Summary

Returns the NHL goalie statistics leaders in the NHL for a specific goalie statistic type based on the game type and season year

Returns

Returns the current NHL player statistics leaders in the NHL for a specific player statistic type

Parameters
Name Type Description
goalieStatisticsType Nhl.Api.Enumerations.Statistic.GoalieStatisticsType A player statistics type, GoalieStatisticsType for all the types of statisitics
seasonYear Nhl.Api.Enumerations.Game.GameType The NHL season year to retrieve the player statistics leaders for, see SeasonYear for more information on valid season years
gameType System.String The NHL game type to retrieve the player statistics leaders for, see GameType for more information on valid game types
limit System.Int32 The limit to the number of results returned when reviewing the NHL player sta

<a name='M-Nhl-Api-NhlApi-GetLeagueGameWeekScheduleByDateAsync-System-DateOnly-'></a>

GetLeagueGameWeekScheduleByDateAsync(date) method

Summary

Returns the NHL team schedule for a specific date using the DateOnly

Returns

A result of the current NHL schedule by the specified date

Parameters
Name Type Description
date System.DateOnly A DateOnly for the specific date for the NHL schedule

<a name='M-Nhl-Api-NhlApi-GetLeagueMetadataInformationAsync-System-Collections-Generic-List{System-Int32},System-Collections-Generic-List{System-String}-'></a>

GetLeagueMetadataInformationAsync(playerIds,teamIds) method

Summary

Returns the metadata information about the NHL league including players, teams and season states

Returns

Returns the metadata information about the NHL league including players, teams and season states

Parameters
Name Type Description
playerIds System.Collections.Generic.List{System.Int32} A collection of NHL player identifiers, Example: [8478402,8478403]
teamIds System.Collections.Generic.List{System.String} A collection of NHL team identifiers, Example: [EDM, TOR]

<a name='M-Nhl-Api-NhlApi-GetLeagueMetadataInformationAsync-System-Collections-Generic-List{Nhl-Api-Models-Enumerations-Player-PlayerEnum},System-Collections-Generic-List{Nhl-Api-Models-Enumerations-Team-TeamEnum}-'></a>

GetLeagueMetadataInformationAsync(players,teams) method

Summary

Returns the metadata information about the NHL league including players, teams and season states

Returns

Returns the metadata information about the NHL league including players, teams and season states

Parameters
Name Type Description
players System.Collections.Generic.List{Nhl.Api.Models.Enumerations.Player.PlayerEnum} A collection of NHL player identifiers, Example: [8478402,8478403]
teams System.Collections.Generic.List{Nhl.Api.Models.Enumerations.Team.TeamEnum} A collection of NHL team identifiers, Example: [EDM, TOR]

<a name='M-Nhl-Api-NhlApi-GetLeagueScheduleCalendarByDateAsync-System-DateOnly-'></a>

GetLeagueScheduleCalendarByDateAsync(date) method

Summary

Returns the NHL league calendar schedule for the specified date and all applicable teams

Returns

Returns the NHL league calendar schedule for the specified date and all applicable teams

Parameters
Name Type Description
date System.DateOnly The date requested for the NHL league schedule, Example: 2024-02-10

<a name='M-Nhl-Api-NhlApi-GetLeagueStandingsByDateAsync-System-DateOnly-'></a>

GetLeagueStandingsByDateAsync(date) method

Summary

Returns the NHL league standings for the current NHL season by the specified date

Returns

Return the NHL league standings for the specified date with specific team information

Parameters
Name Type Description
date System.DateOnly The date requested for the NHL season standing

<a name='M-Nhl-Api-NhlApi-GetLeagueStandingsSeasonInformationAsync'></a>

GetLeagueStandingsSeasonInformationAsync() method

Summary

Returns the NHL league standings for the all NHL seasons with specific league season information

Returns

Returns the NHL league standings information for each saeson since 1917-1918

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlApi-GetLeagueWeekScheduleByDateAsync-System-DateOnly-'></a>

GetLeagueWeekScheduleByDateAsync(date) method

Summary

Returns the NHL league schedule for the specified date

Returns

Returns the NHL league schedule for the specified date

Parameters
Name Type Description
date System.DateOnly The date requested for the NHL league schedule, Example: 2024-02-10

<a name='M-Nhl-Api-NhlApi-GetLiveGameFeedPlayerShiftsAsync-System-Int32-'></a>

GetLiveGameFeedPlayerShiftsAsync(gameId) method

Summary

Returns all of the individual shifts of each NHL player for a specific NHL game id

Returns

A collection of all the NHL player game shifts for a specific game, including start and end times, on ice duration and more

Parameters
Name Type Description
gameId System.Int32 The game id, Example: 2021020087

<a name='M-Nhl-Api-NhlApi-GetPlayerHeadshotImageAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum,Nhl-Api-Models-Enumerations-Player-PlayerHeadshotImageSize-'></a>

GetPlayerHeadshotImageAsync(player,playerHeadshotImageSize) method

Summary

Returns the NHL player's head shot image by the selected size

Returns

A byte array content of an NHL player head shot image

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum An NHL player id, Example: 8478402 - Connor McDavid, see PlayerEnum for more information on NHL players
playerHeadshotImageSize Nhl.Api.Models.Enumerations.Player.PlayerHeadshotImageSize The size of the head shot image, see PlayerHeadshotImageSize for more information

<a name='M-Nhl-Api-NhlApi-GetPlayerHeadshotImageAsync-System-Int32,Nhl-Api-Models-Enumerations-Player-PlayerHeadshotImageSize-'></a>

GetPlayerHeadshotImageAsync(playerId,playerHeadshotImageSize) method

Summary

Returns the NHL player's head shot image by the selected size

Returns

A byte array content of an NHL player head shot image

Parameters
Name Type Description
playerId System.Int32 An NHL player id, Example: 8478402 - Connor McDavid
playerHeadshotImageSize Nhl.Api.Models.Enumerations.Player.PlayerHeadshotImageSize The size of the head shot image, see PlayerHeadshotImageSize for more information

<a name='M-Nhl-Api-NhlApi-GetPlayerInformationAsync-System-Int32-'></a>

GetPlayerInformationAsync(playerId) method

Summary

Returns the NHL player's profile information including their birth date, birth city, height, weight, position and much more

Returns

Returns the NHL player's profile information

Parameters
Name Type Description
playerId System.Int32 An NHL player id, Example: 8478402 - Connor McDavid

<a name='M-Nhl-Api-NhlApi-GetPlayerInformationAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum-'></a>

GetPlayerInformationAsync(player) method

Summary

Returns the NHL player's profile information including their birth date, birth city, height, weight, position and much more

Returns

Returns the NHL player's profile information

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum An NHL player id, Example: 8478402 - Connor McDavid, see PlayerEnum for more information on NHL players

<a name='M-Nhl-Api-NhlApi-GetPlayerSeasonGameLogsBySeasonAndGameTypeAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum,System-String,Nhl-Api-Enumerations-Game-GameType-'></a>

GetPlayerSeasonGameLogsBySeasonAndGameTypeAsync(player,seasonYear,gameType) method

Summary

The player season game log for an NHL player for a specific season and game type including stats such as goals, assists, points, plus/minus and more

Returns

The collection of player season game logs with each game played including statistics, all available seasons player, shifts and in game statistics

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum An NHL player id, Example: 8478402 - Connor McDavid, see PlayerEnum for more information on NHL players
seasonYear System.String The season year parameter for determining the season for the season, SeasonYear for all available seasons
gameType Nhl.Api.Enumerations.Game.GameType The game type parameter for determining the game type for the type of player season logs

<a name='M-Nhl-Api-NhlApi-GetPlayerSeasonGameLogsBySeasonAndGameTypeAsync-System-Int32,System-String,Nhl-Api-Enumerations-Game-GameType-'></a>

GetPlayerSeasonGameLogsBySeasonAndGameTypeAsync(playerId,seasonYear,gameType) method

Summary

The player season game log for an NHL player for a specific season and game type including stats such as goals, assists, points, plus/minus and more

Returns

The collection of player season game logs with each game played including statistics, all available seasons player, shifts and in game statistics

Parameters
Name Type Description
playerId System.Int32 An NHL player id, Example: 8478402 - Connor McDavid
seasonYear System.String The season year parameter for determining the season for the season, SeasonYear for all available seasons
gameType Nhl.Api.Enumerations.Game.GameType The game type parameter for determining the game type for the type of player season logs

<a name='M-Nhl-Api-NhlApi-GetPlayerSpotlightAsync'></a>

GetPlayerSpotlightAsync() method

Summary

Returns the NHL player's in the spotlight based on their recent performances

Returns

A collection of players and their information for players in the NHL spotlight

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlApi-GetSkaterStatsisticsLeadersAsync-Nhl-Api-Enumerations-Statistic-PlayerStatisticsType,Nhl-Api-Enumerations-Game-GameType,System-String,System-Int32-'></a>

GetSkaterStatsisticsLeadersAsync(playerStatisticsType,seasonYear,gameType,limit) method

Summary

Returns the current NHL player statistics leaders in the NHL for a specific player statistic type

Returns

Returns the current NHL player statistics leaders in the NHL for a specific player statistic type

Parameters
Name Type Description
playerStatisticsType Nhl.Api.Enumerations.Statistic.PlayerStatisticsType A player statistics type, PlayerStatisticsType for all the types of statisitics
seasonYear Nhl.Api.Enumerations.Game.GameType The NHL season year to retrieve the player statistics leaders for, see SeasonYear for more information on valid season years
gameType System.String The NHL game type to retrieve the player statistics leaders for, see GameType for more information on valid game types
limit System.Int32 The limit to the number of results returned when reviewing the NHL player sta

<a name='M-Nhl-Api-NhlApi-GetSourcesToWatchGamesAsync'></a>

GetSourcesToWatchGamesAsync() method

Summary

Returns the collection of countries and where you can watch NHL games with links and more

Returns

Returns the collection of countries and where you can watch NHL games with links and more

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlApi-GetTeamColorsAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum-'></a>

GetTeamColorsAsync(team) method

Summary

Returns the hexadecimal code for an NHL team's colors

Returns

An NHL team color scheme using hexadecimal codes

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifier, 55 - Seattle Kraken, see TeamEnum for more information

<a name='M-Nhl-Api-NhlApi-GetTeamColorsAsync-System-Int32-'></a>

GetTeamColorsAsync(teamId) method

Summary

Returns the hexadecimal code for an NHL team's colors

Returns

An NHL team color scheme using hexadecimal codes

Parameters
Name Type Description
teamId System.Int32 The NHL team identifier - Seattle Kraken: 55

<a name='M-Nhl-Api-NhlApi-GetTeamLogoAsync-System-Int32,Nhl-Api-Models-Team-TeamLogoType-'></a>

GetTeamLogoAsync(teamId,teamLogoType) method

Summary

Returns an the NHL team logo based a dark or light preference using the NHL team id

Returns

Returns NHL team logo information including a byte array, base64 encoded string and the Uri endpoint

Parameters
Name Type Description
teamId System.Int32 The NHL team identifier - Seattle Kraken: 55
teamLogoType Nhl.Api.Models.Team.TeamLogoType The NHL team logo image type, based on the background of light or dark

<a name='M-Nhl-Api-NhlApi-GetTeamLogoAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum,Nhl-Api-Models-Team-TeamLogoType-'></a>

GetTeamLogoAsync(team,teamLogoType) method

Summary

Returns an the NHL team logo based a dark or light preference using the NHL team enumeration

Returns

Returns NHL team logo information including a byte array, base64 encoded string and the Uri endpoint

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifier, 55 - Seattle Kraken, see TeamEnum for more information
teamLogoType Nhl.Api.Models.Team.TeamLogoType The NHL team logo image type, based on the background of light or dark

<a name='M-Nhl-Api-NhlApi-GetTeamProspectsByTeamAsync-System-Int32-'></a>

GetTeamProspectsByTeamAsync(teamId) method

Summary

Returns all the NHL prospects for the specified NHL team including forwards, defensemen and goalies

Returns

Returns all the NHL prospects for the specified NHL team including forwards, defensemen and goalies

Parameters
Name Type Description
teamId System.Int32 The NHL team identifider, Example: 55 - Seattle Kraken

<a name='M-Nhl-Api-NhlApi-GetTeamProspectsByTeamAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum-'></a>

GetTeamProspectsByTeamAsync(team) method

Summary

Returns all the NHL prospects for the specified NHL team including forwards, defensemen and goalies

Returns

Returns all the NHL prospects for the specified NHL team including forwards, defensemen and goalies

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifider, see TeamEnum for more information, Example: 10 - Toronto Maple Leafs

<a name='M-Nhl-Api-NhlApi-GetTeamRosterBySeasonYearAsync-System-Int32,System-String-'></a>

GetTeamRosterBySeasonYearAsync(teamId,seasonYear) method

Summary

Returns the NHL team roster for a specific team by the team identifier and season year

Returns

Returns the NHL team roster for a specific team by the team identifier and season year

Parameters
Name Type Description
teamId System.Int32 The NHL team identifider, Example: 55 - Seattle Kraken
seasonYear System.String The eight digit number format for the season, see SeasonYear for more information, Example: 20232024

<a name='M-Nhl-Api-NhlApi-GetTeamRosterBySeasonYearAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum,System-String-'></a>

GetTeamRosterBySeasonYearAsync(team,seasonYear) method

Summary

Returns the NHL team roster for a specific team by the team identifier and season year

Returns

Returns the NHL team roster for a specific team by the team identifier and season year

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifider, see TeamEnum for more information, Example: 8 - Montreal Canadiens
seasonYear System.String The eight digit number format for the season, see SeasonYear for more information, Example: 20232024

<a name='M-Nhl-Api-NhlApi-GetTeamScheduleBySeasonAsync-System-String,System-String-'></a>

GetTeamScheduleBySeasonAsync(teamAbbreviation,seasonYear) method

Summary

This returns the NHL team schedule for a specific season and a specific team by the team abbreviation and season

Returns

A collection of all games in the requested season for the requested NHL team

Parameters
Name Type Description
teamAbbreviation System.String The required team abbreviation for the NHL team, Example: WSH - Washington Capitals
seasonYear System.String The eight digit number format for the season, Example: 20232024

<a name='M-Nhl-Api-NhlApi-GetTeamSeasonScheduleBySeasonYearAsync-System-Int32,System-String-'></a>

GetTeamSeasonScheduleBySeasonYearAsync(teamId,seasonYear) method

Summary

Returns the NHL team schedule for the specified team and season year

Returns

Returns the NHL team schedule for the specified team and season year

Parameters
Name Type Description
teamId System.Int32 The team identifier, Example: 10 - Toronto Maples Leafs
seasonYear System.String The season year, see SeasonYear for more information, Example: 20202021

<a name='M-Nhl-Api-NhlApi-GetTeamSeasonScheduleBySeasonYearAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum,System-String-'></a>

GetTeamSeasonScheduleBySeasonYearAsync(team,seasonYear) method

Summary

Returns the NHL team schedule for the specified team and season year

Returns

Returns the NHL team schedule for the specified team and season year

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifier, see TeamEnum for more information, Example: 54 - Vegas Golden Knights
seasonYear System.String The season year, see SeasonYear for more information, Example: 20202021

<a name='M-Nhl-Api-NhlApi-GetTeamSeasonScheduleByYearAndMonthAsync-System-Int32,System-Int32,System-Int32-'></a>

GetTeamSeasonScheduleByYearAndMonthAsync(teamId,year,month) method

Summary

Returns the NHL team schedule for the specified team and season year and month

Returns

Returns the NHL team schedule for the specified team and season year and month

Parameters
Name Type Description
teamId System.Int32 The team identifier, Example: 10 - Toronto Maples Leafs
year System.Int32 The year, Example: 2020
month System.Int32 The month, Example: 10

<a name='M-Nhl-Api-NhlApi-GetTeamSeasonScheduleByYearAndMonthAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum,System-Int32,System-Int32-'></a>

GetTeamSeasonScheduleByYearAndMonthAsync(team,year,month) method

Summary

Returns the NHL team schedule for the specified team and season year and month

Returns

Returns the NHL team schedule for the specified team and season year and month

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifier, see TeamEnum for more information, Example: 54 - Vegas Golden Knights
year System.Int32 The year, Example: 2020
month System.Int32 The month, Example: 10

<a name='M-Nhl-Api-NhlApi-GetTeamStatisticsBySeasonAndGameTypeAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum,System-String,Nhl-Api-Enumerations-Game-GameType-'></a>

GetTeamStatisticsBySeasonAndGameTypeAsync(team,seasonYear,gameType) method

Summary

Returns the NHL team statistics for individual players for a specific NHL team statistic type based on the game type and season year

Returns

The NHL team season statistics for the specified season and game type

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The team enumeration identifier, specifying which the NHL team, TeamEnum for more information
seasonYear System.String The NHL season year to retrieve the team statistics, see SeasonYear for more information on valid season years
gameType Nhl.Api.Enumerations.Game.GameType The NHL game type to retrieve the team statistics, see GameType for more information on valid game types

<a name='M-Nhl-Api-NhlApi-GetTeamStatisticsBySeasonAndGameTypeAsync-System-Int32,System-String,Nhl-Api-Enumerations-Game-GameType-'></a>

GetTeamStatisticsBySeasonAndGameTypeAsync(teamId,seasonYear,gameType) method

Summary

Returns the NHL team statistics for individual players for a specific NHL team statistic type based on the game type and season year

Returns

The NHL team season statistics for the specified season and game type

Parameters
Name Type Description
teamId System.Int32 The NHL team identifier, specifying which the NHL team, Example: 55 - Seattle Kraken
seasonYear System.String The NHL season year to retrieve the team statistics, see SeasonYear for more information on valid season years
gameType Nhl.Api.Enumerations.Game.GameType The NHL game type to retrieve the team statistics, see GameType for more information on valid game types

<a name='M-Nhl-Api-NhlApi-GetTeamStatisticsBySeasonAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum-'></a>

GetTeamStatisticsBySeasonAsync(team) method

Summary

Returns all the NHL team valid game types for all valid NHL seasons for the selected NHL team

Returns

Returns all the NHL team valid game types for all valid NHL seasons for the selected NHL team

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The team enumeration identifier, specifying which the NHL team, TeamEnum for more information

<a name='M-Nhl-Api-NhlApi-GetTeamStatisticsBySeasonAsync-System-Int32-'></a>

GetTeamStatisticsBySeasonAsync(teamId) method

Summary

Returns all the NHL team valid game types for all valid NHL seasons for the selected NHL team

Returns

Returns all the NHL team valid game types for all valid NHL seasons for the selected NHL team

Parameters
Name Type Description
teamId System.Int32 The NHL team identifier, specifying which the NHL team, Example: 55 - Seattle Kraken

<a name='M-Nhl-Api-NhlApi-GetTeamWeekScheduleByDateAsync-System-String,System-DateOnly-'></a>

GetTeamWeekScheduleByDateAsync(teamAbbreviation,date) method

Summary

This returns the NHL team schedule for a specific season and a specific team by the team abbreviation and season

Returns

A collection of all games in the requested season for the requested NHL team

Parameters
Name Type Description
teamAbbreviation System.String The required team abbreviation for the NHL team, Example: WSH - Washington Capitals
date System.DateOnly The date in which the request schedule for the team and for the week is request for

<a name='M-Nhl-Api-NhlApi-GetTeamWeekScheduleByDateAsync-System-Int32,System-DateOnly-'></a>

GetTeamWeekScheduleByDateAsync(teamId,date) method

Summary

Returns the NHL team schedule for the specified team and the specified date and time

Returns

Returns the NHL team schedule for the specified team and the specified date and time

Parameters
Name Type Description
teamId System.Int32 The team identifier, Example: 10 - Toronto Maples Leafs
date System.DateOnly The date and time, Example: 2020-10-02

<a name='M-Nhl-Api-NhlApi-GetTeamWeekScheduleByDateAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum,System-DateOnly-'></a>

GetTeamWeekScheduleByDateAsync(team,date) method

Summary

Returns the NHL team schedule for the specified team and the specified date and time

Returns

Returns the NHL team schedule for the specified team and the specified date and time

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifier, see TeamEnum for more information, Example: 54 - Vegas Golden Knights
date System.DateOnly The date and time, Example: 2020-10-02

<a name='M-Nhl-Api-NhlApi-GetTvScheduleBroadcastByDateAsync-System-DateOnly-'></a>

GetTvScheduleBroadcastByDateAsync(date) method

Summary

Returns the NHL TV broadcasts for the specified date with information about the broadcasts

Returns

Returns the NHL TV broadcasts for the specified date with information about the broadcasts

Parameters
Name Type Description
date System.DateOnly The date requested for the NHL TV broadcasts, Example: 2024-02-10

<a name='M-Nhl-Api-NhlApi-IsLeagueActiveAsync'></a>

IsLeagueActiveAsync() method

Summary

Determines if the NHL league is active or inactive based on the current date and time

Returns

Returns true or false based on the current time and date

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlApi-IsPlayoffSeasonActiveAsync'></a>

IsPlayoffSeasonActiveAsync() method

Summary

Returns the true or false if the NHL playoff season is active or inactive

Returns

Returns a result of true or false if the NHL playoff season is active

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlApi-IsPreSeasonActiveAsync'></a>

IsPreSeasonActiveAsync() method

Summary

Returns the true or false if the NHL playoff pre season is active or inactive

Returns

Returns a result of true or false if the NHL pre-season is active

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlApi-IsRegularSeasonActiveAsync'></a>

IsRegularSeasonActiveAsync() method

Summary

Returns the true or false if the NHL regular season is active or inactive

Returns

Returns a result of true or false if the NHL regular season is active

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlApi-SearchAllActivePlayersAsync-System-String,System-Int32-'></a>

SearchAllActivePlayersAsync(query,limit) method

Summary

Returns only active NHL players based on the search query provided

Returns

A collection of all NHL players based on the search query provided

Parameters
Name Type Description
query System.String A search term to find NHL players, Example: "Owen Power" or "Carter Hart" or "Nathan MacKinnon"
limit System.Int32 A parameter to limit the number of search results returned when searching for a player

<a name='M-Nhl-Api-NhlApi-SearchAllPlayersAsync-System-String,System-Int32-'></a>

SearchAllPlayersAsync(query,limit) method

Summary

Returns any active or inactive NHL players based on the search query provided

Returns

A collection of all NHL players based on the search query provided

Parameters
Name Type Description
query System.String A search term to find NHL players, Example: "Jack Adams" or "Wayne Gretzky" or "Mats Sundin"
limit System.Int32 A parameter to limit the number of search results returned when searching for a player

<a name='T-Nhl-Api-NhlGameApi'></a>

NhlGameApi type

Namespace

Nhl.Api

Summary

The official unofficial NHL Game API providing various NHL information game information, game schedules, live game feeds and more

<a name='M-Nhl-Api-NhlGameApi-#ctor'></a>

#ctor() constructor

Summary

The official unofficial NHL Game API providing various NHL information game information, game schedules, live game feeds and more

Parameters

This constructor has no parameters.

<a name='M-Nhl-Api-NhlGameApi-GetCurrentTeamScoreboardAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum-'></a>

GetCurrentTeamScoreboardAsync(team) method

Summary

Returns the current NHL team scoreboard for the current date and time, with upcoming game scores and completed game scores

Returns

Returns the current NHL team scoreboard for the current date and time, with upcoming game scores and completed game scores

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifier, 55 - Seattle Kraken, see TeamEnum for more information

<a name='M-Nhl-Api-NhlGameApi-GetCurrentTeamScoreboardAsync-System-Int32-'></a>

GetCurrentTeamScoreboardAsync(teamId) method

Summary

Returns the current NHL team scoreboard for the current date and time, with upcoming game scores and completed game scores

Returns

Returns the current NHL team scoreboard for the current date and time, with upcoming game scores and completed game scores

Parameters
Name Type Description
teamId System.Int32 The team identifier, Example: 10 - Toronto Maples Leafs

<a name='M-Nhl-Api-NhlGameApi-GetGameCenterBoxScoreByGameIdAsync-System-Int32-'></a>

GetGameCenterBoxScoreByGameIdAsync(gameId) method

Summary

Returns the NHL game center box score for the specified game id, including the game information, game status, game venue and more

Returns

Returns the NHL game center box score for the specified game id, including the game information, game status, game venue and more

Parameters
Name Type Description
gameId System.Int32 The NHL game identfier, Example: 2023020204

<a name='M-Nhl-Api-NhlGameApi-GetGameCenterLandingByGameIdAsync-System-Int32-'></a>

GetGameCenterLandingByGameIdAsync(gameId) method

Summary

Returns the NHL game center feed for the specified game id, including the game information, game status, game venue and more

Returns

Returns the NHL game center feed for the specified game id, including the game information, game status, game venue and more

Parameters
Name Type Description
gameId System.Int32 The NHL game identfier, Example: 2023020204

<a name='M-Nhl-Api-NhlGameApi-GetGameCenterPlayByPlayByGameIdAsync-System-Int32-'></a>

GetGameCenterPlayByPlayByGameIdAsync(gameId) method

Summary

Returns the NHL game center feed for the specified game id, including the game information, game status, game venue and more

Returns

Returns the NHL game center feed for the specified game id, including the game information, game status, game venue and more

Parameters
Name Type Description
gameId System.Int32 The NHL game identfier, Example: 2023020204

<a name='M-Nhl-Api-NhlGameApi-GetGameMetadataByGameIdAsync-System-Int32-'></a>

GetGameMetadataByGameIdAsync(gameId) method

Summary

Returns the NHL game metadata for the specified game id, including the teams, season states and more

Returns

Returns the NHL game metadata for the specified game id, including the teams, season states and more

Parameters
Name Type Description
gameId System.Int32 The NHL game identfier, Example: 2023020204

<a name='M-Nhl-Api-NhlGameApi-GetGameScoreboardAsync'></a>

GetGameScoreboardAsync() method

Summary

Returns the live NHL game scoreboard, including the game information, game status, game venue and more

Returns

Returns the live NHL game scoreboard, including the game information, game status, game venue and more

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlGameApi-GetGameScoresByDateAsync-System-DateOnly-'></a>

GetGameScoresByDateAsync(date) method

Summary

Returns all of the NHL game scores for the specified date, including the game id, game date and time, game status, game venue and more

Returns

Returns all of the NHL game scores for the specified date, including the game id, game date and time, game status, game venue and more

Parameters
Name Type Description
date System.DateOnly The date for the requested game scores, Example: 2020-10-02

<a name='M-Nhl-Api-NhlGameApi-GetLiveGameFeedPlayerShiftsAsync-System-Int32-'></a>

GetLiveGameFeedPlayerShiftsAsync(gameId) method

Summary

Returns all of the individual shifts of each NHL player for a specific NHL game id

Returns

A collection of all the NHL player game shifts for a specific game, including start and end times, on ice duration and more

Parameters
Name Type Description
gameId System.Int32 The game id, Example: 2021020087

<a name='M-Nhl-Api-NhlGameApi-GetTeamSeasonScheduleBySeasonYearAsync-System-Int32,System-String-'></a>

GetTeamSeasonScheduleBySeasonYearAsync(teamId,seasonYear) method

Summary

Returns the NHL team schedule for the specified team and season year

Returns

Returns the NHL team schedule for the specified team and season year

Parameters
Name Type Description
teamId System.Int32 The team identifier, Example: 10 - Toronto Maples Leafs
seasonYear System.String The season year, see SeasonYear for more information, Example: 20202021

<a name='M-Nhl-Api-NhlGameApi-GetTeamSeasonScheduleBySeasonYearAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum,System-String-'></a>

GetTeamSeasonScheduleBySeasonYearAsync(team,seasonYear) method

Summary

Returns the NHL team schedule for the specified team and season year

Returns

Returns the NHL team schedule for the specified team and season year

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifier, see TeamEnum for more information, Example: 54 - Vegas Golden Knights
seasonYear System.String The season year, see SeasonYear for more information, Example: 20202021

<a name='M-Nhl-Api-NhlGameApi-GetTeamSeasonScheduleByYearAndMonthAsync-System-Int32,System-Int32,System-Int32-'></a>

GetTeamSeasonScheduleByYearAndMonthAsync(teamId,year,month) method

Summary

Returns the NHL team schedule for the specified team and season year and month

Returns

Returns the NHL team schedule for the specified team and season year and month

Parameters
Name Type Description
teamId System.Int32 The team identifier, Example: 10 - Toronto Maples Leafs
year System.Int32 The year, Example: 2020
month System.Int32 The month, Example: 10

<a name='M-Nhl-Api-NhlGameApi-GetTeamSeasonScheduleByYearAndMonthAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum,System-Int32,System-Int32-'></a>

GetTeamSeasonScheduleByYearAndMonthAsync(team,year,month) method

Summary

Returns the NHL team schedule for the specified team and season year and month

Returns

Returns the NHL team schedule for the specified team and season year and month

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifier, see TeamEnum for more information, Example: 54 - Vegas Golden Knights
year System.Int32 The year, Example: 2020
month System.Int32 The month, Example: 10

<a name='M-Nhl-Api-NhlGameApi-GetTeamWeekScheduleByDateAsync-System-Int32,System-DateOnly-'></a>

GetTeamWeekScheduleByDateAsync(teamId,date) method

Summary

Returns the NHL team schedule for the specified team and the specified date and time

Returns

Returns the NHL team schedule for the specified team and the specified date and time

Parameters
Name Type Description
teamId System.Int32 The team identifier, Example: 10 - Toronto Maples Leafs
date System.DateOnly The date and time, Example: 2020-10-02

<a name='M-Nhl-Api-NhlGameApi-GetTeamWeekScheduleByDateAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum,System-DateOnly-'></a>

GetTeamWeekScheduleByDateAsync(team,date) method

Summary

Returns the NHL team schedule for the specified team and the specified date and time

Returns

Returns the NHL team schedule for the specified team and the specified date and time

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifier, see TeamEnum for more information, Example: 54 - Vegas Golden Knights
date System.DateOnly The date and time, Example: 2020-10-02

<a name='T-Nhl-Api-NhlLeagueApi'></a>

NhlLeagueApi type

Namespace

Nhl.Api

Summary

The official unofficial NHL League API providing various NHL league information including teams, franchises, standings, awards and more

<a name='M-Nhl-Api-NhlLeagueApi-#ctor'></a>

#ctor() constructor

Summary

The official unofficial NHL League API providing various NHL league information including teams, franchises, standings, awards and more

Parameters

This constructor has no parameters.

<a name='M-Nhl-Api-NhlLeagueApi-GetAllRosterSeasonsByTeamAsync-System-Int32-'></a>

GetAllRosterSeasonsByTeamAsync(teamId) method

Summary

Returns every active season for an NHL team and their participation in the NHL

Returns

Returns every active season for an NHL team and their participation in the NHL

Parameters
Name Type Description
teamId System.Int32 The NHL team identifider, Example: 55 - Seattle Kraken

<a name='M-Nhl-Api-NhlLeagueApi-GetAllRosterSeasonsByTeamAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum-'></a>

GetAllRosterSeasonsByTeamAsync(team) method

Summary

Returns every active season for an NHL team and their participation in the NHL

Returns

Returns every active season for an NHL team and their participation in the NHL

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifider, see TeamEnum for more information, Example: 9 - Ottawa Senators

<a name='M-Nhl-Api-NhlLeagueApi-GetAllSeasonsAsync'></a>

GetAllSeasonsAsync() method

Summary

Returns all the NHL seasons for the NHL league

Returns

Returns all the NHL seasons for the NHL league

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlLeagueApi-GetLeagueGameWeekScheduleByDateAsync-System-DateOnly-'></a>

GetLeagueGameWeekScheduleByDateAsync(date) method

Summary

Returns the NHL team schedule for a specific date using the DateOnly

Returns

A result of the current NHL schedule by the specified date

Parameters
Name Type Description
date System.DateOnly A DateOnly for the specific date for the NHL schedule

<a name='M-Nhl-Api-NhlLeagueApi-GetLeagueMetadataInformationAsync-System-Collections-Generic-List{System-Int32},System-Collections-Generic-List{System-String}-'></a>

GetLeagueMetadataInformationAsync(playerIds,teamIds) method

Summary

Returns the metadata information about the NHL league including players, teams and season states

Returns

Returns the metadata information about the NHL league including players, teams and season states

Parameters
Name Type Description
playerIds System.Collections.Generic.List{System.Int32} A collection of NHL player identifiers, Example: [8478402,8478403]
teamIds System.Collections.Generic.List{System.String} A collection of NHL team identifiers, Example: [EDM, TOR]

<a name='M-Nhl-Api-NhlLeagueApi-GetLeagueMetadataInformationAsync-System-Collections-Generic-List{Nhl-Api-Models-Enumerations-Player-PlayerEnum},System-Collections-Generic-List{Nhl-Api-Models-Enumerations-Team-TeamEnum}-'></a>

GetLeagueMetadataInformationAsync(players,teams) method

Summary

Returns the metadata information about the NHL league including players, teams and season states

Returns

Returns the metadata information about the NHL league including players, teams and season states

Parameters
Name Type Description
players System.Collections.Generic.List{Nhl.Api.Models.Enumerations.Player.PlayerEnum} A collection of NHL player identifiers, Example: [8478402,8478403]
teams System.Collections.Generic.List{Nhl.Api.Models.Enumerations.Team.TeamEnum} A collection of NHL team identifiers, Example: [EDM, TOR]

<a name='M-Nhl-Api-NhlLeagueApi-GetLeagueScheduleCalendarByDateAsync-System-DateOnly-'></a>

GetLeagueScheduleCalendarByDateAsync(date) method

Summary

Returns the NHL league calendar schedule for the specified date and all applicable teams

Returns

Returns the NHL league calendar schedule for the specified date and all applicable teams

Parameters
Name Type Description
date System.DateOnly The date requested for the NHL league schedule, Example: 2024-02-10

<a name='M-Nhl-Api-NhlLeagueApi-GetLeagueStandingsByDateAsync-System-DateOnly-'></a>

GetLeagueStandingsByDateAsync(date) method

Summary

Returns the NHL league standings for the current NHL season by the specified date

Returns

Return the NHL league standings for the specified date with specific team information

Parameters
Name Type Description
date System.DateOnly The date requested for the NHL season standing

<a name='M-Nhl-Api-NhlLeagueApi-GetLeagueStandingsSeasonInformationAsync'></a>

GetLeagueStandingsSeasonInformationAsync() method

Summary

Returns the NHL league standings for the all NHL seasons with specific league season information

Returns

Returns the NHL league standings information for each saeson since 1917-1918

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlLeagueApi-GetLeagueWeekScheduleByDateAsync-System-DateOnly-'></a>

GetLeagueWeekScheduleByDateAsync(date) method

Summary

Returns the NHL league schedule for the specified date

Returns

Returns the NHL league schedule for the specified date

Parameters
Name Type Description
date System.DateOnly The date requested for the NHL league schedule, Example: 2024-02-10

<a name='M-Nhl-Api-NhlLeagueApi-GetSourcesToWatchGamesAsync'></a>

GetSourcesToWatchGamesAsync() method

Summary

Returns the collection of countries and where you can watch NHL games with links and more

Returns

Returns the collection of countries and where you can watch NHL games with links and more

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlLeagueApi-GetTeamColorsAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum-'></a>

GetTeamColorsAsync(team) method

Summary

Returns the hexadecimal code for an NHL team's colors

Returns

An NHL team color scheme using hexadecimal codes

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifier, 55 - Seattle Kraken, see TeamEnum for more information

<a name='M-Nhl-Api-NhlLeagueApi-GetTeamColorsAsync-System-Int32-'></a>

GetTeamColorsAsync(teamId) method

Summary

Returns the hexadecimal code for an NHL team's colors

Returns

An NHL team color scheme using hexadecimal codes

Parameters
Name Type Description
teamId System.Int32 The NHL team identifier - Seattle Kraken: 55

<a name='M-Nhl-Api-NhlLeagueApi-GetTeamLogoAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum,Nhl-Api-Models-Team-TeamLogoType-'></a>

GetTeamLogoAsync(team,teamLogoType) method

Summary

Returns an the NHL team logo based a dark or light preference using the NHL team enumeration

Returns

Returns NHL team logo information including a byte array, base64 encoded string and the Uri endpoint

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifier, 55 - Seattle Kraken, see TeamEnum for more information
teamLogoType Nhl.Api.Models.Team.TeamLogoType The NHL team logo image type, based on the background of light or dark

<a name='M-Nhl-Api-NhlLeagueApi-GetTeamLogoAsync-System-Int32,Nhl-Api-Models-Team-TeamLogoType-'></a>

GetTeamLogoAsync(teamId,teamLogoType) method

Summary

Returns an the NHL team logo based a dark or light preference using the NHL team id

Returns

Returns NHL team logo information including a byte array, base64 encoded string and the Uri endpoint

Parameters
Name Type Description
teamId System.Int32 The NHL team identifier - Seattle Kraken: 55
teamLogoType Nhl.Api.Models.Team.TeamLogoType The NHL team logo image type, based on the background of light or dark

<a name='M-Nhl-Api-NhlLeagueApi-GetTeamProspectsByTeamAsync-System-Int32-'></a>

GetTeamProspectsByTeamAsync(teamId) method

Summary

Returns all the NHL prospects for the specified NHL team including forwards, defensemen and goalies

Returns

Returns all the NHL prospects for the specified NHL team including forwards, defensemen and goalies

Parameters
Name Type Description
teamId System.Int32 The NHL team identifider, Example: 55 - Seattle Kraken

<a name='M-Nhl-Api-NhlLeagueApi-GetTeamProspectsByTeamAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum-'></a>

GetTeamProspectsByTeamAsync(team) method

Summary

Returns all the NHL prospects for the specified NHL team including forwards, defensemen and goalies

Returns

Returns all the NHL prospects for the specified NHL team including forwards, defensemen and goalies

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifider, see TeamEnum for more information, Example: 10 - Toronto Maple Leafs

<a name='M-Nhl-Api-NhlLeagueApi-GetTeamRosterBySeasonYearAsync-System-Int32,System-String-'></a>

GetTeamRosterBySeasonYearAsync(teamId,seasonYear) method

Summary

Returns the NHL team roster for a specific team by the team identifier and season year

Returns

Returns the NHL team roster for a specific team by the team identifier and season year

Parameters
Name Type Description
teamId System.Int32 The NHL team identifider, Example: 55 - Seattle Kraken
seasonYear System.String The eight digit number format for the season, see SeasonYear for more information, Example: 20232024

<a name='M-Nhl-Api-NhlLeagueApi-GetTeamRosterBySeasonYearAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum,System-String-'></a>

GetTeamRosterBySeasonYearAsync(team,seasonYear) method

Summary

Returns the NHL team roster for a specific team by the team and season year

Returns

Returns the NHL team roster for a specific team by the team identifier and season year

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team identifider, see TeamEnum for more information, Example: 9 - Ottawa Senators
seasonYear System.String The eight digit number format for the season, see SeasonYear for more information, Example: 20232024

<a name='M-Nhl-Api-NhlLeagueApi-GetTeamScheduleBySeasonAsync-System-String,System-String-'></a>

GetTeamScheduleBySeasonAsync(teamAbbreviation,seasonYear) method

Summary

This returns the NHL team schedule for a specific season and a specific team by the team abbreviation and season

Returns

A collection of all games in the requested season for the requested NHL team

Parameters
Name Type Description
teamAbbreviation System.String The required team abbreviation for the NHL team, Example: WSH - Washington
seasonYear System.String The eight digit number format for the season, Example: 20232024

<a name='M-Nhl-Api-NhlLeagueApi-GetTeamWeekScheduleByDateAsync-System-String,System-DateOnly-'></a>

GetTeamWeekScheduleByDateAsync(teamAbbreviation,date) method

Summary

This returns the NHL team schedule for a specific season and a specific team by the team abbreviation and season

Returns

A collection of all games in the requested season for the requested NHL team

Parameters
Name Type Description
teamAbbreviation System.String The required team abbreviation for the NHL team, Example: WSH - Washington
date System.DateOnly The date in which the request schedule for the team and for the week is request for

<a name='M-Nhl-Api-NhlLeagueApi-GetTvScheduleBroadcastByDateAsync-System-DateOnly-'></a>

GetTvScheduleBroadcastByDateAsync(date) method

Summary

Returns the NHL TV broadcasts for the specified date with information about the broadcasts

Returns

Returns the NHL TV broadcasts for the specified date with information about the broadcasts

Parameters
Name Type Description
date System.DateOnly The date requested for the NHL TV broadcasts, Example: 2024-02-10

<a name='M-Nhl-Api-NhlLeagueApi-IsLeagueActiveAsync'></a>

IsLeagueActiveAsync() method

Summary

Determines if the NHL league is active or inactive based on the current date and time

Returns

Returns true or false based on the current time and date

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlLeagueApi-IsPlayoffSeasonActiveAsync'></a>

IsPlayoffSeasonActiveAsync() method

Summary

Returns the true or false if the NHL playoff season is active

Returns

Returns a result of true or false if the NHL playoff season is active

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlLeagueApi-IsPreSeasonActiveAsync'></a>

IsPreSeasonActiveAsync() method

Summary

Returns the true or false if the NHL playoff pre season is active or inactive

Returns

Returns a result of true or false if the NHL pre-season is active

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlLeagueApi-IsRegularSeasonActiveAsync'></a>

IsRegularSeasonActiveAsync() method

Summary

Returns the true or false if the NHL regular season is active or inactive

Returns

Returns a result of true or false if the NHL regular season is active

Parameters

This method has no parameters.

<a name='T-Nhl-Api-NhlPlayerApi'></a>

NhlPlayerApi type

Namespace

Nhl.Api

Summary

The official unofficial NHL Player API providing various NHL information about players, draft prospects, rosters and more

<a name='M-Nhl-Api-NhlPlayerApi-#ctor'></a>

#ctor() constructor

Summary

The official unofficial NHL Player API providing various NHL information about players, draft prospects, rosters and more

Parameters

This constructor has no parameters.

<a name='M-Nhl-Api-NhlPlayerApi-Dispose'></a>

Dispose() method

Summary

Disposes and releases all unneeded resources for the NHL player api

Parameters

This method has no parameters.

Exceptions
Name Description
System.NotImplementedException

<a name='M-Nhl-Api-NhlPlayerApi-GetGoalieInformationAsync-System-Int32-'></a>

GetGoalieInformationAsync(playerId) method

Summary

Returns the NHL goalie's profile information including their birth date, birth city, height, weight, position and much more

Returns

Returns the NHL player's profile information

Parameters
Name Type Description
playerId System.Int32 An NHL player id, Example: 8480313 - Logan Thompson

<a name='M-Nhl-Api-NhlPlayerApi-GetGoalieInformationAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum-'></a>

GetGoalieInformationAsync(player) method

Summary

Returns the NHL goalie's profile information including their birth date, birth city, height, weight, position and much more

Returns

Returns the NHL player's profile information

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum An NHL player id, Example: 8480313 - Logan Thompson, see PlayerEnum for more information on NHL players

<a name='M-Nhl-Api-NhlPlayerApi-GetGoalieSeasonGameLogsBySeasonAndGameTypeAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum,System-String,Nhl-Api-Enumerations-Game-GameType-'></a>

GetGoalieSeasonGameLogsBySeasonAndGameTypeAsync(player,seasonYear,gameType) method

Summary

The player season game log for an NHL player for a specific season and game type including stats such as goals, assists, points, plus/minus and more

Returns

The collection of player season game logs with each game played including statistics, all available season and more

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum An NHL player id, Example: 8478402 - Connor McDavid, see PlayerEnum for more information on NHL players
seasonYear System.String The season year parameter for determining the season for the season, SeasonYear for all available seasons
gameType Nhl.Api.Enumerations.Game.GameType The game type parameter for determining the game type for the type of player season logs

<a name='M-Nhl-Api-NhlPlayerApi-GetGoalieSeasonGameLogsBySeasonAndGameTypeAsync-System-Int32,System-String,Nhl-Api-Enumerations-Game-GameType-'></a>

GetGoalieSeasonGameLogsBySeasonAndGameTypeAsync(playerId,seasonYear,gameType) method

Summary

The player season game log for an NHL player for a specific season and game type including stats such as goals, assists, points, plus/minus and more

Returns

The collection of player season game logs with each game played including statistics, all available season and more

Parameters
Name Type Description
playerId System.Int32 An NHL player id, Example: 8478402 - Connor McDavid
seasonYear System.String The season year parameter for determining the season for the season, SeasonYear for all available seasons
gameType Nhl.Api.Enumerations.Game.GameType The game type parameter for determining the game type for the type of player season logs

<a name='M-Nhl-Api-NhlPlayerApi-GetPlayerHeadshotImageAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum,Nhl-Api-Models-Enumerations-Player-PlayerHeadshotImageSize-'></a>

GetPlayerHeadshotImageAsync(player,playerHeadshotImageSize) method

Summary

Returns the NHL player's head shot image by the selected size

Returns

A URI endpoint with the image of an NHL player head shot image

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum An NHL player id, Example: 8478402 - Connor McDavid, see PlayerEnum for more information on NHL players
playerHeadshotImageSize Nhl.Api.Models.Enumerations.Player.PlayerHeadshotImageSize The size of the head shot image, see PlayerHeadshotImageSize for more information

<a name='M-Nhl-Api-NhlPlayerApi-GetPlayerHeadshotImageAsync-System-Int32,Nhl-Api-Models-Enumerations-Player-PlayerHeadshotImageSize-'></a>

GetPlayerHeadshotImageAsync(playerId,playerHeadshotImageSize) method

Summary

Returns the NHL player's head shot image by the selected size

Returns

A URI endpoint with the image of an NHL player head shot image

Parameters
Name Type Description
playerId System.Int32 An NHL player id, Example: 8478402 - Connor McDavid
playerHeadshotImageSize Nhl.Api.Models.Enumerations.Player.PlayerHeadshotImageSize The size of the head shot image, see PlayerHeadshotImageSize for more information

<a name='M-Nhl-Api-NhlPlayerApi-GetPlayerInformationAsync-System-Int32-'></a>

GetPlayerInformationAsync(playerId) method

Summary

Returns the NHL player's profile information including their birth date, birth city, height, weight, position and much more

Returns

Returns the NHL player's profile information

Parameters
Name Type Description
playerId System.Int32 An NHL player id, Example: 8478402 - Connor McDavid

<a name='M-Nhl-Api-NhlPlayerApi-GetPlayerInformationAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum-'></a>

GetPlayerInformationAsync(player) method

Summary

Returns the NHL player's profile information including their birth date, birth city, height, weight, position and much more

Returns

Returns the NHL player's profile information

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum An NHL player id, Example: 8478402 - Connor McDavid, see PlayerEnum for more information on NHL players

<a name='M-Nhl-Api-NhlPlayerApi-GetPlayerSeasonGameLogsBySeasonAndGameTypeAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum,System-String,Nhl-Api-Enumerations-Game-GameType-'></a>

GetPlayerSeasonGameLogsBySeasonAndGameTypeAsync(player,seasonYear,gameType) method

Summary

The player season game log for an NHL player for a specific season and game type including stats such as goals, assists, points, plus/minus and more

Returns

The collection of player season game logs with each game played including statistics, all available season and more

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum An NHL player id, Example: 8478402 - Connor McDavid, see PlayerEnum for more information on NHL players
seasonYear System.String The season year parameter for determining the season for the season, SeasonYear for all available seasons
gameType Nhl.Api.Enumerations.Game.GameType The game type parameter for determining the game type for the type of player season logs

<a name='M-Nhl-Api-NhlPlayerApi-GetPlayerSeasonGameLogsBySeasonAndGameTypeAsync-System-Int32,System-String,Nhl-Api-Enumerations-Game-GameType-'></a>

GetPlayerSeasonGameLogsBySeasonAndGameTypeAsync(playerId,seasonYear,gameType) method

Summary

The player season game log for an NHL player for a specific season and game type including stats such as goals, assists, points, plus/minus and more

Returns

The collection of player season game logs with each game played including statistics, all available season and more

Parameters
Name Type Description
playerId System.Int32 An NHL player id, Example: 8478402 - Connor McDavid
seasonYear System.String The season year parameter for determining the season for the season, SeasonYear for all available seasons
gameType Nhl.Api.Enumerations.Game.GameType The game type parameter for determining the game type for the type of player season logs

<a name='M-Nhl-Api-NhlPlayerApi-GetPlayerSpotlightAsync'></a>

GetPlayerSpotlightAsync() method

Summary

Returns the NHL player's in the spotlight based on their recent performances

Returns

A collection of players and their information for players in the NHL spotlight

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlPlayerApi-SearchAllActivePlayersAsync-System-String,System-Int32-'></a>

SearchAllActivePlayersAsync(query,limit) method

Summary

Returns only active NHL players based on the search query provided

Returns

A collection of all NHL players based on the search query provided

Parameters
Name Type Description
query System.String A search term to find NHL players, Example: "Owen Power" or "Carter Hart" or "Nathan MacKinnon"
limit System.Int32 A parameter to limit the number of search results returned when searching for a player

<a name='M-Nhl-Api-NhlPlayerApi-SearchAllPlayersAsync-System-String,System-Int32-'></a>

SearchAllPlayersAsync(query,limit) method

Summary

Returns any active or inactive NHL players based on the search query provided

Returns

A collection of all NHL players based on the search query provided

Parameters
Name Type Description
query System.String A search term to find NHL players, Example: "Jack Adams" or "Wayne Gretzky" or "Mats Sundin"
limit System.Int32 A parameter to limit the number of search results returned when searching for a player

<a name='T-Nhl-Api-NhlStatisticsApi'></a>

NhlStatisticsApi type

Namespace

Nhl.Api

Summary

The official unofficial NHL Statistics API providing various NHL information about in-depth player statistics, team statistics and more

<a name='M-Nhl-Api-NhlStatisticsApi-#ctor'></a>

#ctor() constructor

Summary

The official unofficial NHL Statistics API providing various NHL information about in-depth player statistics, team statistics and more

Parameters

This constructor has no parameters.

<a name='M-Nhl-Api-NhlStatisticsApi-GetGoalieStatsisticsLeadersAsync-Nhl-Api-Enumerations-Statistic-GoalieStatisticsType,Nhl-Api-Enumerations-Game-GameType,System-String,System-Int32-'></a>

GetGoalieStatsisticsLeadersAsync(goalieStatisticsType,seasonYear,gameType,limit) method

Summary

Returns the NHL goalie statistics leaders in the NHL for a specific goalie statistic type based on the game type and season year

Returns

Returns the current NHL player statistics leaders in the NHL for a specific player statistic type

Parameters
Name Type Description
goalieStatisticsType Nhl.Api.Enumerations.Statistic.GoalieStatisticsType A player statistics type, GoalieStatisticsType for all the types of statisitics
seasonYear Nhl.Api.Enumerations.Game.GameType The NHL season year to retrieve the player statistics leaders for, see SeasonYear for more information on valid season years
gameType System.String The NHL game type to retrieve the player statistics leaders for, see GameType for more information on valid game types
limit System.Int32 The limit to the number of results returned when reviewing the NHL player sta

<a name='M-Nhl-Api-NhlStatisticsApi-GetSkaterStatsisticsLeadersAsync-Nhl-Api-Enumerations-Statistic-PlayerStatisticsType,Nhl-Api-Enumerations-Game-GameType,System-String,System-Int32-'></a>

GetSkaterStatsisticsLeadersAsync(playerStatisticsType,seasonYear,gameType,limit) method

Summary

Returns the current NHL player statistics leaders in the NHL for a specific player statistic type

Returns

Returns the current NHL player statistics leaders in the NHL for a specific player statistic type

Parameters
Name Type Description
playerStatisticsType Nhl.Api.Enumerations.Statistic.PlayerStatisticsType A player statistics type, PlayerStatisticsType for all the types of statisitics
seasonYear Nhl.Api.Enumerations.Game.GameType The NHL season year to retrieve the player statistics leaders for, see SeasonYear for more information on valid season years
gameType System.String The NHL game type to retrieve the player statistics leaders for, see GameType for more information on valid game types
limit System.Int32 The limit to the number of results returned when reviewing the NHL player sta

<a name='M-Nhl-Api-NhlStatisticsApi-GetTeamStatisticsBySeasonAndGameTypeAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum,System-String,Nhl-Api-Enumerations-Game-GameType-'></a>

GetTeamStatisticsBySeasonAndGameTypeAsync(team,seasonYear,gameType) method

Summary

Returns the NHL team statistics for individual players for a specific NHL team statistic type based on the game type and season year

Returns

The NHL team season statistics for the specified season and game type

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The team enumeration identifier, specifying which the NHL team, TeamEnum for more information
seasonYear System.String The NHL season year to retrieve the team statistics, see SeasonYear for more information on valid season years
gameType Nhl.Api.Enumerations.Game.GameType The NHL game type to retrieve the team statistics, see GameType for more information on valid game types

<a name='M-Nhl-Api-NhlStatisticsApi-GetTeamStatisticsBySeasonAndGameTypeAsync-System-Int32,System-String,Nhl-Api-Enumerations-Game-GameType-'></a>

GetTeamStatisticsBySeasonAndGameTypeAsync(teamId,seasonYear,gameType) method

Summary

Returns the NHL team statistics for individual players for a specific NHL team statistic type based on the game type and season year

Returns

The NHL team season statistics for the specified season and game type

Parameters
Name Type Description
teamId System.Int32 The NHL team identifier, specifying which the NHL team, Example: 55 - Seattle Kraken
seasonYear System.String The NHL season year to retrieve the team statistics, see SeasonYear for more information on valid season years
gameType Nhl.Api.Enumerations.Game.GameType The NHL game type to retrieve the team statistics, see GameType for more information on valid game types

<a name='M-Nhl-Api-NhlStatisticsApi-GetTeamStatisticsBySeasonAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum-'></a>

GetTeamStatisticsBySeasonAsync(team) method

Summary

Returns all the NHL team valid game types for all valid NHL seasons for the selected NHL team

Returns

Returns all the NHL team valid game types for all valid NHL seasons for the selected NHL team

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The team enumeration identifier, specifying which the NHL team, TeamEnum for more information

<a name='M-Nhl-Api-NhlStatisticsApi-GetTeamStatisticsBySeasonAsync-System-Int32-'></a>

GetTeamStatisticsBySeasonAsync(teamId) method

Summary

Returns all the NHL team valid game types for all valid NHL seasons for the selected NHL team

Returns

Returns all the NHL team valid game types for all valid NHL seasons for the selected NHL team

Parameters
Name Type Description
teamId System.Int32 The NHL team identifier, specifying which the NHL team, Example: 55 - Seattle Kraken
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Nhl.Api:

Package Downloads
Nhl.Api.Extensions.Microsoft.DependencyInjection

The Microsoft .NET dependency injection library extension for the official unofficial .NET NHL API

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.4.1 143 3/28/2024
3.4.0 120 3/8/2024
3.3.0 222 2/24/2024
3.2.2 126 1/30/2024
3.2.1 89 1/30/2024
3.2.0 107 1/24/2024
3.1.0 166 1/5/2024
3.0.0 170 12/31/2023
2.2.1 2,289 10/9/2023
2.2.0 5,130 9/1/2023
2.1.0 13,363 10/18/2022
2.0.0 1,756 7/28/2022
1.9.2 676 3/17/2022
1.9.1 670 2/20/2022
1.9.0 694 1/28/2022
1.8.0 354 12/30/2021
1.7.0 373 12/21/2021
1.6.1 426 12/12/2021
1.6.0 587 12/11/2021
1.5.1 1,983 11/26/2021
1.5.0 1,883 11/26/2021
1.4.0 1,213 11/15/2021
1.3.0 483 10/28/2021
1.2.0 301 10/14/2021
1.1.3 324 10/8/2021
1.1.2 322 10/8/2021
1.1.1 305 10/8/2021
1.1.0 324 10/8/2021
1.0.2 309 9/30/2021
1.0.1 344 9/30/2021
1.0.0 393 9/30/2021