toddrob99 / MLB-StatsAPI

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

Which endpoint contains inning data? #51

Closed 802GrnMtnBoy closed 3 years ago

802GrnMtnBoy commented 3 years ago

Hi there, Thank you so much for this module. I really enjoy using it. Wondering if you could tell me which endpoint contains inning related data i.e. number of outs, current batter, type of hit (single vs. double, etc.) Thanks so much

toddrob99 commented 3 years ago

The Game endpoint contains that info.

statsapi.get("game", {"gamePk": 641558})

That will pull data from https://statsapi.mlb.com/api/v1.1/game/641558/feed/live.

Search for liveData.

toddrob99 commented 3 years ago

Feel free to comment again if you need anything additional. I'm going to close the issue.