-
Notifications
You must be signed in to change notification settings - Fork 15
Data Types: People
Matthew Spah edited this page Dec 13, 2022
·
13 revisions
Description: Return Person Id(s) from fullname
Parameters:
Name | Type | Required | Description | Default |
---|---|---|---|---|
sport_id |
string/int | Yes | Insert a sportId to return player information for a particular sport. For a list of all sportIds: http://statsapi.mlb.com/api/v1/sports | 1 |
fullname |
string | Yes | Search fullname | |
search_key |
string | No | Search key | 'fullname' |
Other Parameters:
Name | Type | Required | Description | Default |
---|---|---|---|---|
season |
string/int | Yes | Insert year to return player information for a particular season. | |
gameType |
string | Yes | Insert gameType to return player information for a particular gameType. Find available game types at https://statsapi.mlb.com/api/v1/gameTypes |
Description: Return Person Object from Id
Parameters:
Name | Type | Required | Description | Default |
---|---|---|---|---|
person_id |
string/int | Yes | Insert personId for a specific player, coach or umpire based on playerId. |
Description: Return list of all people for sport_id
Parameters:
Name | Type | Required | Description | Default |
---|---|---|---|---|
sport_id |
string/int | Yes | Insert a sportId to return player information for a particular sport. For a list of all sportIds: http://statsapi.mlb.com/api/v1/sports | 1 |
Other Parameters:
Name | Type | Required | Description | Default |
---|---|---|---|---|
season |
string/int | Yes | Insert year to return player information for a particular season. | |
gameType |
string | Yes | Insert gameType to return player information for a particular gameType. Find available game types at https://statsapi.mlb.com/api/v1/gameTypes |
People are expandable and collapsable - Link to people dataclass
id : int
- People id
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.