Nhl.Api 2.2.1

Additional Details

All versions of this NuGet prior to version 3.0.0 no longer work due to the NHL removing their original REST API and replacing it with a new one. Please use version 3.0.0 for the latest API and features.

There is a newer version of this package available.
See the version list below for details.
dotnet add package Nhl.Api --version 2.2.1                
NuGet\Install-Package Nhl.Api -Version 2.2.1                
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="2.2.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nhl.Api --version 2.2.1                
#r "nuget: Nhl.Api, 2.2.1"                
#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=2.2.1

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

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

The Official Unofficial .NET NHL API 🏒

A C# .NET Standard 2.1 library for the .NET 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>

Installing Nhl.Api 💭

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 🚀

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.

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/>

Documentation 📖

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.

Contents

<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-GetActiveFranchisesAsync'></a>

GetActiveFranchisesAsync() method

Summary

Returns all active NHL franchises

Returns

A collection of all active NHL franchises, see Franchise for more information

Parameters

This method has no parameters.

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

GetActiveTeamsAsync() method

Summary

Returns all active NHL teams

Returns

A collection of all active NHL teams, see Team for more information

Parameters

This method has no parameters.

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

GetAllPlayersAsAsyncEnumerable() method

Summary

Returns NHL player since the league inception in 1917-1918 as an asychronous enumerable

Returns

Returns all NHL players since the league inception

Parameters

This method has no parameters.

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

GetAllPlayersAsync() method

Summary

Returns every single NHL player to ever play

Returns

Returns every single NHL player since the league inception

Parameters

This method has no parameters.

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

GetAllTeamsStatisticsBySeasonAsync(seasonYear) method

Summary

Returns all of the NHL team's statistics for the specific NHL season

Returns

A collection of NHL team statistics for the specified season

Parameters
Name Type Description
seasonYear System.String A season year for the all the NHL statistics, Example: 19971998, see SeasonYear for more information

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

GetBoxScoreByIdAsync(gameId) method

Summary

Returns the box score content for an NHL game

Returns

Returns information about the current score, penalties, players, team statistics and more

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

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

GetConferenceByIdAsync(conferenceId) method

Summary

Returns all of the NHL conferences

Returns

An NHL conference, see Conference for more information

Parameters
Name Type Description
conferenceId System.Int32 The NHL conference id, Example: Eastern Conference is the number 6

<a name='M-Nhl-Api-NhlApi-GetConferenceByIdAsync-Nhl-Api-Models-Enumerations-Conference-ConferenceEnum-'></a>

GetConferenceByIdAsync(conference) method

Summary

Returns the NHL conference by the conference enumeration Example: Eastern

Returns

An NHL conference, see Conference for more information

Parameters
Name Type Description
conference Nhl.Api.Models.Enumerations.Conference.ConferenceEnum The NHL conference id, Example: 6 - Eastern Conference, see ConferenceEnum for more information on NHL conferences

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

GetConferencesAsync() method

Summary

Returns all of the NHL conferences

Returns

A collection of all the NHL conferences, see Conference for more information

Parameters

This method has no parameters.

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

GetCurrentSeasonAsync() method

Summary

Return the current and most recent NHL season

Returns

The most recent NHL season

Parameters

This method has no parameters.

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

GetDivisionByIdAsync(divisionId) method

Summary

Returns an NHL division by the division id

Returns

Returns an NHL division, see Division for more information

Parameters
Name Type Description
divisionId System.Int32 The NHL division id, Example: Atlantic division is the number 17

<a name='M-Nhl-Api-NhlApi-GetDivisionByIdAsync-Nhl-Api-Models-Enumerations-Division-DivisionEnum-'></a>

GetDivisionByIdAsync(division) method

Summary

Returns an NHL division by the division enumeration Example: Atlantic

Returns

Returns an NHL division, see Division for more information

Parameters
Name Type Description
division Nhl.Api.Models.Enumerations.Division.DivisionEnum The NHL division id, Example: 17 - Atlantic division, see DivisionEnum for more information on NHL divisions

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

GetDivisionsAsync() method

Summary

Returns all of the NHL divisions

Returns

A collection of all the NHL divisions, see Division for more information

Parameters

This method has no parameters.

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

GetDraftByYearAsync(year) method

Summary

Returns the NHL league draft based on a specific year based on the 4 character draft year, see DraftYear for more information. Some responses provide very large JSON payloads

Returns

The NHL league draft, which includes draft rounds, player information and more, see LeagueDraft for more information

Parameters
Name Type Description
year System.String The specified year of the NHL draft, see DraftYear for all NHL draft years

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

GetEventTypesAsync() method

Summary

Return's all the event types within the NHL

Returns

A collection of event types within the NHL, see EventType for more information

Parameters

This method has no parameters.

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

GetFranchiseByIdAsync(franchiseId) method

Summary

Returns an NHL franchise by the franchise id

Returns

An NHL franchise, see Franchise for more information

Parameters
Name Type Description
franchiseId System.Int32 The NHL franchise id, Example: Montréal Canadiens - 1

<a name='M-Nhl-Api-NhlApi-GetFranchiseByIdAsync-Nhl-Api-Models-Enumerations-Franchise-FranchiseEnum-'></a>

GetFranchiseByIdAsync(franchise) method

Summary

Returns an NHL franchise by the franchise id Example: LosAngelesKings

Returns

An NHL franchise, see Franchise for more information

Parameters
Name Type Description
franchise Nhl.Api.Models.Enumerations.Franchise.FranchiseEnum The NHL team id, Example: 10 - Toronto Maple Leafs, see FranchiseEnum for more information on NHL franchises

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

GetFranchisesAsync() method

Summary

Returns all NHL franchises, including information such as team name, location and more

Returns

A collection of all NHL franchises, see Franchise for more information

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlApi-GetGameScheduleAsync-Nhl-Api-Models-Game-GameScheduleConfiguration-'></a>

GetGameScheduleAsync(gameScheduleConfiguration) method

Summary

Return's today's the NHL game schedule and it will provide today's current NHL game schedule

Returns

NHL game schedule, see GameSchedule for more information

Parameters
Name Type Description
gameScheduleConfiguration Nhl.Api.Models.Game.GameScheduleConfiguration A configuration for the NHL game schedule to include various points of additional information

<a name='M-Nhl-Api-NhlApi-GetGameScheduleByDateAsync-System-Nullable{System-DateTime},Nhl-Api-Models-Game-GameScheduleConfiguration-'></a>

GetGameScheduleByDateAsync(date,gameScheduleConfiguration) method

Summary

Return's the NHL game schedule based on the provided DateTime. If the date is null, it will provide today's current NHL game schedule

Returns

NHL game schedule, see GameSchedule for more information

Parameters
Name Type Description
date System.Nullable{System.DateTime} The requested date for the NHL game schedule
gameScheduleConfiguration Nhl.Api.Models.Game.GameScheduleConfiguration A configuration for the NHL game schedule to include various points of additional information

<a name='M-Nhl-Api-NhlApi-GetGameScheduleByDateAsync-System-Int32,System-Int32,System-Int32,Nhl-Api-Models-Game-GameScheduleConfiguration-'></a>

GetGameScheduleByDateAsync(year,month,day,gameScheduleConfiguration) method

Summary

Return's the NHL game schedule based on the provided year, month and day

Returns

NHL game schedule, see GameSchedule for more infGetGameScheduleByDateAsyncormation

Parameters
Name Type Description
year System.Int32 The requested year for the NHL game schedule
month System.Int32 The requested month for the NHL game schedule
day System.Int32 The requested day for the NHL game schedule
gameScheduleConfiguration Nhl.Api.Models.Game.GameScheduleConfiguration A configuration for the NHL game schedule to include various points of additional information

<a name='M-Nhl-Api-NhlApi-GetGameScheduleBySeasonAsync-System-String,System-Boolean,Nhl-Api-Models-Game-GameScheduleConfiguration-'></a>

GetGameScheduleBySeasonAsync(seasonYear,includePlayoffGames,gameScheduleConfiguration) method

Summary

Return's the entire collection of NHL game schedules for the specified season

Returns

Returns all of the NHL team's game schedules based on the selected NHL season

Parameters
Name Type Description
seasonYear System.String The NHL season year, Example: 19992000, see SeasonYear for more information
includePlayoffGames System.Boolean Includes the NHL playoff games if set to true, default value is false
gameScheduleConfiguration Nhl.Api.Models.Game.GameScheduleConfiguration A configuration for the NHL game schedule to include various points of additional information

<a name='M-Nhl-Api-NhlApi-GetGameScheduleForTeamByDateAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum,System-DateTime,System-DateTime,Nhl-Api-Models-Game-GameScheduleConfiguration-'></a>

