Skip to main content

GoaliesService

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

MethodsDescription
get_goalie_leadersRetrieve goalie leaders for a specific attribute.
get_goalie_statsRetrieve goalie stats for a specific report.
get_goalie_milestonesRetrieve goalie milestones.

get_goalie_leaders

Retrieve goalie leaders for a specific attribute.

  • HTTP Method: GET
  • Endpoint: /{lang}/leaders/goalies/{attribute}

Parameters

NameTypeRequiredDescription
attributestrGoalie attribute
langstrLanguage code

Return Type

dict

Example Usage Code Snippet

from nhl_stats import NhlStats, Environment

sdk = NhlStats(
base_url=Environment.DEFAULT.value
)

result = sdk.goalies.get_goalie_leaders(
attribute="attribute",
lang="lang"
)

print(result)

get_goalie_stats

Retrieve goalie stats for a specific report.

  • HTTP Method: GET
  • Endpoint: /{lang}/goalie/{report}

Parameters

NameTypeRequiredDescription
reportstrGoalie report
langstrLanguage code
cayenne_expstrRequired
is_aggregateboolOptional
is_gameboolOptional
fact_cayenne_expstrOptional
includestrOptional
excludestrOptional
sortstrOptional
dirstrOptional
startintOptional
limitintOptional (Note: a limit of -1 will return all results)

Return Type

dict

Example Usage Code Snippet

from nhl_stats import NhlStats, Environment

sdk = NhlStats(
base_url=Environment.DEFAULT.value
)

result = sdk.goalies.get_goalie_stats(
report="report",
lang="lang",
cayenne_exp="cayenneExp",
is_aggregate=False,
is_game=False,
fact_cayenne_exp="factCayenneExp",
include="include",
exclude="exclude",
sort="sort",
dir="dir",
start=6,
limit=7
)

print(result)

get_goalie_milestones

Retrieve goalie milestones.

  • HTTP Method: GET
  • Endpoint: /{lang}/milestones/goalies

Parameters

NameTypeRequiredDescription
langstrLanguage code

Return Type

dict

Example Usage Code Snippet

from nhl_stats import NhlStats, Environment

sdk = NhlStats(
base_url=Environment.DEFAULT.value
)

result = sdk.goalies.get_goalie_milestones(lang="lang")

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →