-
-
Notifications
You must be signed in to change notification settings - Fork 98
Function: team_leaders
Note: To retrieve the data used to build the formatted text, see Function: team_leader_data.
statsapi.team_leaders(teamId, leaderCategories, season=datetime.now().year, leaderGameTypes="R", limit=10)
Note: Get a list of available leaderCategories by calling the meta endpoint with type=leagueLeaderTypes
Print the top 5 team leaders in walks for the 2008 Phillies
print(statsapi.team_leaders(143,'walks',limit=5,season=2008))
Rank Name Value
1 Pat Burrell 102
2 Ryan Howard 81
3 Chase Utley 64
4 Jimmy Rollins 58
5 Jayson Werth 57
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.