GetGameScheduleForTeamByDateAsync(team,startDate,endDate,gameScheduleConfiguration) method

Summary

Return's the NHL game schedule for the specified team based on the provided start date and end date

Returns

Returns all of the NHL team's game schedules based on the selected start and end dates

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team id, Example: AnaheimDucks
startDate System.DateTime The starting date for the NHL team game schedule, see LeagueSeasonDates for start dates of NHL seasons, Example: 2017-01-01
endDate System.DateTime The ending date for the NHL team game schedule, see LeagueSeasonDates for start dates of NHL seasons, Example: 1988-06-01
gameScheduleConfiguration Nhl.Api.Models.Game.GameScheduleConfiguration A configuration for the NHL game schedule to include various points of additional information

<a name='M-Nhl-Api-NhlApi-GetGameScheduleForTeamByDateAsync-System-Int32,System-DateTime,System-DateTime,Nhl-Api-Models-Game-GameScheduleConfiguration-'></a>

GetGameScheduleForTeamByDateAsync(teamId,startDate,endDate,gameScheduleConfiguration) method

Summary

Return's the NHL game schedule for the specified team based on the provided start date and end date

Returns

Returns all of the NHL team's game schedules based on the selected start and end dates

Parameters
Name Type Description
teamId System.Int32 The NHL team id, Example: 1
startDate System.DateTime The starting date for the NHL team game schedule, see LeagueSeasonDates for start dates of NHL seasons, Example: 2017-01-01
endDate System.DateTime The ending date for the NHL team game schedule, see LeagueSeasonDates for start dates of NHL seasons, Example: 1988-06-01
gameScheduleConfiguration Nhl.Api.Models.Game.GameScheduleConfiguration A configuration for the NHL game schedule to include various points of additional information

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

GetGameStatusesAsync() method

Summary

Returns all of the valid NHL game statuses of an NHL game

Returns

A collection of NHL game statues, see GameStatus for more information

Parameters

This method has no parameters.

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

GetGameTypesAsync() method

Summary

Returns all of the NHL game types within a season and within special events

Returns

A collection of NHL and other sporting event game types, see GameType for more information

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlApi-GetGoalieByStatisticTypeBySeasonAsync-Nhl-Api-Models-Enumerations-Player-GoalieStatisticEnum,System-String,System-Boolean-'></a>

GetGoalieByStatisticTypeBySeasonAsync(goalieStatisticEnum,seasonYear,isDescending) method

Summary

Returns the goalie with the top NHL goalie statistic based on the selected season year

Returns

Returns the goalie profile with the selected statistic in the specified NHL season

Parameters
Name Type Description
goalieStatisticEnum Nhl.Api.Models.Enumerations.Player.GoalieStatisticEnum The argument for the type of NHL goalie statistic, see GoalieStatisticEnum for more information
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information
isDescending System.Boolean The argument to determine whether the order of the results of the statistic should be in a descending or ascending order

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

GetGoalieStatisticsBySeasonAsync(playerId,seasonYear) method

Summary

Returns all of the NHL goalie statistics for a specific statistic type and NHL season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL goalie statistics per season

Parameters
Name Type Description
playerId System.Int32 The identifier for the NHL goalie
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information

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

GetGoalieStatisticsBySeasonAsync(player,seasonYear) method

Summary

Returns all of the NHL goalie statistics for a specific statistic type and NHL season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL goalie statistics per season

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum The identifier for the NHL goalie
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information

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

GetGoalieStatisticsHomeAndAwayBySeasonAsync(player,seasonYear) method

Summary

Returns all of the NHL goalies statistics for home and away games for a season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL goalie statistics for home and away games for a season

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum The identifier for the NHL goalie
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information

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

GetGoalieStatisticsHomeAndAwayBySeasonAsync(playerId,seasonYear) method

Summary

Returns all of the NHL goalies statistics for home and away games for a season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL goalie statistics for home and away games for a season

Parameters
Name Type Description
playerId System.Int32 The identifier for the NHL goalie
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information

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

GetGoalieStatisticsYearByYearAsync(player) method

Summary

Returns all of the NHL goalie statistics for each season, year by year statistics type and NHL season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL goalie statistics year by year

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum The identifier for the NHL goalie

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

GetGoalieStatisticsYearByYearAsync(playerId) method

Summary

Returns all of the NHL goalie statistics for each season, year by year statistics type and NHL season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL goalie statistics year by year

Parameters
Name Type Description
playerId System.Int32 The identifier for the NHL goalie

<a name='M-Nhl-Api-NhlApi-GetGoaliesByStatisticTypeBySeasonAsync-Nhl-Api-Models-Enumerations-Player-GoalieStatisticEnum,System-String,System-Boolean,System-Int32-'></a>

GetGoaliesByStatisticTypeBySeasonAsync(goalieStatisticEnum,seasonYear,isDescending,numberOfGoalies) method

Summary

Returns the goalie with the top NHL goalie statistic based on the selected season year

Returns

Returns a collection goalie profiles with the selected statistic in the specified NHL season

Parameters
Name Type Description
goalieStatisticEnum Nhl.Api.Models.Enumerations.Player.GoalieStatisticEnum The argument for the type of NHL goalie statistic, see GoalieStatisticEnum for more information
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information
isDescending System.Boolean The argument to determine whether the order of the results of the statistic should be in a descending or ascending order
numberOfGoalies System.Int32 The argument for the number of goalies to retrieve, default value is 10

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

GetInactiveFranchisesAsync() method

Summary

Returns all inactive NHL franchises

Returns

A collection of all inactive NHL franchises, see Franchise for more information

Parameters

This method has no parameters.

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

GetInactiveTeamsAsync() method

Summary

Returns all inactive NHL teams

Returns

A collection of all active NHL teams, see Team for more information

Parameters

This method has no parameters.

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

GetLeagueAwardByIdAsync(awardId) method

Summary

Returns an NHL award by id

Returns

An NHL award, see Award for more information

Parameters
Name Type Description
awardId System.Int32 The identifier for the NHL award, Example: Ted Lindsay Award - 13

<a name='M-Nhl-Api-NhlApi-GetLeagueAwardByIdAsync-Nhl-Api-Models-Enumerations-Award-AwardEnum-'></a>

GetLeagueAwardByIdAsync(leagueAward) method

Summary

Returns an NHL award by the award id Example: StanleyCup

Returns

An NHL award, see Award for more information

Parameters
Name Type Description
leagueAward Nhl.Api.Models.Enumerations.Award.AwardEnum The NHL league award identifier, see AwardEnum for more information on NHL awards

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

GetLeagueAwardsAsync() method

Summary

Returns all of the NHL awards, including the description, history, and images

Returns

A collection of all the NHL awards, see Award for more information

Parameters

This method has no parameters.

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

GetLeagueProspectByIdAsync(prospectId) method

Summary

Returns an NHL prospect profile by their prospect id

Returns

An NHL prospect, see ProspectProfile for more information

Parameters
Name Type Description
prospectId System.Int32 The NHL prospect id, Example: 86515 - Francesco Pinelli

<a name='M-Nhl-Api-NhlApi-GetLeagueProspectByIdAsync-Nhl-Api-Models-Enumerations-Prospect-ProspectEnum-'></a>

GetLeagueProspectByIdAsync(prospect) method

Summary

Returns an NHL prospect profile by their prospect id

Returns

An NHL prospect, see ProspectProfile for more information

Parameters
Name Type Description
prospect Nhl.Api.Models.Enumerations.Prospect.ProspectEnum The NHL prospect id, Example: 86515 - Francesco Pinelli, see ProspectEnum for more information

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

GetLeagueProspectsAsync() method

Summary

Returns all the NHL league prospects The NHL prospects response provides a very large JSON payload

Returns

A collection of all the NHL prospects, see ProspectProfile for more information

Parameters

This method has no parameters.

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

GetLeagueStandingTypesAsync() method

Summary

Returns all of the NHL league standing types, this includes playoff and pre-season standings

Returns

A collection of all the NHL standing types, see LeagueStandingType for more information

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlApi-GetLeagueStandingsAsync-System-Nullable{System-DateTime}-'></a>

GetLeagueStandingsAsync(date) method

Summary

Returns the standings of every team in the NHL for the provided date, if the date is null it will provide the current NHL league standings

Returns

A collection of all the league standings

Parameters
Name Type Description
date System.Nullable{System.DateTime} The NHL league standings date for the request NHL standings

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

GetLeagueStandingsAsync() method

Summary

Returns the standings of every team in the NHL for the current date

Returns

A collection of all the league standings

Parameters

This method has no parameters.

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

GetLeagueStandingsByConferenceAsync() method

Summary

Returns the standings of every team in the NHL by conference for the current date

Returns

A collection of all the league standings by conference

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlApi-GetLeagueStandingsByConferenceAsync-System-Nullable{System-DateTime}-'></a>

GetLeagueStandingsByConferenceAsync(date) method

Summary

Returns the standings of every team in the NHL by conference for the current date, if the date is null it will provide the current NHL league standings by conference

Returns

A collection of all the league standings by conference for the selected date

Parameters
Name Type Description
date System.Nullable{System.DateTime} The NHL league standings date for the request NHL standings by conference

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

GetLeagueStandingsByDivisionAsync() method

Summary

Returns the standings of every team by division in the NHL for the current date

Returns

A collection of all the league standings by division

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlApi-GetLeagueStandingsByDivisionAsync-System-Nullable{System-DateTime}-'></a>

GetLeagueStandingsByDivisionAsync(date) method

Summary

Returns the standings of every team by division in the NHL by date, if the date is null it will provide the current NHL league standings by division

Returns

A collection of all the league standings by division for the selected date

Parameters
Name Type Description
date System.Nullable{System.DateTime} The NHL league standings date for the request NHL standings by division

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

GetLeagueTeamRosterMembersAsync() method

Summary

Returns all of the active NHL players

Returns

A collection of all NHL players

Parameters

This method has no parameters.

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

GetLeagueTeamRosterMembersBySeasonYearAsync(seasonYear) method

Summary

Returns all of the active NHL roster members by a season year

Returns

A collection of all NHL players based on the season year provided

Parameters
Name Type Description
seasonYear System.String A season year for the entire NHL roster, Example: 19971998, see SeasonYear for more information

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

GetLeagueVenueByIdAsync(venueId) method

Summary

Returns an NHL venue by the venue id Example: 5058 - Canada Life Centre

Returns

An NHL venue, see LeagueVenue for more information

Parameters
Name Type Description
venueId System.Int32 The specified id of an NHL venue,

<a name='M-Nhl-Api-NhlApi-GetLeagueVenueByIdAsync-Nhl-Api-Models-Enumerations-Venue-VenueEnum-'></a>

GetLeagueVenueByIdAsync(venue) method

Summary

Returns an NHL venue by the venue enumeration Example: EnterpriseCenter

Returns

An NHL venue, see LeagueVenue for more information

Parameters
Name Type Description
venue Nhl.Api.Models.Enumerations.Venue.VenueEnum The specified NHL venue, see VenueEnum for more information on NHL venues

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

GetLeagueVenuesAsync() method

Summary

Returns all of the NHL venue's, including arenas and stadiums This is not a comprehensive list of all NHL stadiums and arenas

Returns

A collection of NHL stadiums and arenas, see LeagueVenue for more information

Parameters

This method has no parameters.

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

GetLineScoreByIdAsync(gameId) method

Summary

Returns the line score content for an NHL game

Returns

Returns information about the current score, strength of the play, time remaining, shots on goal and more

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

<a name='M-Nhl-Api-NhlApi-GetLiveGameFeedByIdAsync-System-Int32,Nhl-Api-Models-Game-LiveGameFeedConfiguration-'></a>

GetLiveGameFeedByIdAsync(gameId,liveGameFeedConfiguration) method

Summary

Returns the live game feed content for an NHL game

Returns

A detailed collection of information about play by play details, scores, teams, coaches, on ice statistics, real-time updates and more

Parameters
Name Type Description
gameId System.Int32 The live game feed id, Example: 2021020087
liveGameFeedConfiguration Nhl.Api.Models.Game.LiveGameFeedConfiguration The NHL live game feed configuration settings for NHL live game feed updates

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

GetLiveGameFeedContentByIdAsync(gameId) method

Summary

Returns a collection of NHL live game feed content including highlights, media coverage, images, videos and more

Returns

A collection of images, video and information from a specific NHL game

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

<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-GetOnPaceRegularSeasonPlayerStatisticsAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum-'></a>

GetOnPaceRegularSeasonPlayerStatisticsAsync(player) method

Summary

Returns the on pace regular season NHL player statistics for the current NHL season with insightful statistics

Returns

A collection of all the on pace expected NHL player statistics by type

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum The identifier for the NHL player

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

GetOnPaceRegularSeasonPlayerStatisticsAsync(playerId) method

Summary

Returns the on pace regular season NHL player statistics for the current NHL season with insightful statistics

Returns

A collection of all the on pace expected NHL player statistics by type

Parameters
Name Type Description
playerId System.Int32 The identifier for the NHL player

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

GetPlayTypesAsync() method

Summary

Returns a collection of all the play types within the duration of an NHL game

Returns

A collection of distinct play types, see PlayType for more information

Parameters

This method has no parameters.

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

GetPlayerByIdAsync(playerId) method

Summary

Returns an NHL player by their player id, includes information such as age, weight, position and more

Returns

An NHL player profile, see Player for more information

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

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

GetPlayerByIdAsync(player) method

Summary

Returns an NHL player by their player id, includes information such as age, weight, position and more

Returns

An NHL player profile, see Player for more 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-GetPlayerByStatisticTypeBySeasonAsync-Nhl-Api-Models-Enumerations-Player-PlayerStatisticEnum,System-String,System-Boolean-'></a>

GetPlayerByStatisticTypeBySeasonAsync(playerStatisticEnum,seasonYear,isDescending) method

Summary

Returns the player with the top NHL player statistic based on the selected season year

Returns

Returns the player profile with the selected statistic in the specified NHL season

Parameters
Name Type Description
playerStatisticEnum Nhl.Api.Models.Enumerations.Player.PlayerStatisticEnum The argument for the type of NHL player statistic, see PlayerStatisticEnum for more information
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information
isDescending System.Boolean The argument to determine whether the order of the results of the statistic should be in a descending or ascending order

<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-GetPlayerStatisticsBySeasonAsync-System-Int32,System-String-'></a>

GetPlayerStatisticsBySeasonAsync(playerId,seasonYear) method

Summary

Returns all of the NHL player statistics for a specific statistic type and NHL season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL player statistics by type

Parameters
Name Type Description
playerId System.Int32 The identifier for the NHL player
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information

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

GetPlayerStatisticsBySeasonAsync(player,seasonYear) method

Summary

Returns all of the NHL player statistics for a specific statistic type and NHL season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL player statistics by type

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum The identifier for the NHL player
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information

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

GetPlayerStatisticsHomeAndAwayBySeasonAsync(player,seasonYear) method

Summary

Returns all of the NHL players statistics for home and away games for a season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL player statistics for home and away games for a season

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum The identifier for the NHL goalie
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information

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

GetPlayerStatisticsHomeAndAwayBySeasonAsync(playerId,seasonYear) method

Summary

Returns all of the NHL players statistics for home and away games for a season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL player statistics for home and away games for a season

Parameters
Name Type Description
playerId System.Int32 The identifier for the NHL player
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information

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

GetPlayerStatisticsYearByYearAsync(player) method

Summary

Returns all of the NHL players statistics for each season, year by year statistics type and NHL season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL player statistics for each season year by year

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum The identifier for the NHL goalie

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

GetPlayerStatisticsYearByYearAsync(playerId) method

Summary

Returns all of the NHL players statistics for each season, year by year statistics type and NHL season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL player statistics for each season year by year

Parameters
Name Type Description
playerId System.Int32 The identifier for the NHL player

<a name='M-Nhl-Api-NhlApi-GetPlayersByIdAsync-System-Collections-Generic-IEnumerable{System-Int32}-'></a>

GetPlayersByIdAsync(playerIds) method

Summary

Returns a collection of NHL players by their player id, includes information such as age, weight, position and more

Returns

An NHL player profile, see Player for more information

Parameters
Name Type Description
playerIds System.Collections.Generic.IEnumerable{System.Int32} A collection of NHL player identifiers, Example: 8478402 - Connor McDavid

<a name='M-Nhl-Api-NhlApi-GetPlayersByIdAsync-System-Collections-Generic-IEnumerable{Nhl-Api-Models-Enumerations-Player-PlayerEnum}-'></a>

GetPlayersByIdAsync(players) method

Summary

Returns a collection of NHL players by their player id, includes information such as age, weight, position and more

Returns

An NHL player profile, see Player for more information

Parameters
Name Type Description
players System.Collections.Generic.IEnumerable{Nhl.Api.Models.Enumerations.Player.PlayerEnum} A collection of NHL player identifiers, Example: 8478402 - Connor McDavid, see PlayerEnum for more information on NHL players

<a name='M-Nhl-Api-NhlApi-GetPlayersByStatisticTypeBySeasonAsync-Nhl-Api-Models-Enumerations-Player-PlayerStatisticEnum,System-String,System-Boolean,System-Int32-'></a>

GetPlayersByStatisticTypeBySeasonAsync(playerStatisticEnum,seasonYear,isDescending,numberOfPlayers) method

Summary

Returns the player with the top NHL player statistic based on the selected season year

Returns

Returns the collection of player profiles with the selected player statistic in the specified NHL season

Parameters
Name Type Description
playerStatisticEnum Nhl.Api.Models.Enumerations.Player.PlayerStatisticEnum The argument for the type of NHL player statistic, see PlayerStatisticEnum for more information
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information
isDescending System.Boolean The argument to determine whether the order of the results of the statistic should be in a descending or ascending order
numberOfPlayers System.Int32 The argument for the number of players to retrieve, default value is 10

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

GetPlayoffTournamentTypesAsync() method

Summary

Returns a collection of all the different types of playoff tournaments in the NHL

Returns

A collection of tournament types, see PlayoffTournamentType for more information

Parameters

This method has no parameters.

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

GetSeasonByYearAsync(seasonYear) method

Summary

Returns the NHL season information based on the provided season years

Returns

An NHL season based on the provided season year, Example: '20172018'

Parameters
Name Type Description
seasonYear System.String See SeasonYear for all valid season year arguments

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

GetSeasonsAsync() method

Summary

Returns all of the NHL seasons since the inception of the league in 1917-1918

Returns

A collection of seasons since the inception of the NHL

Parameters

This method has no parameters.

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

GetStatisticTypesAsync() method

Summary

Returns all distinct types of NHL statistics types

Returns

A collection of all the various NHL statistics types, see StatisticTypes for more information

Parameters

This method has no parameters.

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

GetTeamByIdAsync(teamId) method

Summary

Returns an NHL team by the team id

Returns

An NHL team with information including name, location, division and more, see Team for more information

Parameters
Name Type Description
teamId System.Int32 The NHL team id, Example: Toronto Maple Leafs - 10

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

GetTeamByIdAsync(team) method

Summary

Returns an NHL team by the team enumeration Example: SeattleKraken

Returns

An NHL team with information including name, location, division and more, see Team for more information on teams

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

<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-GetTeamStatisticsByIdAsync-System-Int32,System-String-'></a>

GetTeamStatisticsByIdAsync(teamId,seasonYear) method

Summary

Returns a specified NHL team's statistics for the specified season, the most recent season statistics will be returned

Returns

A collection of all the specified NHL team statistics for the specified season

Parameters
Name Type Description
teamId System.Int32 The NHL team id, Example: Toronto Maple Leafs - 10
seasonYear System.String The NHL season year, see SeasonYear for all valid seasons, Example: 20202021

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

GetTeamStatisticsByIdAsync(team,seasonYear) method

Summary

Returns a specified NHL team's statistics for the specified season, the most recent season statistics will be returned

Returns

A collection of all the specified NHL team statistics for the specified season

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team id, Example: AnaheimDucks
seasonYear System.String The NHL season year, see SeasonYear for all valid seasons, Example: 20202021

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

GetTeamStatisticsBySeasonAsync(teamId,seasonYear) method

Summary

Returns all of the NHL team statistics for the specific NHL team identifier and season

Returns

A collection of NHL team statistics for the specified season

Parameters
Name Type Description
teamId System.Int32 The NHL team identifier - Seattle Kraken: 55
seasonYear System.String A season year for the entire NHL roster, Example: 19971998, see SeasonYear for more information

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

GetTeamStatisticsBySeasonAsync(team,seasonYear) method

Summary

Returns all of the NHL team statistics for the specific NHL team identifier and season

Returns

A collection of NHL team statistics for the specified season

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team id, Example: AnaheimDucks, see TeamEnum for more information
seasonYear System.String A season year for the entire NHL roster, Example: 19971998, see SeasonYear for more information

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

GetTeamsAsync() method

Summary

Returns all active and inactive NHL teams

Returns

A collection of all NHL teams, see Team for more information

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlApi-GetTeamsByIdsAsync-System-Collections-Generic-IEnumerable{System-Int32}-'></a>

GetTeamsByIdsAsync(teamIds) method

Summary

Returns a collection of NHL team by the team id's

Returns

A collection of NHL team's with information including name, location, division and more, see Team for more information

Parameters
Name Type Description
teamIds System.Collections.Generic.IEnumerable{System.Int32} A collection of NHL team id's, Example: 10 - Toronto Maple Leafs

<a name='M-Nhl-Api-NhlApi-GetTeamsByIdsAsync-System-Collections-Generic-IEnumerable{Nhl-Api-Models-Enumerations-Team-TeamEnum}-'></a>

GetTeamsByIdsAsync(teams) method

Summary

Returns a collection of NHL team's by the team enumeration values

Returns

A collection of NHL team's with information including name, location, division and more, see Team for more information

Parameters
Name Type Description
teams System.Collections.Generic.IEnumerable{Nhl.Api.Models.Enumerations.Team.TeamEnum} A collection of NHL team id's, Example: 10 - Toronto Maple Leafs, see TeamEnum for more information on NHL teams

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

GetTournamentTypesAsync() method

Summary

Returns a collection of all the different types of tournaments in the hockey

Returns

A collection of tournament types, see TournamentType for more information

Parameters

This method has no parameters.

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

IsPlayoffsActiveAsync() method

Summary

Determines whether the NHL playoff season is currently active or inactive

Returns

A result if the current NHL playoff season is active (true) or inactive (false)

Parameters

This method has no parameters.

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

IsRegularSeasonActiveAsync() method

Summary

Determines whether the NHL regular season is currently active or inactive

Returns

A result if the current NHL regular season is active (true) or inactive (false)

Parameters

This method has no parameters.

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

IsSeasonActiveAsync() method

Summary

Determines whether the NHL season is currently active or inactive

Returns

A result if the current NHL season is active (true) or inactive (false)

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='M-Nhl-Api-NhlApi-SearchLeagueTeamRosterMembersAsync-System-String-'></a>

SearchLeagueTeamRosterMembersAsync(query) method

Summary

Returns all of the active rostered NHL players based on the search query provided

Returns

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

Parameters
Name Type Description
query System.String An search term to find NHL players, Example: "Auston Matthews" or "Carey Pr.." or "John C"

<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-GetBoxScoreByIdAsync-System-Int32-'></a>

GetBoxScoreByIdAsync(gameId) method

Summary

Returns the box score content for an NHL game

Returns

Returns information about the current score, penalties, players, team statistics and more

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

<a name='M-Nhl-Api-NhlGameApi-GetGameScheduleAsync-Nhl-Api-Models-Game-GameScheduleConfiguration-'></a>

GetGameScheduleAsync(gameScheduleConfiguration) method

Summary

Return's today's the NHL game schedule and it will provide today's current NHL game schedule

Returns

NHL game schedule, see GameSchedule for more information

Parameters
Name Type Description
gameScheduleConfiguration Nhl.Api.Models.Game.GameScheduleConfiguration A configuration for the NHL game schedule to include various points of additional information

<a name='M-Nhl-Api-NhlGameApi-GetGameScheduleByDateAsync-System-Nullable{System-DateTime},Nhl-Api-Models-Game-GameScheduleConfiguration-'></a>

GetGameScheduleByDateAsync(date,gameScheduleConfiguration) method

Summary

Return's the NHL game schedule based on the provided DateTime. If the date is null, it will provide today's current NHL game schedule

Returns

NHL game schedule, see GameSchedule for more information

Parameters
Name Type Description
date System.Nullable{System.DateTime} The requested date for the NHL game schedule
gameScheduleConfiguration Nhl.Api.Models.Game.GameScheduleConfiguration A configuration for the NHL game schedule to include various points of additional information

<a name='M-Nhl-Api-NhlGameApi-GetGameScheduleByDateAsync-System-Int32,System-Int32,System-Int32,Nhl-Api-Models-Game-GameScheduleConfiguration-'></a>

GetGameScheduleByDateAsync(year,month,day,gameScheduleConfiguration) method

Summary

Return's the NHL game schedule based on the provided year, month and day

Returns

NHL game schedule, see GameSchedule for more information

Parameters
Name Type Description
year System.Int32 The requested year for the NHL game schedule
month System.Int32 The requested month for the NHL game schedule
day System.Int32 The requested day for the NHL game schedule
gameScheduleConfiguration Nhl.Api.Models.Game.GameScheduleConfiguration A configuration for the NHL game schedule to include various points of additional information

<a name='M-Nhl-Api-NhlGameApi-GetGameScheduleBySeasonAsync-System-String,System-Boolean,Nhl-Api-Models-Game-GameScheduleConfiguration-'></a>

GetGameScheduleBySeasonAsync(seasonYear,includePlayoffGames,gameScheduleConfiguration) method

Summary

Return's the entire collection of NHL game schedules for the specified season

Returns

Returns all of the NHL team's game schedules based on the selected NHL season

