There has never been a better time to be a baseball nerd with a laptop. Pitch-by-pitch tracking, century-old box scores, every batted ball’s exit velocity: almost all of it is public, free, and a single HTTP request away. The hard part is no longer access; it’s knowing which door to knock on for which question.

On 2 November 2026 we tested all six with one script: 37 requests, sent one at a time by a client that names itself and reads each host’s robots.txt first. The MLB Stats API handed back all 30 teams from one call, and Baseball Savant returned 251 batters across 14 columns of expected statistics. The rest of the run was less tidy. One download was cut off without a warning, two answers came back empty with no error, and robots.txt ruled out 3 requests, so we didn’t send them. Every result is in the test table. The ranking below is the order we’d reach for the six.

37test requests, 2 November 2026
25,000rows: where Savant’s search silently stops
3requests robots.txt ruled out

How this ranking works

The order below reflects how often a curious analyst will actually want each source, weighted by how painless it is to query. Statcast and the MLB Stats API sit on top because they are both authoritative and genuinely open: you can hit them from a plain script with no credentials. The historical archives rank lower not because they’re worse but because you reach for them less often, and one or two have rough edges worth flagging. Each code sample below that fetches data makes, or for the pybaseball ones triggers, a request from the test table, so you can see what it returned on the day.

What each source returned on 2 November 2026

We sent 37 test requests between 12:34 and 12:45 UTC on 2 November 2026: data queries of the everyday kind, plus the terms pages the sources point to. Each went out once, from a Python script that names itself in its User-Agent (MLBAnalytic-data/1.0 (+https://mlbanalytic.com/contact.html)) rather than posing as a browser. The script read each host’s robots.txt before its first request there, kept at least a second between requests to one host (three on Baseball-Reference, whose robots.txt asks for that), and saved every response. Every count below comes from those saved copies. Times are single tries over one connection, so read them as a rough guide, not a benchmark.

One run, 2 November 2026: what each request returned. Time includes any redirects. Source: our test script and its saved responses.
SourceRequestWhat came backTime
Baseball SavantExpected-stats leaderboard, 2025, min=q, CSV251 rows × 14 columns0.6 s
Baseball SavantThe same for 2015250 rows0.5 s
Baseball SavantThe same for 2014Header row only: 0 rows, HTTP 200, no error0.5 s
Baseball SavantPitch search CSV, one day (4 July 2025)4,424 pitches × 119 columns, 3.0 MB0.6 s
Baseball SavantPitch search CSV, seven days (1–7 July 2025)Exactly 25,000 rows, all 7 dates present, 17.1 MB: cut off, no warning50.7 s
MLB Stats APIteams?sportId=1&season=202530 teams0.3 s
MLB Stats API2025 season hitting, playerPool=qualified&limit=300145 hitters0.4 s
MLB Stats APIThe same call without limit50 hitters (no warning)0.3 s
MLB Stats APIschedule for 4 July 190516 games0.5 s
MLB Stats APIteams?sportId=1&season=193732 clubs: 16 AL/NL, 9 Negro American League, 7 Negro National League0.3 s
MLB Stats APIFull 2026 regular-season schedule2,459 entries, 2,430 distinct games, 3.2 MB0.6 s
Baseball-ReferenceThe 2025 batting page batting_stats_bref(2025) requests675 player rows after 2 redirects, 1.3 MB; no OPS+ column7.8 s
FanGraphsThe leaderboard URL pybaseball’s batting_stats() requestsHTTP 308 redirect to the new leaderboard page, which lacks the table pybaseball parses2.5 s
FanGraphsThe JSON behind the new leaderboard, 2025, 30 per page30 of 145 qualified hitters, 475 columns0.6 s
Retrosheet2025 event files, /events/2025eve.zip2.5 MB zip, 61 files, identical to our 29 October copy2.2 s
Retrosheet2025 game logs, /gamelogs/Not sent: robots.txt closes it to all bots–
LahmanSABR’s download pageVersion 2025 (1871–2025), 3 Box links0.7 s
LahmanThe “comma-delimited version” linkA Box share page listing 19 CSV files and a readme1.1 s
LahmanThe GitHub archive pybaseball’s lahman.download() requestsNot sent: GitHub’s robots.txt closes /archive/; the repository answers 404–
Keys, limits, robots.txt and terms, as each source published them on 2 November 2026. Source: the robots.txt files and terms pages, read and saved that day.
SourceKey?Limitsrobots.txtTerms
Baseball SavantNoNone published; the pitch search stops at 25,000 rowsOpen to all (an empty Disallow)MLB.com terms of use bar automated scripts that collect information from MLB’s sites
MLB Stats APINoNone published; limit defaults to 50 rowsNone (HTTP 404)A notice in every response: only individual, non-commercial, non-bulk use
Baseball-ReferenceNo20 requests a minute; over that, blocked for up to a dayCrawl-delay 3 s; shuts out a few crawlers by name; closes its search and comparison toolsData-use page: don’t build websites or tools on data scraped from its sites
FanGraphsNoNone publishedOpen for leaderboards; closes some legacy and test pagesTerms of service, section 11: no copying any portion of the service for commercial purposes
RetrosheetNoNone publishedCloses /gamelogs/ and /boxesetc/ to all bots; /events/ openAny use, commercial included, if its notice appears prominently
Lahman (SABR)NoNone publishedsabr.org open; Box opens share pages, closes its static-file path; GitHub closes /archive/No licence stated on the download page

What broke, and what to do instead

  • A silent cap. Savant’s pitch search returned exactly 25,000 rows for a week that holds more. Request one day at a time; a single day came back with 4,424 pitches.
  • Empty answers that look like success. Savant’s 2014 expected-stats request and a Stats API standings call without leagueId both returned HTTP 200 with no rows. Check the row count, not just the status.
  • “Qualified” is not one list. For 2025, Savant’s min=q expected-stats board has 251 hitters. The Stats API’s playerPool=qualified and FanGraphs’ qualified board both have 145.
  • Wrappers point at addresses that moved. pybaseball’s FanGraphs scraper lands on a page without its table, and its Lahman downloader points at a GitHub archive that robots.txt closes, in a repository GitHub now answers 404 for.
  • Robots.txt rules out three requests. Retrosheet’s game logs, that GitHub archive, and the file path behind the Lahman documentation link on Box. We didn’t send any of them.

#1: Baseball Savant / Statcast

Best for: pitch-level and batted-ball-level data. Exit velocity, launch angle, expected stats (xwOBA, xBA), spin rate, sprint speed. If a question involves how hard or where a ball was hit, this is the source. Needs a key? No.

Savant is run by MLB Advanced Media and exposes its leaderboards as CSV downloads. The trick almost nobody mentions: take any leaderboard URL and append csv=true, and the page becomes a clean, parseable file. On 2 November 2026 that call returned 251 hitters with their full expected-statistics line. Savant’s min=q is a looser cut than the Stats API’s qualified pool, which held 145 hitters for the same season.

import pandas as pd

url = ("https://baseballsavant.mlb.com/leaderboard/expected_statistics"
       "?type=batter&year=2025&position=&team=&min=q&csv=true")
df = pd.read_csv(url)
print(df.shape)   # -> (251, 14)

One caveat: Savant’s data only goes back to 2015, when the Statcast system was installed league-wide (and pitch-tracking via its predecessor to 2008). For anything earlier, you need one of the archives below. The test bears that out: the same leaderboard for 2015 returned 250 rows, and for 2014 it returned the header row and nothing else, with HTTP 200 and no error.

For pitch-level rows, use the search export (statcast_search/csv, the endpoint pybaseball’s statcast() calls). For 4 July 2025 it returned 4,424 pitches with 119 columns in 0.6 s. A request for 1–7 July returned exactly 25,000 rows in 50.7 s. All seven dates were present, so nothing looked wrong, but the export stops at 25,000 rows. Ask for one day at a time.

#2: MLB Stats API (statsapi.mlb.com)

Best for: standings, schedules, rosters, season and career stat lines reaching back to the 1900s, and live game feeds including pitch-by-pitch and win-probability data. This is the same JSON that powers MLB.com’s own scoreboards. Needs a key? No.

It is the most versatile source on this list. The endpoints return structured JSON, the historical depth is enormous, and because it’s the league’s production API, it is reliable and fast. Our test pulled the full team list for 2025 and counted all thirty franchises on the first try.

import requests

r = requests.get("https://statsapi.mlb.com/api/v1/teams",
                 params={"sportId": 1, "season": 2025}, timeout=60)
teams = r.json()["teams"]
print(len(teams))   # -> 30

The API is officially undocumented, which is its one real downside: you learn the endpoints (standings, people, schedule, game/{pk}/feed/live) from community notes rather than a manual. But for the breadth of questions it answers without a single credential, nothing else comes close. One honest footnote: sportId=1 bundles in Negro-League and Federal-League rows for historical seasons, so league-wide totals sometimes need a filter to AL/NL only. Our test shows how much that matters: the 1937 team list returned 32 clubs, 16 from the American and National Leagues and 16 from the Negro American and Negro National Leagues.

The history is real: 4 July 1905 returned 16 games. So is one quiet default: the stats call returns 50 rows unless you pass limit. The rest of what tripped us is in eight traps we hit with the Stats API.

#3: Baseball-Reference (via pybaseball)

Best for: deep history, the components every rate stat is built from, and clean season/career tables for any player back to 1871. Needs a key? No, but you query it through the pybaseball package rather than scraping it yourself.

Baseball-Reference is the sport’s reference shelf, and its WAR implementation (bWAR) is one of the two you’ll see quoted everywhere. The pybaseball library wraps its pages into tidy DataFrames so you don’t have to parse HTML by hand.

from pybaseball import batting_stats_bref

df = batting_stats_bref(2025)      # season batting lines
print(df[["Name", "PA", "OBP", "SLG"]].head())

Know what this frame does and does not contain, because it is the most common way this source disappoints people. batting_stats_bref reads Baseball-Reference’s daily totals page, which serves counting stats and the basic rates: PA, AB, H, 2B, HR, BB, OBP, SLG and so on. There is no OPS+ column, so asking for one raises KeyError: "['OPS+'] not in index". The park-adjusted OPS+ and bWAR that Baseball-Reference is famous for live on its player and leaderboard pages, not in this frame: bWAR comes through a different function, bwar_bat(), and OPS+ you compute yourself from the components above, which is exactly what we do in OPS+ vs. wRC+.

In our test, the request batting_stats_bref(2025) makes went through 2 redirects (http to https, then daily.cgi to daily.fcgi) and returned 675 player rows in 7.8 s, with no OPS+ column. Be a polite citizen here. Sports Reference’s bot-traffic page limits its baseball site to 20 requests a minute and blocks offenders for up to a day, and its data-use page asks people not to build websites or tools on data scraped from its sites. Cache results and don’t hammer it in a loop. For the difference between bWAR and the FanGraphs flavor, see our piece on why WAR differs by site.

#4: FanGraphs

Best for: wRC+, fWAR, and a sprawling set of advanced and pitch-info metrics presented in the best leaderboards on the internet. Needs a key? No, but read the warning.

Earlier versions of this page said scripted requests to FanGraphs’ leaderboards come back 403 Forbidden. On 2 November 2026 they didn’t, but the scripted route still breaks. The leaderboard URL that pybaseball’s batting_stats() requests (leaders-legacy.aspx) answered with an HTTP 308 redirect to FanGraphs’ new leaderboard page. That page no longer contains the table pybaseball parses (class rgMasterTable), so the scraper finds nothing to read. The JSON behind the new page returned 30 rows (the page size we asked for) out of 145 qualified hitters, with 475 columns per row and each player’s name wrapped in an HTML link. The terms are the other limit. FanGraphs’ terms of service (section 11) forbid copying any portion of the service for commercial purposes.

The practical workaround is to use FanGraphs the way it’s meant to be used: through the website. Build your view in the leaderboard UI, then click “Export Data” to download a CSV by hand. You lose automation, but you gain the single best source for wRC+ and fWAR. If your project depends on scripted access to those exact numbers, plan around this constraint rather than fighting it.

#5: Retrosheet

Best for: play-by-play history. The actual event log of (nearly) every game going back decades, the raw material behind most historical research. Needs a key? No.

Retrosheet is a volunteer labor of love: a community that has reconstructed the event-level record of baseball game by game. The data ships as downloadable event files rather than a live API, so the workflow is to grab a season’s archive and parse it. Scripts may fetch the event files but not the game logs. Retrosheet’s robots.txt closes /gamelogs/ (and /boxesetc/) to every automated client, so we fetch from /events/ and leave the game logs alone. On 2 November 2026 the 2025 event archive (2.5 MB) downloaded in 2.2 s, byte for byte the same as the copy we fetched on 29 October.

import io, zipfile
import requests

r = requests.get("https://www.retrosheet.org/events/2025eve.zip",
                 headers={"User-Agent": "my-baseball-notebook/0.1"}, timeout=60)
z = zipfile.ZipFile(io.BytesIO(r.content))
print(len(z.namelist()))   # -> 61 (event, roster and team files)

pybaseball’s retrosheet.season_game_logs() reads the game logs from a GitHub mirror (chadwickbureau/retrosheet), not from retrosheet.org. We checked only that the mirror’s gamelog folder exists. We didn’t download from it, because Retrosheet closes its own game logs to scripts.

It is overkill for a casual question and indispensable for a serious one. If you want to know what happened in a specific at-bat in 1986, this is where the answer lives. Their data-use note asks that you credit Retrosheet in anything you publish: a fair trade for decades of free reconstruction.

#6: The Lahman Database

Best for: tidy season-and-career tables. A single, well-normalized relational dataset of batting, pitching, fielding, teams, and awards from 1871 to last season. Needs a key? No.

The Lahman database, maintained for years by Sean Lahman and now stewarded through the community, is the friendliest historical dataset for anyone who thinks in spreadsheets or SQL. It’s a set of flat CSV tables you load once and join freely: perfect for “career totals” questions that don’t need pitch-level detail.

One caveat worth knowing before you waste an afternoon: pybaseball’s Lahman downloader can’t work. lahman.download() asks GitHub for chadwickbureau/baseballdatabank/archive/master.zip. GitHub’s robots.txt closes /archive/ paths to automated clients, so we didn’t send that request, and GitHub’s API answers 404 for the repository itself. The current release lives on SABR’s site: version 2025, released 2 January 2026, covering 1871–2025, offered as 3 Box links (SQL, Microsoft Access and comma-delimited). The comma-delimited share page lists 19 CSV files and a readme. Box’s robots.txt opens the share pages but closes the static-file path the documentation link redirects to, so we downloaded nothing from Box. Get the files by hand in a browser, then load the CSVs yourself. SABR’s page doesn’t state a licence, so read the readme that comes with the download.

# pybaseball's lahman.download() points at a GitHub repository that now answers 404.
# Download the comma-delimited version from SABR's Lahman page, then:
import pandas as pd

batting = pd.read_csv("Batting.csv")
print(batting[batting["playerID"] == "ruthba01"][["yearID", "HR"]])

The bottom line

If you only bookmark two of these, make them Baseball Savant and the MLB Stats API: between them you can answer the overwhelming majority of modern questions, for free, with no credentials, from a script you can write in five minutes. On 2 November 2026 they returned 30 teams and 251 batters on the first request each. Check row counts as well as status codes: two of the emptiest answers in our test came back as HTTP 200. Reach down the list for history (Baseball-Reference, Retrosheet, Lahman) and over to FanGraphs’ website when you specifically need wRC+ or fWAR. The data is all there. The only thing standing between you and a real analysis is deciding which question to ask.

Sources & Further Reading