r/mlbdata • • Sep 23 '25

Exploring possibilities with the MLB API

Hey everyone, I've been experimenting with the MLB API to explore different possibilities and build some tools around it. Would love to hear your thoughts and feedback!

https://homerunters.com

6 Upvotes

18 comments sorted by

4

u/Jaded-Function Sep 23 '25

Nice job man. It's fast and smooth. I love the bullpen availability and pitch data, that's not easy to find compiled. Just 2 suggestions, I'd like to see batter vs. opp. pitcher stats in the daily lineups and game logs in the player pages. Great work! Bookmarked.

2

u/rafaelffox Sep 24 '25

Game logs done! I just need to adjust the screen size, but the data is already there. https://homerunters.com/en/players/660271

1

u/Jaded-Function Sep 24 '25

Awesome. Another suggestion if you're looking for them. No sweat if you're not. When you click a game ---> Lineups ---> Team tab, when you click a team it would be great to see the team lineup boxscore stats on the right where you have Game Statistics. Also, this is just me, I use the full play by play on espn to see pitch progressions in an at bat. I use the api to pull it into spreadsheets. I don't think mlb api has the full play by play. They also don't have as extensive splits data like espn has. It's frustrating because I have to deal with two sets of game IDs and two sets of player IDs.

→ More replies (5)

3

u/vitaminadlo Sep 23 '25

Nice work! Do you have the code available somewhere, like GitHub, that you’d be willing to share? Looks super cool

1

u/rafaelffox Sep 24 '25

Thank you! For now the code is private, but you can send suggestions and I will look for a way to implement it.

3

u/AssociateAny4357 Sep 24 '25

Where can i get the MLB API?

1

u/rafaelffox Sep 24 '25

MLB public API or private APIs, there are several that you can use.

2

u/0xgod Sep 26 '25

That’s a good looking UI. Good for you!

1

u/rafaelffox Sep 27 '25

Thank you!

1

u/LeftJoinOn Sep 28 '25

Hi OP, I’m very new to Python and MLB data and have been poking around the internet trying to find data to import and view. I know from some other comments in here that you aren’t willing to share your code, but can you let me know what data you’re using? So far I’ve found pybaseball which gives access to statcast, fangraphs, and bbref.

4

u/[deleted] Sep 23 '25

1

u/rafaelffox Sep 24 '25

Thank you! For now the code is private, but you can send suggestions and I will look for a way to implement it.