Parameters
Name Type Description
seasonYear System.String The NHL season year, Example: 19992000, see SeasonYear for more information
includePlayoffGames System.Boolean Includes all of the NHL playoff games, default value is false
gameScheduleConfiguration Nhl.Api.Models.Game.GameScheduleConfiguration A configuration for the NHL game schedule to include various points of additional information

<a name='M-Nhl-Api-NhlGameApi-GetGameScheduleForTeamByDateAsync-Nhl-Api-Models-Enumerations-Team-TeamEnum,System-DateTime,System-DateTime,Nhl-Api-Models-Game-GameScheduleConfiguration-'></a>

GetGameScheduleForTeamByDateAsync(team,startDate,endDate,gameScheduleConfiguration) method

Summary

Return's the NHL game schedule for the specified team based on the provided start date and end date

Returns

Returns all of the NHL team's game schedules based on the selected start and end dates

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team id, Example: AnaheimDucks
startDate System.DateTime The starting date for the NHL team game schedule, see LeagueSeasonDates for start dates of NHL seasons, Example: 2017-01-01
endDate System.DateTime The ending date for the NHL team game schedule, see LeagueSeasonDates for start dates of NHL seasons, Example: 1988-06-01
gameScheduleConfiguration Nhl.Api.Models.Game.GameScheduleConfiguration A configuration for the NHL game schedule to include various points of additional information

<a name='M-Nhl-Api-NhlGameApi-GetGameScheduleForTeamByDateAsync-System-Int32,System-DateTime,System-DateTime,Nhl-Api-Models-Game-GameScheduleConfiguration-'></a>

GetGameScheduleForTeamByDateAsync(teamId,startDate,endDate,gameScheduleConfiguration) method

Summary

Return's the NHL game schedule for the specified team based on the provided start date and end date

Returns

Returns all of the NHL team's game schedules based on the selected start and end dates

Parameters
Name Type Description
teamId System.Int32 The NHL team id, Example: 1
startDate System.DateTime The starting date for the NHL team game schedule, see LeagueSeasonDates for start dates of NHL seasons, Example: 2017-01-01
endDate System.DateTime The ending date for the NHL team game schedule, see LeagueSeasonDates for start dates of NHL seasons, Example: 1988-06-01
gameScheduleConfiguration Nhl.Api.Models.Game.GameScheduleConfiguration A configuration for the NHL game schedule to include various points of additional information

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

GetGameStatusesAsync() method

Summary

Returns all of the valid NHL game statuses of an NHL game

Returns

A collection of NHL game statues, see GameStatus for more information

Parameters

This method has no parameters.

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

GetGameTypesAsync() method

Summary

Returns all of the NHL game types within a season and within special events

Returns

A collection of NHL and other sporting event game types, see GameType for more information

Parameters

This method has no parameters.

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

GetLineScoreByIdAsync(gameId) method

Summary

Returns the line score content for an NHL game

Returns

Returns information about the current score, strength of the play, time remaining, shots on goal and more

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

<a name='M-Nhl-Api-NhlGameApi-GetLiveGameFeedByIdAsync-System-Int32,Nhl-Api-Models-Game-LiveGameFeedConfiguration-'></a>

GetLiveGameFeedByIdAsync(gameId,liveGameFeedConfiguration) method

Summary

Returns the live game feed content for an NHL game

Returns

A detailed collection of information about play by play details, scores, teams, coaches, on ice statistics, real-time updates and more

Parameters
Name Type Description
gameId System.Int32 The live game feed id, Example: 2021020087
liveGameFeedConfiguration Nhl.Api.Models.Game.LiveGameFeedConfiguration The NHL live game feed event configuration settings for NHL live game feed updates

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

GetLiveGameFeedContentByIdAsync(gameId) method

Summary

Returns a collection of NHL live game feed content including highlights, media coverage, images, videos and more

Returns

A collection of images, video and information from a specific NHL game

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

<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-GetPlayTypesAsync'></a>

GetPlayTypesAsync() method

Summary

Returns a collection of all the play types within the duration of an NHL game

Returns

A collection of distinct play types, see PlayType for more information

Parameters

This method has no parameters.

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

GetPlayoffTournamentTypesAsync() method

Summary

Returns a collection of all the different types of playoff tournaments in the NHL

Returns

A collection of tournament types, see PlayoffTournamentType for more information

Parameters

This method has no parameters.

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

GetTournamentTypesAsync() method

Summary

Returns a collection of all the different types of tournaments in the hockey

Returns

A collection of tournament types, see TournamentType for more information

Parameters

This method has no parameters.

<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-GetActiveFranchisesAsync'></a>

GetActiveFranchisesAsync() method

Summary

Returns all active NHL franchises

Returns

A collection of all active NHL franchises, see Franchise for more information

Parameters

This method has no parameters.

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

GetActiveTeamsAsync() method

Summary

Returns all active NHL teams

Returns

A collection of all active NHL teams, see Team for more information

Parameters

This method has no parameters.

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

GetConferenceByIdAsync(conferenceId) method

Summary

Returns all of the NHL conferences

Returns

An NHL conference, see Conference for more information

Parameters
Name Type Description
conferenceId System.Int32 The NHL conference id, Example: Eastern Conference is the number 6

<a name='M-Nhl-Api-NhlLeagueApi-GetConferenceByIdAsync-Nhl-Api-Models-Enumerations-Conference-ConferenceEnum-'></a>

GetConferenceByIdAsync(conference) method

Summary

Returns the NHL conference by the conference enumeration Example: Eastern

Returns

An NHL conference, see Conference for more information

Parameters
Name Type Description
conference Nhl.Api.Models.Enumerations.Conference.ConferenceEnum The NHL conference id, Example: 6 - Eastern Conference, see ConferenceEnum for more information on NHL conferences

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

GetConferencesAsync() method

Summary

Returns all of the NHL conferences

Returns

A collection of all the NHL conferences, see Conference for more information

Parameters

This method has no parameters.

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

GetCurrentSeasonAsync() method

Summary

Return the current and most recent NHL season

Returns

The most recent NHL season

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlLeagueApi-GetDivisionByIdAsync-Nhl-Api-Models-Enumerations-Division-DivisionEnum-'></a>

GetDivisionByIdAsync(division) method

Summary

Returns an NHL division by the division enumeration Example: Atlantic

Returns

Returns an NHL division, see Division for more information

Parameters
Name Type Description
division Nhl.Api.Models.Enumerations.Division.DivisionEnum The NHL division id, Example: 17 - Atlantic division, see DivisionEnum for more information on NHL divisions

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

GetDivisionByIdAsync(divisionId) method

Summary

Returns an NHL division by the division id

Returns

Returns an NHL division, see Division for more information

Parameters
Name Type Description
divisionId System.Int32 The NHL division id, Example: Atlantic division is the number 17

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

GetDivisionsAsync() method

Summary

Returns all of the NHL divisions

Returns

A collection of all the NHL divisions, see Division for more information

Parameters

This method has no parameters.

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

GetDraftByYearAsync(year) method

Summary

Returns the NHL league draft based on a specific year based on the 4 character draft year, see DraftYear for more information. Some responses provide very large JSON payloads

Returns

The NHL league draft, which includes draft rounds, player information and more, see LeagueDraft for more information

Parameters
Name Type Description
year System.String The specified year of the NHL draft, see DraftYear for all NHL draft years

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

GetEventTypesAsync() method

Summary

Return's all the event types within the NHL

Returns

A collection of event types within the NHL, see EventType for more information

Parameters

This method has no parameters.

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

GetFranchiseByIdAsync(franchiseId) method

Summary

Returns an NHL franchise by the franchise id

Returns

An NHL franchise, see Franchise for more information

Parameters
Name Type Description
franchiseId System.Int32 The NHL franchise id, Example: Montréal Canadiens - 1

<a name='M-Nhl-Api-NhlLeagueApi-GetFranchiseByIdAsync-Nhl-Api-Models-Enumerations-Franchise-FranchiseEnum-'></a>

GetFranchiseByIdAsync(franchise) method

Summary

Returns an NHL franchise by the franchise id Example: LosAngelesKings

Returns

An NHL franchise, see Franchise for more information

Parameters
Name Type Description
franchise Nhl.Api.Models.Enumerations.Franchise.FranchiseEnum The NHL team id, Example: 10 - Toronto Maple Leafs, see FranchiseEnum for more information on NHL franchises

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

GetFranchisesAsync() method

Summary

Returns all NHL franchises, including information such as team name, location and more

Returns

A collection of all NHL franchises, see Franchise for more information

Parameters

This method has no parameters.

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

GetInactiveFranchisesAsync() method

Summary

Returns all inactive NHL franchises

Returns

A collection of all inactive NHL franchises, see Franchise for more information

Parameters

This method has no parameters.

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

GetInactiveTeamsAsync() method

Summary

Returns all inactive NHL teams

Returns

A collection of all active NHL teams, see Team for more information

Parameters

This method has no parameters.

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

GetLeagueAwardByIdAsync(awardId) method

Summary

Returns an NHL award by id

Returns

An NHL award, see Award for more information

Parameters
Name Type Description
awardId System.Int32 The identifier for the NHL award, Example: Ted Lindsay Award - 13

<a name='M-Nhl-Api-NhlLeagueApi-GetLeagueAwardByIdAsync-Nhl-Api-Models-Enumerations-Award-AwardEnum-'></a>

GetLeagueAwardByIdAsync(leagueAward) method

Summary

Returns an NHL award by the award id Example: StanleyCup

Returns

An NHL award, see Award for more information

Parameters
Name Type Description
leagueAward Nhl.Api.Models.Enumerations.Award.AwardEnum The NHL league award identifier, see AwardEnum for more information on NHL awards

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

GetLeagueAwardsAsync() method

Summary

Returns all of the NHL awards, including the description, history, and images

Returns

A collection of all the NHL awards, see Award for more information

Parameters

This method has no parameters.

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

GetLeagueStandingTypesAsync() method

Summary

Returns all of the NHL league standing types, this includes playoff and pre-season standings

Returns

A collection of all the NHL standing types, see LeagueStandingType for more information

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlLeagueApi-GetLeagueStandingsAsync-System-Nullable{System-DateTime}-'></a>

GetLeagueStandingsAsync(date) method

Summary

Returns the standings of every team in the NHL for the provided date, if the date is null it will provide the current NHL league standings

Returns

A collection of all the league standings

Parameters
Name Type Description
date System.Nullable{System.DateTime} The NHL league standings date for the request NHL standings

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

GetLeagueStandingsAsync() method

Summary

Returns the standings of every team in the NHL for the current date

Returns

A collection of all the league standings

Parameters

This method has no parameters.

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

GetLeagueStandingsByConferenceAsync() method

Summary

Returns the standings of every team in the NHL by conference for the current date

Returns

A collection of all the league standings by conference

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlLeagueApi-GetLeagueStandingsByConferenceAsync-System-Nullable{System-DateTime}-'></a>

GetLeagueStandingsByConferenceAsync(date) method

Summary

Returns the standings of every team in the NHL by conference for the current date, if the date is null it will provide the current NHL league standings by conference

Returns

A collection of all the league standings by conference for the selected date

Parameters
Name Type Description
date System.Nullable{System.DateTime} The NHL league standings date for the request NHL standings by conference

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

GetLeagueStandingsByDivisionAsync() method

Summary

Returns the standings of every team by division in the NHL for the current date

Returns

A collection of all the league standings by division

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlLeagueApi-GetLeagueStandingsByDivisionAsync-System-Nullable{System-DateTime}-'></a>

GetLeagueStandingsByDivisionAsync(date) method

Summary

Returns the standings of every team by division in the NHL by date, if the date is null it will provide the current NHL league standings by division

Returns

A collection of all the league standings by division for the selected date

Parameters
Name Type Description
date System.Nullable{System.DateTime} The NHL league standings date for the request NHL standings by division

<a name='M-Nhl-Api-NhlLeagueApi-GetLeagueVenueByIdAsync-Nhl-Api-Models-Enumerations-Venue-VenueEnum-'></a>

GetLeagueVenueByIdAsync(venue) method

Summary

Returns an NHL venue by the venue enumeration Example: EnterpriseCenter

Returns

An NHL venue, see LeagueVenue for more information

Parameters
Name Type Description
venue Nhl.Api.Models.Enumerations.Venue.VenueEnum The specified NHL venue, see VenueEnum for more information on NHL venues

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

GetLeagueVenueByIdAsync(venueId) method

Summary

Returns an NHL venue by the venue id Example: 5058 - Canada Life Centre

Returns

An NHL venue, see LeagueVenue for more information

Parameters
Name Type Description
venueId System.Int32 The specified id of an NHL venue,

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

GetLeagueVenuesAsync() method

Summary

Returns all of the NHL venue's, including arenas and stadiums This is not a comprehensive list of all NHL stadiums and arenas

Returns

A collection of NHL stadiums and arenas, see LeagueVenue for more information

Parameters

This method has no parameters.

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

GetSeasonByYearAsync(seasonYear) method

Summary

Returns the NHL season information based on the provided season years

Returns

An NHL season based on the provided season year, Example: '20172018'

Parameters
Name Type Description
seasonYear System.String See SeasonYear for all valid season year arguments

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

GetSeasonsAsync() method

Summary

Returns all of the NHL seasons since the inception of the league in 1917-1918

Returns

A collection of seasons since the inception of the NHL

Parameters

This method has no parameters.

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

GetTeamByIdAsync(teamId) method

Summary

Returns an NHL team by the team id

Returns

An NHL team with information including name, location, division and more, see Team for more information

Parameters
Name Type Description
teamId System.Int32 The NHL team id, Example: Toronto Maple Leafs - 10

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

GetTeamByIdAsync(team) method

Summary

Returns an NHL team by the team enumeration Example: SeattleKraken

Returns

An NHL team with information including name, location, division and more, see Team for more information on teams

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

<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-GetTeamsAsync'></a>

GetTeamsAsync() method

Summary

Returns all active and inactive NHL teams

Returns

A collection of all NHL teams, see Team for more information

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlLeagueApi-GetTeamsByIdsAsync-System-Collections-Generic-IEnumerable{System-Int32}-'></a>

GetTeamsByIdsAsync(teamIds) method

Summary

Returns a collection of NHL team by the team id's

Returns

A collection of NHL team's with information including name, location, division and more, see Team for more information

Parameters
Name Type Description
teamIds System.Collections.Generic.IEnumerable{System.Int32} A collection of NHL team id's, Example: 10 - Toronto Maple Leafs

<a name='M-Nhl-Api-NhlLeagueApi-GetTeamsByIdsAsync-System-Collections-Generic-IEnumerable{Nhl-Api-Models-Enumerations-Team-TeamEnum}-'></a>

GetTeamsByIdsAsync(teams) method

Summary

Returns a collection of NHL team's by the team enumeration values

Returns

A collection of NHL team's with information including name, location, division and more, see Team for more information

Parameters
Name Type Description
teams System.Collections.Generic.IEnumerable{Nhl.Api.Models.Enumerations.Team.TeamEnum} A collection of NHL team id's, Example: 10 - Toronto Maple Leafs, see TeamEnum for more information on NHL teams

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

IsPlayoffsActiveAsync() method

Summary

Determines whether the NHL playoff season is currently active or inactive

Returns

A result if the current NHL playoff season is active (true) or inactive (false)

Parameters

This method has no parameters.

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

IsRegularSeasonActiveAsync() method

Summary

Determines whether the NHL regular season is currently active or inactive

Returns

A result if the current NHL regular season is active (true) or inactive (false)

Parameters

This method has no parameters.

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

IsSeasonActiveAsync() method

Summary

Determines whether the NHL season is currently active or inactive

Returns

A result if the current NHL season is active (true) or inactive (false)

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-GetAllPlayersAsAsyncEnumerable'></a>

GetAllPlayersAsAsyncEnumerable() method

Summary

Returns every single NHL player to ever play

Returns

Returns every single NHL player since the league inception

Parameters

This method has no parameters.

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

GetAllPlayersAsync() method

Summary

Returns every single NHL player to ever play

Returns

Returns every single NHL player since the league inception

Parameters

This method has no parameters.

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

GetLeagueProspectByIdAsync(prospectId) method

Summary

Returns an NHL prospect profile by their prospect id

Returns

An NHL prospect, see ProspectProfile for more information

Parameters
Name Type Description
prospectId System.Int32 The NHL prospect id, Example: 86515 - Francesco Pinelli

<a name='M-Nhl-Api-NhlPlayerApi-GetLeagueProspectByIdAsync-Nhl-Api-Models-Enumerations-Prospect-ProspectEnum-'></a>

GetLeagueProspectByIdAsync(prospect) method

Summary

Returns an NHL prospect profile by their prospect id

Returns

An NHL prospect, see ProspectProfile for more information

Parameters
Name Type Description
prospect Nhl.Api.Models.Enumerations.Prospect.ProspectEnum The NHL prospect id, Example: 86515 - Francesco Pinelli, see ProspectEnum for more information

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

GetLeagueProspectsAsync() method

Summary

Returns all the NHL league prospects The NHL prospects response provides a very large JSON payload

Returns

A collection of all the NHL prospects, see ProspectProfile for more information

Parameters

This method has no parameters.

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

GetLeagueTeamRosterMembersAsync() method

Summary

Returns all of the active NHL players

Returns

A collection of all NHL players

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlPlayerApi-GetLeagueTeamRosterMembersBySeasonYearAsync-System-String-'></a>

GetLeagueTeamRosterMembersBySeasonYearAsync(seasonYear) method

Summary

Returns all of the active NHL roster members by a season year

Returns

A collection of all NHL players based on the season year provided

Parameters
Name Type Description
seasonYear System.String A season year for the entire NHL roster, Example: 19971998, see SeasonYear for more information

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

GetPlayerByIdAsync(playerId) method

Summary

Returns an NHL player by their player id, includes information such as age, weight, position and more

Returns

An NHL player profile, see Player for more information

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

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

GetPlayerByIdAsync(player) method

Summary

Returns an NHL player by their player id, includes information such as age, weight, position and more

Returns

An NHL player profile, see Player for more 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-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-GetPlayersByIdAsync-System-Collections-Generic-IEnumerable{System-Int32}-'></a>

GetPlayersByIdAsync(playerIds) method

Summary

Returns a collection of NHL players by their player id, includes information such as age, weight, position and more

Returns

An NHL player profile, see Player for more information

Parameters
Name Type Description
playerIds System.Collections.Generic.IEnumerable{System.Int32} A collection of NHL player identifiers, Example: 8478402 - Connor McDavid

<a name='M-Nhl-Api-NhlPlayerApi-GetPlayersByIdAsync-System-Collections-Generic-IEnumerable{Nhl-Api-Models-Enumerations-Player-PlayerEnum}-'></a>

GetPlayersByIdAsync(players) method

Summary

Returns a collection of NHL players by their player id, includes information such as age, weight, position and more

Returns

An NHL player profile, see Player for more information

Parameters
Name Type Description
players System.Collections.Generic.IEnumerable{Nhl.Api.Models.Enumerations.Player.PlayerEnum} A collection of NHL player identifiers, Example: 8478402 - Connor McDavid, see PlayerEnum for more information on NHL players

<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='M-Nhl-Api-NhlPlayerApi-SearchLeagueTeamRosterMembersAsync-System-String-'></a>

SearchLeagueTeamRosterMembersAsync(query) method

Summary

Returns all of the active rostered NHL players based on the search query provided

Returns

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

Parameters
Name Type Description
query System.String An search term to find NHL players, Example: "Auston Matthews" or "Carey Pr.." or "John C"

<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-GetAllTeamsStatisticsBySeasonAsync-System-String-'></a>

GetAllTeamsStatisticsBySeasonAsync(seasonYear) method

Summary

Returns all of the NHL team's statistics for the specific NHL season

Returns

A collection of NHL team statistics for the specified season

Parameters
Name Type Description
seasonYear System.String A season year for the all the NHL statistics, Example: 19971998, see SeasonYear for more information

<a name='M-Nhl-Api-NhlStatisticsApi-GetGoalieByStatisticTypeBySeasonAsync-Nhl-Api-Models-Enumerations-Player-GoalieStatisticEnum,System-String,System-Boolean-'></a>

GetGoalieByStatisticTypeBySeasonAsync(goalieStatisticEnum,seasonYear,isDescending) method

Summary

Returns the goalie with the top NHL goalie statistic based on the selected season year

Returns

Returns the goalie profile with the selected statistic in the specified NHL season

Parameters
Name Type Description
goalieStatisticEnum Nhl.Api.Models.Enumerations.Player.GoalieStatisticEnum The argument for the type of NHL goalie statistic, see GoalieStatisticEnum for more information
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information
isDescending System.Boolean The argument to determine whether the order of the results of the statistic should be in a descending or ascending order

<a name='M-Nhl-Api-NhlStatisticsApi-GetGoalieStatisticsBySeasonAsync-System-Int32,System-String-'></a>

GetGoalieStatisticsBySeasonAsync(playerId,seasonYear) method

Summary

Returns all of the NHL goalie statistics for a specific statistic type and NHL season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL goalie statistics per season

Parameters
Name Type Description
playerId System.Int32 The identifier for the NHL goalie
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information

<a name='M-Nhl-Api-NhlStatisticsApi-GetGoalieStatisticsBySeasonAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum,System-String-'></a>

GetGoalieStatisticsBySeasonAsync(player,seasonYear) method

Summary

Returns all of the NHL goalie statistics for a specific statistic type and NHL season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL goalie statistics per season

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum The identifier for the NHL goalie
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information

<a name='M-Nhl-Api-NhlStatisticsApi-GetGoalieStatisticsHomeAndAwayBySeasonAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum,System-String-'></a>

GetGoalieStatisticsHomeAndAwayBySeasonAsync(player,seasonYear) method

Summary

Returns all of the NHL goalies statistics for home and away games for a season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL goalie statistics for home and away games for a season

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum The identifier for the NHL goalie
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information

<a name='M-Nhl-Api-NhlStatisticsApi-GetGoalieStatisticsHomeAndAwayBySeasonAsync-System-Int32,System-String-'></a>

GetGoalieStatisticsHomeAndAwayBySeasonAsync(playerId,seasonYear) method

Summary

Returns all of the NHL goalies statistics for home and away games for a season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL goalie statistics for home and away games for a season

Parameters
Name Type Description
playerId System.Int32 The identifier for the NHL goalie
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information

<a name='M-Nhl-Api-NhlStatisticsApi-GetGoalieStatisticsYearByYearAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum-'></a>

GetGoalieStatisticsYearByYearAsync(player) method

Summary

Returns all of the NHL goalie statistics for each season, year by year statistics type and NHL season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL goalie statistics year by year

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum The identifier for the NHL goalie

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

GetGoalieStatisticsYearByYearAsync(playerId) method

Summary

Returns all of the NHL goalie statistics for each season, year by year statistics type and NHL season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL goalie statistics year by year

Parameters
Name Type Description
playerId System.Int32 The identifier for the NHL goalie

<a name='M-Nhl-Api-NhlStatisticsApi-GetGoaliesByStatisticTypeBySeasonAsync-Nhl-Api-Models-Enumerations-Player-GoalieStatisticEnum,System-String,System-Boolean,System-Int32-'></a>

GetGoaliesByStatisticTypeBySeasonAsync(goalieStatisticEnum,seasonYear,numberOfGoalies,isDescending) method

Summary

Returns the goalie with the top NHL goalie statistic based on the selected season year

Returns

Returns a collection goalie profiles with the selected statistic in the specified NHL season

Parameters
Name Type Description
goalieStatisticEnum Nhl.Api.Models.Enumerations.Player.GoalieStatisticEnum The argument for the type of NHL goalie statistic, see GoalieStatisticEnum for more information
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information
numberOfGoalies System.Boolean The argument for the number of goalies to retrieve, default value is 10
isDescending System.Int32 The argument to determine whether the order of the results of the statistic should be in a descending or ascending order

<a name='M-Nhl-Api-NhlStatisticsApi-GetOnPaceRegularSeasonPlayerStatisticsAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum-'></a>

GetOnPaceRegularSeasonPlayerStatisticsAsync(player) method

Summary

Returns the on pace regular season NHL player statistics for the current NHL season with insightful statistics

Returns

A collection of all the on pace expected NHL player statistics by type

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum The identifier for the NHL player

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

GetOnPaceRegularSeasonPlayerStatisticsAsync(playerId) method

Summary

Returns the on pace regular season NHL player statistics for the current NHL season with insightful statistics

Returns

A collection of all the on pace expected NHL player statistics by type

Parameters
Name Type Description
playerId System.Int32 The identifier for the NHL player

<a name='M-Nhl-Api-NhlStatisticsApi-GetPlayerByStatisticTypeBySeasonAsync-Nhl-Api-Models-Enumerations-Player-PlayerStatisticEnum,System-String,System-Boolean-'></a>

GetPlayerByStatisticTypeBySeasonAsync(seasonYear,playerStatisticEnum,isDescending) method

Summary

Returns the player with the top NHL player statistic based on the selected season year

Returns

Returns the player profile with the selected statistic in the specified NHL season

Parameters
Name Type Description
seasonYear Nhl.Api.Models.Enumerations.Player.PlayerStatisticEnum The argument for the NHL season of the play, see SeasonYear for more information
playerStatisticEnum System.String The argument for the type of NHL player statistic, see PlayerStatisticEnum for more information
isDescending System.Boolean The argument to determine whether the order of the results of the statistic should be in a descending or ascending order

<a name='M-Nhl-Api-NhlStatisticsApi-GetPlayerStatisticsBySeasonAsync-System-Int32,System-String-'></a>

GetPlayerStatisticsBySeasonAsync(playerId,seasonYear) method

Summary

Returns all of the NHL player statistics for a specific statistic type and NHL season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL player statistics by type

Parameters
Name Type Description
playerId System.Int32 The identifier for the NHL player
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information

<a name='M-Nhl-Api-NhlStatisticsApi-GetPlayerStatisticsBySeasonAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum,System-String-'></a>

GetPlayerStatisticsBySeasonAsync(player,seasonYear) method

Summary

Returns all of the NHL player statistics for a specific statistic type and NHL season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL player statistics by type

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum The identifier for the NHL player
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information

<a name='M-Nhl-Api-NhlStatisticsApi-GetPlayerStatisticsHomeAndAwayBySeasonAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum,System-String-'></a>

GetPlayerStatisticsHomeAndAwayBySeasonAsync(player,seasonYear) method

Summary

Returns all of the NHL players statistics for home and away games for a season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL player statistics for home and away games for a season

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum The identifier for the NHL goalie
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information

<a name='M-Nhl-Api-NhlStatisticsApi-GetPlayerStatisticsHomeAndAwayBySeasonAsync-System-Int32,System-String-'></a>

GetPlayerStatisticsHomeAndAwayBySeasonAsync(playerId,seasonYear) method

Summary

Returns all of the NHL players statistics for home and away games for a season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL player statistics for home and away games for a season

Parameters
Name Type Description
playerId System.Int32 The identifier for the NHL player
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information

<a name='M-Nhl-Api-NhlStatisticsApi-GetPlayerStatisticsYearByYearAsync-Nhl-Api-Models-Enumerations-Player-PlayerEnum-'></a>

GetPlayerStatisticsYearByYearAsync(player) method

Summary

Returns all of the NHL players statistics for each season, year by year statistics type and NHL season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL player statistics for each season year by year

Parameters
Name Type Description
player Nhl.Api.Models.Enumerations.Player.PlayerEnum The identifier for the NHL goalie

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

GetPlayerStatisticsYearByYearAsync(playerId) method

Summary

Returns all of the NHL players statistics for each season, year by year statistics type and NHL season with insightful statistics and NHL game data

Returns

A collection of all the in-depth NHL player statistics for each season year by year

Parameters
Name Type Description
playerId System.Int32 The identifier for the NHL player

<a name='M-Nhl-Api-NhlStatisticsApi-GetPlayersByStatisticTypeBySeasonAsync-Nhl-Api-Models-Enumerations-Player-PlayerStatisticEnum,System-String,System-Boolean,System-Int32-'></a>

GetPlayersByStatisticTypeBySeasonAsync(playerStatisticEnum,seasonYear,numberOfPlayers,isDescending) method

Summary

Returns the player with the top NHL player statistic based on the selected season year

Returns

Returns the collection of player profiles with the selected player statistic in the specified NHL season

Parameters
Name Type Description
playerStatisticEnum Nhl.Api.Models.Enumerations.Player.PlayerStatisticEnum The argument for the type of NHL player statistic, see PlayerStatisticEnum for more information
seasonYear System.String The argument for the NHL season of the play, see SeasonYear for more information
numberOfPlayers System.Boolean The argument for the number of players to retrieve, default value is 10
isDescending System.Int32 The argument to determine whether the order of the results of the statistic should be in a descending or ascending order

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

GetStatisticTypesAsync() method

Summary

Returns all distinct types of NHL statistics types

Returns

A collection of all the various NHL statistics types, see StatisticTypes for more information

Parameters

This method has no parameters.

<a name='M-Nhl-Api-NhlStatisticsApi-GetTeamStatisticsByIdAsync-System-Int32,System-String-'></a>

GetTeamStatisticsByIdAsync(teamId,seasonYear) method

Summary

Returns a specified NHL team's statistics for the specified season, the most recent season statistics will be returned

Returns

A collection of all the specified NHL team statistics for the specified season

Parameters
Name Type Description
teamId System.Int32 The NHL team id, Example: Toronto Maple Leafs - 10
seasonYear System.String The NHL season year, see SeasonYear for all valid seasons, Example: 20202021

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

GetTeamStatisticsByIdAsync(team,seasonYear) method

Summary

Returns a specified NHL team's statistics for the specified season, the most recent season statistics will be returned

Returns

A collection of all the specified NHL team statistics for the specified season

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team id, Example: AnaheimDucks
seasonYear System.String The NHL season year, see SeasonYear for all valid seasons, Example: 20202021

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

GetTeamStatisticsBySeasonAsync(teamId,seasonYear) method

Summary

Returns all of the NHL team statistics for the specific NHL team identifier and season

Returns

A collection of NHL team statistics for the specified season

Parameters
Name Type Description
teamId System.Int32 The NHL team identifier - Seattle Kraken: 55
seasonYear System.String A season year for the entire NHL roster, Example: 19971998, see SeasonYear for more information

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

GetTeamStatisticsBySeasonAsync(team,seasonYear) method

Summary

Returns all of the NHL team statistics for the specific NHL team identifier and season

Returns

A collection of NHL team statistics for the specified season

Parameters
Name Type Description
team Nhl.Api.Models.Enumerations.Team.TeamEnum The NHL team id, Example: AnaheimDucks, see TeamEnum for more information
seasonYear System.String A season year for the entire NHL roster, Example: 19971998, see SeasonYear for more information

<a name='M-Nhl-Api-NhlStatisticsApi-IsPlayerPostionGoalie-Nhl-Api-Models-Player-Player-'></a>

IsPlayerPostionGoalie(player) method

Summary

Returns true or false if the NHL player identifier is the position of a goalie

Returns

True or false if the NHL player is a goalie or player

Parameters
Name Type Description
player Nhl.Api.Models.Player.Player The NHL player model representing an NHL player

Bugs 🐛

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 📈

Here are some of the future items I would like to add and are currently in the backlog:

  • Player Search within the NHL league
  • Add additional API functionality for ease of searching for various NHL entities
  • Add NHL player enum dynamically generated by T4 runtime templates
  • Live Game Feed for Live Games
  • Content and Media for Games

Notable Mentions 🙏

Thank you to all the people in the hockey community, especially <a href="https://gitlab.com/dword4" target="_blank">Drew Hynes</a> to contributed to documenting the <a href="https://statsapi.web.nhl.com/api/v1" target="_blank">NHL Stats API</a>. Without all of their help, guidance and knowledge none of this would be possible.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  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 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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.6.1 76 11/25/2024
3.6.0 223 11/5/2024
3.5.0 507 9/30/2024
3.4.2 504 8/9/2024
3.4.1 205 3/28/2024
3.4.0 168 3/8/2024
3.3.0 261 2/24/2024
3.2.2 164 1/30/2024
3.2.1 132 1/30/2024
3.2.0 154 1/24/2024
3.1.0 210 1/5/2024
3.0.0 204 12/31/2023
2.2.1 2,657 10/9/2023 2.2.1 is deprecated because it has critical bugs.
2.2.0 5,182 9/1/2023 2.2.0 is deprecated because it has critical bugs.
2.1.0 13,412 10/18/2022 2.1.0 is deprecated because it has critical bugs.
2.0.0 1,814 7/28/2022 2.0.0 is deprecated because it has critical bugs.
1.9.2 708 3/17/2022 1.9.2 is deprecated because it has critical bugs.
1.9.1 699 2/20/2022 1.9.1 is deprecated because it has critical bugs.
1.9.0 737 1/28/2022 1.9.0 is deprecated because it has critical bugs.
1.8.0 393 12/30/2021 1.8.0 is deprecated because it has critical bugs.
1.7.0 417 12/21/2021 1.7.0 is deprecated because it has critical bugs.
1.6.1 463 12/12/2021 1.6.1 is deprecated because it has critical bugs.
1.6.0 623 12/11/2021 1.6.0 is deprecated because it has critical bugs.
1.5.1 2,038 11/26/2021 1.5.1 is deprecated because it has critical bugs.
1.5.0 1,927 11/26/2021 1.5.0 is deprecated because it has critical bugs.
1.4.0 1,244 11/15/2021 1.4.0 is deprecated because it has critical bugs.
1.3.0 534 10/28/2021 1.3.0 is deprecated because it has critical bugs.
1.2.0 330 10/14/2021 1.2.0 is deprecated because it has critical bugs.
1.1.3 357 10/8/2021 1.1.3 is deprecated because it has critical bugs.
1.1.2 348 10/8/2021 1.1.2 is deprecated because it has critical bugs.
1.1.1 319 10/8/2021 1.1.1 is deprecated because it has critical bugs.
1.1.0 351 10/8/2021 1.1.0 is deprecated because it has critical bugs.
1.0.2 340 9/30/2021 1.0.2 is deprecated because it has critical bugs.
1.0.1 355 9/30/2021 1.0.1 is deprecated because it has critical bugs.
1.0.0 426 9/30/2021 1.0.0 is deprecated because it has critical bugs.