Sitelet https://github.com/sportsdataverse
Skip to content

SportsDataverse

Open sports data for R, Python and JavaScript.
Tidy play-by-play, box scores, schedules, rosters and fitted models (expected points, win probability, expected goals) for college and pro football, basketball, hockey and baseball, published by automated pipelines that every package reads from.

GitHub followers GitHub stars Bluesky followers Follow on X
CRAN downloads PyPI downloads npm downloads R-universe packages

Website · Cheat sheets · R-universe · Data releases · Data status · Join the list · Patreon

Get started

# R: the whole family from R-universe (the core packages are also on CRAN)
install.packages("sportsdataverse",
  repos = c("https://sportsdataverse.r-universe.dev", "https://cloud.r-project.org"))
pbp <- cfbfastR::load_cfb_pbp(2025)
# Python: pip install sportsdataverse
from sportsdataverse.cfb import load_cfb_pbp
pbp = load_cfb_pbp(seasons=[2025])  # a polars DataFrame; return_as_pandas=True for pandas
# Node.js
npm install sportsdataverse

R Packages

The SportsDataverse R package hex wall

Package Covers Version Downloads Cheat sheet
sportsdataverse The meta-package: installs and loads the core SDV R packages in one call R-universe version PDF
cfbfastR College football play-by-play, EPA and win probability (CollegeFootballData, ESPN, stats.ncaa.org) CRAN version CRAN downloads PDF
hoopR Men's basketball, NBA and college (NBA Stats API, ESPN, KenPom, stats.ncaa.org) CRAN version CRAN downloads PDF
wehoop Women's basketball, WNBA and college (WNBA Stats API, ESPN, stats.ncaa.org) CRAN version CRAN downloads PDF
fastRhockey Hockey play-by-play and stats (NHL, PWHL, HockeyTech leagues) CRAN version CRAN downloads PDF
baseballr Baseball data (MLB Stats API, Statcast, FanGraphs, Baseball Reference, NCAA) CRAN version CRAN downloads PDF
oddsapiR Sportsbook odds (The Odds API) CRAN version CRAN downloads PDF
cfbseedR College football season simulation: conference tiebreakers and CFP seeding CRAN version CRAN downloads PDF
cfb4th College football fourth-down decisions R-universe version PDF
cfbplotR College football logos and colors for ggplot2 R-universe version PDF
sdvplotR New: team logos, wordmarks, headshots and colors across leagues for ggplot2, gt and reactable R-universe version
recruitR College football recruiting (CollegeFootballData, 247Sports) R-universe version
usfootballR MLS and NWSL play-by-play (ESPN) R-universe version
softballR College softball (NCAA, ESPN) R-universe version
sportyR Regulation playing surfaces for ggplot2 CRAN version CRAN downloads PDF
mlbplotR MLB logos for ggplot2 and gt CRAN version CRAN downloads PDF

