Guides › Open-source soccer analytics libraries

Open-source soccer analytics libraries

Python, R and JavaScript packages for loading, modelling and visualising soccer data, with GitHub stars and last commit refreshed automatically.

23 listings · verified 2026-10-18

ToolTypexGAPILiga MXLiga MX FemenilFree tierPricing
awesome-soccer-analytics Open-source library — — — — Yes Free / open source
d3-soccer Open-source library — — — — Yes Free / open source
databallpy Open-source library — — — — Yes Free / open source
Edd Webster football_analytics Open-source library — — — — Yes Free / open source
floodlight Open-source library — — — — Yes Free / open source
ggsoccer Open-source library — — — — Yes Free / open source
itscalledsoccer Open-source library Yes Yes — — Yes Free / open source
kloppy Open-source library — — — — Yes Free / open source
LanusStats Open-source library — — — — Yes Free / open source
LaurieOnTracking Open-source library — — — — Yes Free / open source
Match Sync Viewer (trac) Open-source library — — — — Yes Free (MIT)
matplotsoccer Open-source library — — — — Yes Free / open source
mplsoccer Open-source library — — — — Yes Free / open source
ScraperFC Open-source library — — — — Yes Free / open source
Soccer Analytics Handbook Open-source library — — — — Yes Free / open source
socceraction Open-source library Yes — — — Yes Free / open source
soccerAnimate (Dato-Futbol) Open-source library — — — — Yes Free / open source
soccerdata Open-source library Yes — — — Yes Free / open source
statsbombpy Open-source library Yes — — — Yes Free / open source
StatsBombR Open-source library Yes — — — Yes Free / open source
understatAPI Open-source library Yes — — — Yes Free / open source
unravelsports Open-source library — — — — Yes Free / open source
worldfootballR Open-source library — — — — Yes Free / open source
Open-source library Free

awesome-soccer-analytics

Curated list of soccer-analytics resources (not actively updated).

  • xG —
  • API —
  • Liga MX —
  • Women's —
  • ★ 635

Free / open source

Open-source library Free

d3-soccer

D3.js plugin for visualising event-stream soccer data in the browser.

  • xG —
  • API —
  • Liga MX —
  • Women's —
  • ★ 77

Free / open source

Open-source library Free

databallpy

Python package to read, preprocess, visualise and synchronise soccer event and tracking data.

  • xG —
  • API —
  • Liga MX —
  • Women's —
  • ★ 106

Free / open source

Open-source library Free

Edd Webster football_analytics

Collection of football analytics projects and a curated list of public resources.

  • xG —
  • API —
  • Liga MX —
  • Women's —
  • ★ 2,856

Free / open source

Open-source library Free

floodlight

Python package for streamlined analysis of sports tracking and event data.

  • xG —
  • API —
  • Liga MX —
  • Women's —
  • ★ 135

Free / open source

Open-source library Free

ggsoccer

R package for plotting soccer event data on pitches with ggplot2.

  • xG —
  • API —
  • Liga MX —
  • Women's —
  • ★ 207

Free / open source

Open-source library Free

itscalledsoccer

Python wrapper for the American Soccer Analysis API (MLS, NWSL, USL, MLS Next Pro).

  • xG Yes
  • API Yes
  • Liga MX —
  • Women's Yes
  • ★ 63

Free / open source

Open-source library Free

kloppy

Python library that standardises soccer tracking and event data from many providers into one model.

  • xG —
  • API —
  • Liga MX —
  • Women's —
  • ★ 571

Free / open source

Open-source library Free

LanusStats

Spanish-language Python scraping library for FBref, FotMob, SofaScore, 365Scores and Transfermarkt.

  • xG —
  • API —
  • Liga MX —
  • Women's —
  • ★ 139

Free / open source

Open-source library Free

LaurieOnTracking

Tutorial code (Friends of Tracking) for working with Metrica tracking data in Python.

  • xG —
  • API —
  • Liga MX —
  • Women's —
  • ★ 365

Free / open source

Open-source library Free

Match Sync Viewer (trac)

Static website (no build step, no server) that plays a match's panoramic video, player tracking and event annotations on one clock: switch between video, tactical pitch or both, filter events by type, side and visibility, play only the filtered moments in clip mode, and nudge the sync by hand.

  • xG —
  • API —
  • Liga MX —
  • Women's —
  • ★ 0

Free (MIT)

Open-source library Free

matplotsoccer

Python package to visualise soccer event data.

  • xG —
  • API —
  • Liga MX —
  • Women's —
  • ★ 147

Free / open source

Open-source library Free

mplsoccer

Python library for drawing football pitches, shot maps, radars and pizza charts with matplotlib.

  • xG —
  • API —
  • Liga MX —
  • Women's —
  • ★ 555

Free / open source

Open-source library Free

ScraperFC

Python package for scraping soccer data from Capology, ClubElo, FBref, Sofascore, Transfermarkt and Understat.

  • xG —
  • API —
  • Liga MX —
  • Women's —
  • ★ 421

Free / open source

Open-source library Free

Soccer Analytics Handbook

Getting-started guide and notebooks for soccer analytics.

  • xG —
  • API —
  • Liga MX —
  • Women's —
  • ★ 1,716

Free / open source

Open-source library Free

socceraction

Python library that converts event data to SPADL and values player actions with VAEP or xT.

  • xG Yes
  • API —
  • Liga MX —
  • Women's —
  • ★ 830

Free / open source

Open-source library Free

soccerAnimate (Dato-Futbol)

R package by the Spanish-language Dato Fútbol project for animating tracking data.

  • xG —
  • API —
  • Liga MX —
  • Women's —
  • ★ 133

Free / open source

Open-source library Free

soccerdata

Python scrapers for Club Elo, ESPN, FBref, Football-Data.co.uk, Sofascore, SoFIFA, Understat and WhoScored returning pandas DataFrames.

  • xG Yes
  • API —
  • Liga MX —
  • Women's —
  • ★ 2,141

Free / open source

Open-source library Free

statsbombpy

Official Python client to stream StatsBomb open data (free) or API data (with credentials).

  • xG Yes
  • API —
  • Liga MX —
  • Women's Yes
  • ★ 756

Free / open source

Open-source library Free

StatsBombR

Official R package to stream StatsBomb data from the API or the free open-data repository.

  • xG Yes
  • API —
  • Liga MX —
  • Women's Yes
  • ★ 315

Free / open source

Open-source library Free

understatAPI

Python package for scraping data from understat.com.

  • xG Yes
  • API —
  • Liga MX —
  • Women's —
  • ★ 48

Free / open source

Open-source library Free

unravelsports

Python package with intermediate steps to turn raw sports (tracking) data into analysis-ready information, incl. graph neural network tooling.

  • xG —
  • API —
  • Liga MX —
  • Women's —
  • ★ 250

Free / open source

Open-source library Free

worldfootballR

R package for extracting football data from FBref, Transfermarkt and Understat.

  • xG —
  • API —
  • Liga MX —
  • Women's —
  • ★ 598

Free / open source

Missing a tool? Submit it.