-
Notifications
You must be signed in to change notification settings - Fork 15
Data Types: Division
KCNilssen edited this page Dec 13, 2022
·
8 revisions
Description: Returns a Division
Parameters:
Name | Type | Required | Description | Default |
---|---|---|---|---|
divison_id |
string/int | Yes | divisionId to return a directory of division(s) for a specific division. | None |
Description: Return all divisons
Other Parameters:
Name | Type | Required | Description | Default |
---|---|---|---|---|
divisionId |
string/int | No | Insert divisionId(s) to return a directory of division(s) for a specific division. Format '200,201' | None |
leagueId |
string/int | No | Insert leagueId to return a directory of division(s) for all divisions in a specific league. | None |
sportId |
string/int | No | Insert a sportId to return a directory of division(s) for all divisions in a specific sport. | None |
Attributes are expandable and collapsable - Link to Division dataclass
To be added
https://statsapi.mlb.com/api/v1/divisions?divisionId=200&leagueId=103&sportId=1
import mlbstatsapi
mlb = mlbstatsapi.Mlb()
mlb.get_division(division_id = 200, leagueId = 103, sportId = 1)
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.