Skip to main content

PlayerService

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

MethodsDescription
GetGameLogAsyncRetrieve the game log for a specific player, season, and game type.
GetPlayerInfoAsyncRetrieve information for a specific player.
GetGameLogCurrentAsyncRetrieve the game log for a specific player as of the current moment.

GetGameLogAsync

Retrieve the game log for a specific player, season, and game type.

  • HTTP Method: GET
  • Endpoint: /v1/player/{player}/game-log/{season}/{game-type}

Parameters

NameTypeRequiredDescription
playerlongPlayer ID
seasonlongSeason in YYYYYYYY format
gameTypelongGame type (2 for regular season, 3 for playoffs)

Return Type

object

Example Usage Code Snippet

using NhlClient;

var client = new NhlClientClient();

var response = await client.Player.GetGameLogAsync(8, 2, 9);

Console.WriteLine(response);

GetPlayerInfoAsync

Retrieve information for a specific player.

  • HTTP Method: GET
  • Endpoint: /v1/player/{player}/landing

Parameters

NameTypeRequiredDescription
playerlongPlayer ID

Return Type

object

Example Usage Code Snippet

using NhlClient;

var client = new NhlClientClient();

var response = await client.Player.GetPlayerInfoAsync(8);

Console.WriteLine(response);

GetGameLogCurrentAsync

Retrieve the game log for a specific player as of the current moment.

  • HTTP Method: GET
  • Endpoint: /v1/player/{player}/game-log/now

Parameters

NameTypeRequiredDescription
playerlongPlayer ID

Return Type

object

Example Usage Code Snippet

using NhlClient;

var client = new NhlClientClient();

var response = await client.Player.GetGameLogCurrentAsync(2);

Console.WriteLine(response);

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →