Skip to main content

RosterService

A list of all methods in the RosterService service. Click on the method name to view detailed information about that method.

MethodsDescription
GetCurrentTeamRosterAsyncRetrieve the roster for a specific team as of the current moment.
GetTeamRosterBySeasonAsyncRetrieve the roster for a specific team and season.

GetCurrentTeamRosterAsync

Retrieve the roster for a specific team as of the current moment.

  • HTTP Method: GET
  • Endpoint: /v1/roster/{team}/current

Parameters

NameTypeRequiredDescription
teamstringThree-letter team code

Return Type

object

Example Usage Code Snippet

using NhlClient;

var client = new NhlClientClient();

var response = await client.Roster.GetCurrentTeamRosterAsync("team");

Console.WriteLine(response);

GetTeamRosterBySeasonAsync

Retrieve the roster for a specific team and season.

  • HTTP Method: GET
  • Endpoint: /v1/roster/{team}/{season}

Parameters

NameTypeRequiredDescription
teamstringThree-letter team code
seasonlongSeason in YYYYYYYY format

Return Type

object

Example Usage Code Snippet

using NhlClient;

var client = new NhlClientClient();

var response = await client.Roster.GetTeamRosterBySeasonAsync("team", 7);

Console.WriteLine(response);

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →