-
Notifications
You must be signed in to change notification settings - Fork 22
Data Types: Awards
KCNilssen edited this page Dec 13, 2022
·
9 revisions
Description: Return a list of awards
Parameters:
| Name | Type | Required | Description | Default |
|---|---|---|---|---|
award_id |
string | Yes | Insert a awardId to return a directory of players for a given award. | None |
Other Parameters:
| Name | Type | Required | Description | Default |
|---|---|---|---|---|
sportId |
string/int | No | Insert a sportId to return a directory of players for a given award in a specific sport. | None |
leagueId |
string/int | No | Insert leagueId(s) to return a directory of players for a given award in a specific league. Format '103,104' | None |
season |
string/int | No | Insert year(s) to return a directory of players for a given award in a given season. Format '2016,2017' | None |
Attributes are expandable and collapsable - Link to award dataclass
https://statsapi.mlb.com/api/v1/awards/MLBHOF/recipients?sportId=1&season=2017&leagueId=103
import mlbstatsapi
mlb = mlbstatsapi.Mlb()
mlb.get_awards(award_id = MLBHOF, sportId = 1, season = 2017, leagueId = 103)
Note: This information is provided for reference only, without warranty or guarantee, and is not official documentation provided by MLB. This package and its author are not affiliated with MLB or any MLB team. This API wrapper interfaces with MLB's Stats API. Use of MLB data is subject to the notice posted at http://gdx.mlb.com/components/copyright.txt.