jldbc/pybaseball
Pull current and historical baseball statistics using Python (Statcast, Baseball Reference, FanGraphs) observed · 2026-08-28
Health v2 · maintenance only
50/100
- Activity 60
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3361
- days_rel: n/a
- days_push: 241
- n_releases_24m: 0
Adoption not part of the score
1719 stars · 424 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
pybaseball is a Python package that scrapes and retrieves current and historical baseball statistics from sources like MLB Statcast (Baseball Savant), Baseball Reference, and FanGraphs. It provides convenient functions for pulling pitch-level Statcast data, batting/pitching stats, standings, and awards data into pandas DataFrames.
Use cases
- pull statcast pitch-level data for MLB games
- download historical batting and pitching statistics
- analyze sabermetrics data in Python
- get team standings and records
- retrieve MLB awards data
- scrape baseball reference and fangraphs data without writing scrapers
When to choose
- you need MLB data in pandas DataFrames for analysis
- you want pitch-level Statcast metrics like launch speed and spin rate
- you're doing sabermetric research or sports analytics in Python
When to avoid
- you need data for sports other than baseball
- you need a real-time live game feed API
- you need guaranteed uptime since it scrapes third-party sites that may change
Facets
library · maturity active
web-scraping data-science etl sports data-science analytics python cross-platform baseball sabermetrics statcast fangraphs baseball-reference sports-analytics
2 sources
- readme: https://github.com/jldbc/pybaseball · fetched 2026-08-28 · 788c68b25103
- registry_pypi: https://pypi.org/pypi/pybaseball/json · fetched 2026-08-29 · 38bffd050a4f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| jldbc/pybaseball | main | 50 |
For agents
markdown · JSON · MCP: product_card(name="jldbc/pybaseball")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem