toddrob99 / MLB-StatsAPI

Python wrapper for MLB Stats API
GNU General Public License v3.0
533 stars 100 forks source link

How to get game_log for a player? #86

Closed ForceConstant closed 2 years ago

ForceConstant commented 2 years ago

How can I get game_log for a specific player for a specific game? i.e. hits, or pitching stats for pitchers.

Thanks.

toddrob99 commented 2 years ago

If you want a player's stats for a given game, I would use the game endpoint. Player stats are in the boxscore: liveData > boxScore > teams > {home/away} > players > {personId} > stats

ForceConstant commented 2 years ago

Thanks