Skip to main content

ScheduleService

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

MethodsDescription
GetTeamNextGameAsyncRetrieve the next game for a specific team.
GetTeamScheduleBySeasonAsyncRetrieve the schedule for a specific team and season.
GetGameStatsAsyncRetrieve the statistics for a specific game.

GetTeamNextGameAsync

Retrieve the next game for a specific team.

  • HTTP Method: GET
  • Endpoint: /v1/schedule/{team}/next

Parameters

NameTypeRequiredDescription
teamstringThree-letter team code

Return Type

object

Example Usage Code Snippet

using NhlClient;

var client = new NhlClientClient();

var response = await client.Schedule.GetTeamNextGameAsync("team");

Console.WriteLine(response);

GetTeamScheduleBySeasonAsync

Retrieve the schedule for a specific team and season.

  • HTTP Method: GET
  • Endpoint: /v1/schedule/{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.Schedule.GetTeamScheduleBySeasonAsync("team", 8);

Console.WriteLine(response);

GetGameStatsAsync

Retrieve the statistics for a specific game.

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

Parameters

NameTypeRequiredDescription
seasonlongSeason in YYYYYYYY format
teamstringThree-letter team code
gamelongGame ID

Return Type

object

Example Usage Code Snippet

using NhlClient;

var client = new NhlClientClient();

var response = await client.Schedule.GetGameStatsAsync(9, "team", 5);

Console.WriteLine(response);

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →