Snippets
Copy-paste starters for the SportsDataverse — load play-by-play, box scores, and models in R, Python, or Node.js in a dozen lines.
R
06 · cfbfastR · hoopR · wehoop · baseballr · fastRhockeyCollege football team EPA
Rank every FBS offense by expected points added per play from a full season of play-by-play.
RNBA play-by-play in two lines
A full NBA season of play-by-play, then a quick look at the league's shot diet.
RNHL play-by-play
Load a season of NHL play-by-play and inspect the event mix with fastRhockey.
RStatcast exit-velocity leaders
Pull a week of Statcast pitches from Baseball Savant and rank the hardest-hit balls.
RThe R meta-package
Install, inspect, and update the whole SportsDataverse R family in three calls.
RWNBA scoring leaders
Per-game scoring leaders from a season of WNBA player box scores with wehoop.
Python
06 · sportsdataverse-pyCFB team EPA with polars
One season of college football play-by-play as a polars DataFrame, ranked by EPA per play.
PYCollege hoops shot locations
Filter a season of men's college basketball play-by-play down to shots with court coordinates.
PYLive ESPN endpoints
Hit ESPN's live API for any league — game play-by-play, schedules, scoreboards — no key required.
PYMLB Stuff+ pitching models
Load modeled pitching metrics — Stuff+, expected stats, catcher framing — from the MLB releases.
PYNFL play-by-play (nflverse data)
Load nflverse play-by-play in Python and rank offenses by EPA per play.
PYWNBA per-game leaders
Season scoring leaders from WNBA player box scores in a dozen lines of polars.
Node.js
03 · sportsdataverse.jsOne-token league switching
The same method names exist on every league namespace — switching sports is a one-token change.
JSScoreboard to box score
Today's NBA scoreboard, then the full game summary for any game — in Node.js.
JSTidy rows with parsed true
Skip the nested ESPN JSON — get flat, snake_cased row objects from any endpoint.