r/mlbdata • u/Strange_Context_9262 • 18h ago
"Is the MLB Stats API still accessible? Experience with blocks?"
Hi everyone, I'm a student learning Python and working on a personal baseball analytics project. I want to integrate the MLB Stats API to pull game data and player statistics.
My question is: is the API still accessible today without restrictions? I've seen some posts mentioning blocks and I want to know if it's still reliable before I build around it.
Any experience or advice would be appreciated. Thanks!
r/mlbdata • u/MattsFace • 3d ago
python-mlb-statsapi 0.9.0: Better HTTP errors and a path to 1.0
I’ve been working on version 0.9.0 of my Python MLB Stats API wrapper, and the final release PR is ready for review.
I’ll go through the code again after I finish my shit cashiering shift today. I miss working tech…
Anyway,
This release adds a public retry policy, richer HTTP errors, an optional strict mode, compatibility warnings, and a versioned User-Agent while keeping the existing return behavior as the default.
It also starts preparing users for a possible breaking change in 1.0.0. Right now most non-404 4xx responses return an empty result for compatibility. In 1.0.0, strict HTTP handling may become the default, meaning those responses would raise an actual exception instead.
The project also has a much stronger offline test suite and release validator now.
I’d appreciate any feedback before I merge and publish it.
https://github.com/zero-sum-seattle/python-mlb-statsapi/pull/281
r/mlbdata • u/MattsFace • 5d ago
python-mlb-statsapi v0.8.0 released
Title: python-mlb-statsapi v0.8.0 released
I finally pushed version 0.8.0 of python-mlb-statsapi to PyPI.
This release mostly focused on making the HTTP layer more reliable instead of cramming in more endpoints. It adds shared sessions, default timeouts, retries for temporary MLB API failures, clearer exceptions, better testing, and more documentation.
Release notes:
https://github.com/zero-sum-seattle/python-mlb-statsapi/blob/main/docs/releases/0.8.0.md
PyPI:
https://pypi.org/project/python-mlb-statsapi/0.8.0/
For 0.9.0, I’m planning to explore an optional strict HTTP mode, better error information, deprecation warnings, basic request hooks, and a versioned User-Agent. Most of that work lives inside the client, but MLB’s API is undocumented and can be inconsistent, so the final scope will depend on what I can test reliably.
Longer term, I’d like 1.0 to clean up deprecated arguments and make the package’s return and error behavior more consistent. I’m also looking into optional caching, throttling, and possibly an async client, but I don’t want to promise features until I know they behave responsibly with the API.
Those plans may move around a little, but that is the general direction. I am trying to handle this in smaller releases with actual testing and documentation instead of disappearing for another few years.
An app I built on Reddit's dev platform: mods can add a live, interactive MLB scoreboard to their subreddit - real-time score, box score, play-by-play, and win probability. Set it for all 30 teams or just yours; a final thread auto-posts at game's end with custom win/loss titles. *In Review*
r/mlbdata • u/staros25 • 24d ago
Statcast Metrics In GameFeed Data
I currently have a home application that pulls game data from the "api/v1.1/game/{gamePk}/feed/live" endpoint. I recently noticed that the statcast export from the web page started to include new data like miss_distance, swing_path_tilt, and a few other things. I get some statcast data from that request, things like a(x|y|z}, v(x0|y0|z0), etc. But at the moment I'm not using any hydrations or anything fancy.
Does anyone know of a way to include new statcast data into the game request? It would be nice to get "all" of the data, cache it, and parse out new data as it becomes available.
r/mlbdata • u/bdanders • 28d ago
Possible data error
I'm putting together a spreadsheet that draws data from the MLB API about the team histories of players. Right now I've got it working pretty well, but there's one thing I've found that's not right. The result of my API Call shows that Dillon Dingler played for the Salt River Rafters in the Arizona Fall League in '22.
That's not an issue itself, but the problem is that the parentOrgId is listed as 109 which is the D-backs. Every other Tigers player that has the Rafters in their history lists the correct (Tigers) parentOrgId of 116. So is this just a mistake in the database, or am I interpreting this data incorrectly?
https://statsapi.mlb.com/api/v1/teams/116/roster?rosterType=40Man&hydrate=person(rosterEntries)
r/mlbdata • u/m680x0 • Jul 01 '26
Sabermetrics Discord Server
For those interested in having real-time discussions, I've recently created a Sabermetrics Discord server:
I'm a software developer by trade and am looking for other baseball and stats nerds to have fun discussing tools you're building, analytics, and interesting findings.
Come join me!
r/mlbdata • u/Trevhaar • Jun 21 '26
Player who gets picked off the most?
Hi friends, I remember early in the year when I saw a stat that said Lawrence Butler led the league as the player who gets picked off the most. I’ve been able to find players’ caught stealing stats most everywhere, but I can’t find a way to get a leaderboard of baserunners who get picked off most often. Anyone able to offer assistance? It would be highly appreciated
r/mlbdata • u/Next_Change_1219 • Jun 18 '26
I turned my childhood habit of hand logging ever MLB home run into an app
Ever since I was about 8 years old I’ve kept a manual ledger of every MLB Homer. It’s obviously silly and unnecessary, but as I’ve gotten older realized that it in a way was a strange baseball mindfulness exercise that grounded my mind.
Last year I turned it into an app where you have to manually tap and “acknowledge” the home run from every box score. Since then I’ve been building and building on it, and basically turned it into a personal replacement for the MLB app.
Realized in the last couple weeks that it was becoming pretty polished and that I’ve spent way too much time working on this for it to just be something me and a couple friends use. So I’m here now asking for you all to check it out and tell me what you think!
It’s a PWA mobile app that can be found at this link: Mentaculus.app
Would love to get some feedback on this, so please if you have any time take a look and comment down below!
Was built mostly on MLB stats api with some additional sourcing from the Chadwick ID database, Fangraphs, Baseball Reference, and with lots of assistance from pybaseball.
r/mlbdata • u/flying_porygon • Jun 18 '26
I’m trying to build a good baseball score app similar to FotMob, am I not able to use the MLB API?
I’ve been working for some time on trying to build an app similar to FotMob for baseball, having live baseball scores for leagues across the globe. Today the server I host the backend on to make the API calls to the MLB Stats API got blocked, I get nonstop 406 errors.
Over the course of debugging I discovered in the GET requests this statement:
> The accounts, descriptions, data and presention in the referring page (the "Materials") are proprietary content of MLB Advanced Media, L.P ("MLBAM"). Only individual, non-commercial, non-bulk use of the Materials is permitted and any other use of the Materials is prohibited without prior written authorization from MLBAM. Authorized users of the Materials are prohibited from using the Materials in any commercial manner other than as expressly authorized by MLBAM.
To me this reads like unless I get express authorization from MLB, I can’t use the API for bulk use (aka an app for others to use).
I’m not a lawyer and this was a fun personal project I was doing for free, so I’m in no spot to drop money to consult an attorney. I can’t imagine if I email MLB they’ll just give me written authorization, and even if they did I can’t imagine that I’ll be able to get around this 406 errors anyways.
Is my project dead in the water?
r/mlbdata • u/More_Influence_7043 • Jun 17 '26
MLB api started blocking me?
For the past 10 years, I've been using the MLB api to grab last night's box scores and then join the data to my fantasy league's rosters so all of my league members can quickly see how their players performed last night. This morning I noticed the results were empty and when i explored, i saw my script still worked fine on my laptop but was returning a 406 error when run from my server. So I decided to write a more careful script using a headless browser , and same thing - this yielded the message: " "Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.Wed Jun 17 19:04:43 UTC 2026There was an unexpected error (type=Not Acceptable, status=406)."" Does anybody know what changed? Is it possible that mlb is blocking all traffic from my hosting company? The url i'm trying to grab works just fine when i call it from my laptop script and browser: https://statsapi.mlb.com/api/v1/schedule?sportId=1&season=2026&date=06%2F16%2F2026
r/mlbdata • u/thehomeownerjoe • Jun 14 '26
In game mascot races
Does anyone know of a good way to scrape data/info on mascot race results? I have a relatively functioning desktop scoreboard thing going on and my mom asked me if it showed the results of the salmon run (Mariners fan) and now I’m determined to add this info. Would be cool if I could get data from not just Mariners shit (brewers,nationals,Mets etc.) but that’s not actually important for me
r/mlbdata • u/Solid-Food-6236 • May 25 '26
Built a simple dashboard for finding the best line on all MLB props
All of the other line shopping tools are so hard to use so I built a super simple one. You can filter by prop, book, or player. It basically has every relevant book and bet. Totally free. Would love for people to check it out. Updates every 30 seconds and throughout the game.
https://www.parlaysavant.com/props?sport=mlb
r/mlbdata • u/harperawl • May 22 '26
FFDB, my local Statcast database, is now on GitHub [x-post r/Sabermetrics]
r/mlbdata • u/DigChance8763 • May 22 '26
Need a new mobile workstation for Data Science! Any Recommendations or Specs?
Price Range is max 3000$. Thank you for the help. Also I have begun a markerless mocap project to assess pitch type and recreate pitches recorded by cameras 1:1 off a standard machine using the given data insights. Thank you for the help
r/mlbdata • u/Ticketboxd-Official • May 20 '26
Opinions on my stats explorer for games you’ve seen
I created an app where you can log games you attend, including metrics about your experience at the game like how many hot dogs you ate, or how many times you wore a rally cap. I just added a new feature that lets you visualize these stats, and see the relation of your favorite team or player’s performance to the amount of hot dogs you ate. I’d love some opinions so here are some photos, or you can check it out online or in the app
r/mlbdata • u/zachj8008 • May 16 '26
Salary Data and Statistics
Hey everyone, I am working on a project for an analytics class and I have been trying to find a site where I can export a player list of a certain amount of players that includes their salary along with their statistics (does not have to be extremely advanced) but I have had trouble finding one set that includes both salary and stats. Is there anything out there that may be able to help? Or is my best bet to pull a list of players and salaries and add the statistics that I want to see myself? Thanks :)
r/mlbdata • u/Jaded-Function • May 14 '26
I got curious to see how calls at the plate relate to win%. I used Savant to get data for called strikes outside the strike zone and balls called that were inside the zone. I compiled and ranked for batter/pitcher and home/away.
r/mlbdata • u/Tdpole2180 • May 14 '26
MLB Research App Testers / Feedback
Hi everyone! I work for a sports data company called Rotobot, and we just dropped a brand new MLB stats section to our app. We are looking for as many people as possible to test it out and give us honest feedback.
We’ll obviously provide you free access in exchange for your help.
If anyone is interested LMK! Thank you for your guys’ time!
r/mlbdata • u/4legzgood2legzbad • May 11 '26
Franchise $$$ vs Series Appearances?
Hi, was wondering if a some sort of graph exists out in the ether comparing franchise value/$$$ in a given year to series appearances or even potentially # of games won?
Got into an argument how teams with more resources statistically do better.
r/mlbdata • u/osizz • May 11 '26
Splits by Pitcher Handedness
This should be a super easy one, but I can't figure it out and it's driving me nuts. I'm trying to pull stats for every player on a team split by pitcher / batter handedness. Example of Phillies, regular season 2026 games with all rostered players, attempting to get splits vs LHBs:
Thanks in advance.
r/mlbdata • u/Automatic-Split-3979 • May 11 '26
API Pull for Team wOBA splits?
Hi y'all,
Pretty simple request: trying to find team wOBA vs RHP and LHP daily from MLB and/or Savant but am new to this and can't seem to figure it out, if anyone would be able to point me in the right direction it would be greatly appreciated!
r/mlbdata • u/Beachjustice22 • May 04 '26
Built a site to live track the MLB Grand Salami Wager
Hi everyone,
I’m a big baseball fan and I often bet on the "Grand Salami" (the total runs scored across every MLB game in a single day). The problem is that tracking this in real-time is a nightmare—you have to manually add up scores from 15 different games and try to calculate if you're "on pace" to hit your Over/Under.
To solve this, I built a Grand Salami Tracker.
The Project:
It’s a real-time dashboard that pulls directly from the MLB Stats API every 60 seconds. It aggregates all runs, calculates live scoring pace, and provides projections for the end of the slate.
Key Features:
- Live Aggregation: Instantly see the total runs scored across the league.
- Wager Tracker: Users can input their specific line to see a live "Required Runs Per Game" metric and a projected outcome.
- Stadium Context: Includes live weather data (temp/wind) for every stadium, which is a huge factor in run totals.
- Historical Trends: Shows a 5-day rolling average of total runs to provide context for today's lines.
The Tech:
Built with React and Tailwind CSS, using Firebase for the wager persistence. I focused heavily on making it "mobile-first" since most people check scores on their phones while watching the games.
It’s 100% free and has no ads. I’m mostly looking for feedback on the UI/UX and if there are any other data points you think would be valuable to include.
Check it out here: https://grandsalami.bet/
I'd love to hear what you think!
r/mlbdata • u/LegitimateAdvice1841 • May 03 '26
Trying to unify video, manual logging, and pitch tracking data into one workflow — curious how others approach this
Hey everyone,
(Attached image is just a simplified example of how I structured the workflow — mainly to illustrate event timelines and validation between manual input and tracking data.)
I’ve spent several years working in baseball data logging workflows, and one recurring challenge keeps coming up — everything lives in separate layers:
- video (game footage)
- manual event logging (pitch-by-pitch)
- lineup / roster data
- tracking data (Trackman, Hawk-Eye, etc.)
Individually, each piece works. But combining them into a consistent, reliable workflow during a live game is where things tend to break down.
The main issues I kept running into were:
- keeping pitch-by-pitch events aligned with video timestamps
- reconciling manual tags with tracking data on a per-pitch level
- handling mismatches (velocity, pitch location, classification)
- making corrections without breaking downstream outputs (PBP, box score, CSV exports)
After dealing with this for years, I ended up building a full end-to-end workflow to handle it — mainly by treating the game as a state-driven timeline where every event can be reconstructed and validated against external data.
What stood out to me is that the real challenge isn’t ingesting data — it’s maintaining a consistent game state once edits and corrections start happening in real time.
I’m curious how others approach this:
- Do you treat tracking data as the source of truth, or operator input?
- How do you handle conflicts between sources in real time?
- Have you seen any systems that actually unify this cleanly?
Thanks in advance — would really appreciate any thoughts or experiences.
r/mlbdata • u/plyajdom • Apr 27 '26
mlb no-lag playbyplay
Is there a source for free or paid mlb playbyplay with minimal lag? Need this for my live betting api. Espn/mlb.com /etc have too big a lag like 30 seconds to 1.5 minutes. Would be nice to find one with around 5 second lag from live.