Community packages in the family: ggshakeR (soccer analysis and visuals: FBref, StatsBomb, Understat) · soccerAnimate (2D animations of soccer tracking data) · nwslR (National Women's Soccer League datasets) · puntr (puntalytics) · chessR (Lichess and Chess.com game data). All of them install from sportsdataverse.r-universe.dev.

Python Packages python

sportsdataverse-py logo

Package Covers Version Downloads
sportsdataverse 29 leagues across ESPN, NBA/WNBA Stats, HockeyTech, stats.ncaa.org, MLB Statcast and more, plus every release loader and the EP/WP models · cheat sheet PyPI version PyPI downloads
sdvplot New, pre-release: team logos, wordmarks, headshots and colors for matplotlib, plotnine and table plots (source) not yet on PyPI
sportypy Regulation playing surfaces in Python, the companion to sportyR · cheat sheet PyPI version PyPI downloads
collegebaseball College baseball data and analysis (NCAA, Boyd's World)
nwslpy National Women's Soccer League data

Documentation · Cheat sheet (PDF)

sportsdataverse-js logo

npm npm

ESPN, 247Sports and NCAA endpoints for Node.js. Documentation · Cheat sheet (PDF)

Data releases and status

Every load_*() function reads the automated sportsdataverse-data releases, free to download directly. Freshness and pipeline health for every producer are on sportsdataverse.org/status, rebuilt nightly. Out of season a league reads idle rather than stale; red means its update pipeline failed.

CFB NFL NBA MBB WNBA WBB NHL PWHL MLB

Built on the SportsDataverse

  • Game on Paper: live college football analytics on the same expected-points and win-probability models the packages ship.

  • sdv-toolkit: a Claude Code plugin with skills, agents, hooks and an MCP server encoding the SDV engineering conventions (codegen-safe edit guards, multi-provider league scaffolding, returns-schema and docstring auditors, polars 1.x and parser-contract reviewers, R pkgdown/roxygen helpers).

    claude plugin marketplace add sportsdataverse/sportsdataverse
    claude plugin install sdv-toolkit@sportsdataverse

Contributors

Thank you to everyone who has filed an issue, sent a fix or added a league.

sportsdataverse-py contributors hoopR contributors cfbfastR contributors wehoop contributors

Cheat sheets

Printable one-page references for every package: the function families, the loaders, and what each one returns. Free to download, print and hand out; every sheet ships light and dark on US Letter landscape. Browse them all at sportsdataverse.org/cheatsheets

Every sheet
Sheet Covers
sportsdataverse (R) the R metapackage
sportsdataverse (Python) the Python package, 6 pages
sportsdataverse (Node.js) the JavaScript client
cfbfastR college football
hoopR men's basketball, NBA + NCAA
wehoop women's basketball, WNBA + NCAA
baseballr baseball
fastRhockey hockey, NHL + PWHL
oddsapiR sportsbook odds
cfbplotR · cfb4th · cfbseedR the college football toolkit
sportyR playing surfaces in R
sportypy playing surfaces in Python
mlbplotR MLB logos for ggplot2 + gt

About the SportsDataverse

The SportsDataverse is led by Saiem Gilani, who authors or maintains most of the packages above with a community of contributors. The first conversation on the SportsDataverse projects happened at the Carnegie Mellon Sports Analytics Conference in 2021, where the paper was selected as the winner of the Data and Software contribution, Open Track, in the reproducible research competition: Slides · Repository · Paper

Connect with us

Bluesky @sportsdataverse.org X @sportsdataverse X @cfbfastR Join the newsletter

Release notes and new-dataset announcements by email: sportsdataverse.org/join

Become a member on Patreon Support on Ko-fi

DigitalOcean referral

Popular repositories Loading

  1. hoopR hoopR Public

    An R package to quickly obtain clean and tidy men's basketball play by play data.

    R 150 26

  2. sportsdataverse-py sportsdataverse-py Public

    sportsdataverse python package

    Python 120 17

  3. sportyR sportyR Public

    R package for drawing regulation playing surfaces for several sports

    R 119 11

  4. cfbfastR cfbfastR Public

    An R package to quickly obtain clean and tidy college football play by play data

    R 112 15

  5. sportsdataverse-js sportsdataverse-js Public

    Retrieves sports data from a popular sports website as well as from the NCAA website, with support for NBA, WNBA, NFL, NHL, College Football and mens and womens college basketball,

    TypeScript 88 17

  6. sportypy sportypy Public

    Python package for drawing regulation playing surfaces for several sports

    Python 52 4

Repositories

Showing 10 of 82 repositories
  • ncaa-mfb-football-data Public

    NCAA MFB (football) Data

    sportsdataverse/ncaa-mfb-football-data's past year of commit activity
    Python 0 0 0 0 Updated Oct 5, 2026
  • sportsdataverse-py Public

    sportsdataverse python package

    sportsdataverse/sportsdataverse-py's past year of commit activity
    Python 120 MIT 17 8 1 Updated Oct 5, 2026
  • sportsdataverse/ncaa-mfb-football-raw's past year of commit activity
    HTML 0 0 0 0 Updated Oct 5, 2026
  • sportsdataverse-js Public

    Retrieves sports data from a popular sports website as well as from the NCAA website, with support for NBA, WNBA, NFL, NHL, College Football and mens and womens college basketball,

    sportsdataverse/sportsdataverse-js's past year of commit activity
    TypeScript 88 MIT 17 1 0 Updated Oct 5, 2026
  • sdvplot Public

    Team logos, wordmarks, headshots and colors for Python plots and tables (SportsDataverse)

    sportsdataverse/sdvplot's past year of commit activity
    Python 0 MIT 0 0 0 Updated Oct 5, 2026
  • .github Public
    sportsdataverse/.github's past year of commit activity
    Python 2 0 1 0 Updated Oct 5, 2026
  • sportsdataverse/sportsdataverse-web's past year of commit activity
    TypeScript 3 MIT 0 0 0 Updated Oct 5, 2026
  • sportsdataverse/sportsdataverse-R's past year of commit activity
    R 19 1 0 0 Updated Oct 5, 2026
  • cfbfastR-cfb-data Public

    Analysis-ready college-football datasets reshaped from cfbfastR-cfb-raw enriched JSON (sibling of cfbfastR-cfb-raw).

    sportsdataverse/cfbfastR-cfb-data's past year of commit activity
    Python 3 2 1 0 Updated Oct 5, 2026
  • sdvplotR Public

    Team logos, wordmarks, headshots and colors for ggplot2 plots and gt / reactable tables across the NFL, NBA, WNBA, MLB, NHL and college sports

    sportsdataverse/sdvplotR's past year of commit activity
    R 0 0 0 0 Updated Oct 4, 2026