-
-
Notifications
You must be signed in to change notification settings - Fork 101
Function: latest_season
Todd Roberts edited this page Aug 10, 2022
·
1 revision
statsapi.latest_season(sportId=1)
Get the latest season for MLB, sportId=1 (default)
season_data = statsapi.latest_season()
print(season_data['seasonId'])
2022
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.