GoaliesService
A list of all methods in the GoaliesService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_goalie_leaders | Retrieve goalie leaders for a specific attribute. |
get_goalie_stats | Retrieve goalie stats for a specific report. |
get_goalie_milestones | Retrieve goalie milestones. |
get_goalie_leaders
Retrieve goalie leaders for a specific attribute.
- HTTP Method:
GET
- Endpoint:
/{lang}/leaders/goalies/{attribute}
Parameters
Name | Type | Required | Description |
---|---|---|---|
attribute | str | ✅ | Goalie attribute |
lang | str | ✅ | Language 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
Name | Type | Required | Description |
---|---|---|---|
report | str | ✅ | Goalie report |
lang | str | ✅ | Language code |
cayenne_exp | str | ✅ | Required |
is_aggregate | bool | ❌ | Optional |
is_game | bool | ❌ | Optional |
fact_cayenne_exp | str | ❌ | Optional |
include | str | ❌ | Optional |
exclude | str | ❌ | Optional |
sort | str | ❌ | Optional |
dir | str | ❌ | Optional |
start | int | ❌ | Optional |
limit | int | ❌ | Optional (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
Name | Type | Required | Description |
---|---|---|---|
lang | str | ✅ | Language 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