StandingsService
A list of all methods in the StandingsService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
getCurrentStandings | Retrieve the standings as of the current moment. |
getStandingsByDate | Retrieve the standings for a specific date. |
getStandingsSeason | Retrieves 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
Name | Type | Required | Description |
---|---|---|---|
date | string | ✅ | Date 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