Skip to main content

StandingsService

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

MethodsDescription
getCurrentStandingsRetrieve the standings as of the current moment.
getStandingsByDateRetrieve the standings for a specific date.
getStandingsSeasonRetrieves information for each season's standings.

getCurrentStandings

Retrieve the standings as of the current moment.

  • HTTP Method: GET
  • Endpoint: /v1/standings/now

Return Type

any

Example Usage Code Snippet

import { NhlClient } from 'nhl_client';

(async () => {
const nhlClient = new NhlClient({});

const { data } = await nhlClient.standings.getCurrentStandings();

console.log(data);
})();

getStandingsByDate

Retrieve the standings for a specific date.

  • HTTP Method: GET
  • Endpoint: /v1/standings/{date}

Parameters

NameTypeRequiredDescription
datestringDate in YYYY-MM-DD format

Return Type

any

Example Usage Code Snippet

import { NhlClient } from 'nhl_client';

(async () => {
const nhlClient = new NhlClient({});

const { data } = await nhlClient.standings.getStandingsByDate('date');

console.log(data);
})();

getStandingsSeason

Retrieves information for each season's standings.

  • HTTP Method: GET
  • Endpoint: /v1/standings-season

Return Type

any

Example Usage Code Snippet

import { NhlClient } from 'nhl_client';

(async () => {
const nhlClient = new NhlClient({});

const { data } = await nhlClient.standings.getStandingsSeason();

console.log(data);
})();

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →