Skip to content

Function: player_stat_data

toddrob edited this page Mar 17, 2020 · 4 revisions

Get a Python dict of current season or career stat data for a given player.

Note: To retrieve a formatted text version, see Function: player_stats.

statsapi.player_stat_data(personId, group="[hitting,pitching,fielding]", type="season")

Note: For group use hitting, pitching, or fielding. Include multiple groups in the following format (this is a string, not actually a list): group='[hitting,pitching]'

Note: For type use career or season. Include multiple types in the following format (this is a string, not actually a list): group='[career,season]'

Clone this wiki locally