Releases: toddrob99/MLB-StatsAPI
Releases · toddrob99/MLB-StatsAPI
v0.0.6
- Added lookup_player() and lookup_team() to help with finding ids for use in other functions
- Added documentation at https://toddrob99.github.io/MLB-StatsAPI/
Initial Release - v0.0.5
Preferred installation method is pip: pip install MLB-StatsAPI. Or you can download and install manually, in which case you must also install the requests module.
Initial release includes advanced query support as well as the following built-in functions. See README and statsapi.__doc__ / statsapi.<function>.__doc__ for more details and example uses.
statsapi.get()- make calls directly to MLB StatsAPI endpoints;
supports the most flexibility in request parameters, and returns raw json datastatsapi.meta()- retrieve available values from StatsAPI for use in other queries,
or look up descriptions for values found in API resultsstatsapi.notes()- retrieve notes for a given endpoint,
including a list of required parameters, as well as hints for some endpointsstatsapi.schedule()- retrieve a list of games on a given date/range and/or team/opponentstatsapi.boxscore()- generate a formatted boxscore for a given gamestatsapi.linescore()- generate a formatted linescore for a given gamestatsapi.roster()- generate a list of players on a team's rosterstatsapi.standings()- generate a formatted list of standings for a given league/datestatsapi.team_leaders()- generate a list of a team's leaders for a given statstatsapi.league_leaders()- generate a list of stat leaders for all-time (single season) or a given seasonstatsapi.player_stats()- get a list of a player's career or season statsstatsapi.last_game()- get the game id for the given team's most recent gamestatsapi.next_game()- get the game id for the given team's next gamestatsapi.game_highlights()- generate a list of highlights with video links for a given gamestatsapi.game_pace()- get information about pace of game for a given season (back to 1999)statsapi.game_scoring_plays()- get a list of scoring plays for a given game