Welcome to soccers
soccers is a historical football/soccer data platform: one SQLite database holding roughly 300,000 matches, 11,000+ players, and event-level stats across 60+ leagues and tournaments — from the 1958 World Cup to the current season.
This site is where the analysis happens. The data lives in
packages/data;
this landing page is the publication layer for the findings.
Where the data comes from
Four open sources feed the database:
- football-data.co.uk — results, match stats, and standings for 20+ European leagues (1993–present) plus 16 single-file countries.
- StatsBomb open data — event-level JSON (passes, shots, cards, substitutions, lineups) for World Cups, Euros, the Champions League, and domestic leagues back to 1958.
- Transfermarkt — transfer history with fees, player photos and bios.
- Wikipedia/Wikidata awards data — Ballon d'Or, FIFA awards, Golden Shoe and other individual honours.
All are imported by idempotent scripts, so the dataset can be rebuilt from scratch at any time.
Inside the database
The data contract is a single Prisma 8 contract (contract.prisma) mapped to
SQLite with snake_case storage names. Here is how the pieces fit together.
The spine: competition → season → match
Everything hangs off the fixture list:
leaguebelongs to acountryand has acompetition_type(league, cup, international).seasonbelongs to aleagueand carries the year label (2024,2024/25).matchbelongs to aseasonand referenceshome_team/away_team, an optionalvenueandreferee, plus full scorelines — regulation, half-time, extra time, and penalties.
match.external_id is the deduplication key: football-data rows hash their CSV
identity, StatsBomb rows keep their sbm- ids, so re-running an import never
duplicates a fixture.
The detail layer
match_team_stat— team-level aggregates per match (shots, possession, corners, fouls, cards, xG where available).match_lineup+player_match_stat— who played, and what they did: minutes, goals, assists, shots, passes, duels, saves.goalandmatch_event— the atomic events: finishes (withgoal_typefor penalties, headers, own goals), cards, substitutions, injuries.transfer— 19,000+ moves with fees, powers the Transfers series.award+award_winner— individual honours, powers the Awards series.
The slow-moving tables
team, player, manager, venue, referee, and country are the entities
everything else references. standing snapshots the league table per season —
position and form string included. injury exists in the contract but coverage
is still thin.
The reports
Every analysis on this site is a Mars notebook — CSV in, reproducible Rust out — exported to markdown. 52 reports across five series:
Match Analysis
Questions about how matches and seasons actually behave.
- Attack vs Defence: does defence win titles?
- The Away-Day Nightmare
- Biggest blown leads: does an 8-point lead actually choke teams?
- Clean sheets: the defensive record book
- Comebacks: turning losing positions into victories
- Do more corners actually help you win?
- The discipline report: who collects cards and who concedes fouls
- The Draw Specialists
- Finishing efficiency: who converts chances and who wastes them
- Does the first half of the season predict the final table?
- The Fixture Congestion Effect
- Greatest escapes: can a bottom-three team survive with ten games left?
- Home Advantage: a classic football analysis
- Death by a thousand cuts: the dying minutes
- The Opening Goal Advantage
- Does possession actually help you win?
- Substitution patterns: when do managers pull the trigger?
- Super-subs: what happens when the bench comes on
- Title defences and dynasties: how often do champions retain?
- Two-goal lead: is 2–0 the most dangerous lead?
- Are unbeaten seasons really that impressive?
- Giant-killing: teams that beat stronger opponents
- Five in a row: how common are winning streaks?
- The xG luck index: who is fortunate and who is fooling themselves
Management
- New manager, same table: does the bounce actually work?
- The Best Debut Season: ranking managerial arrivals in the Premier League
Record Books
Best-of record books for leagues and tournaments.
- Best of the AFC Champions League Elite: a record book
- Best of the Africa Cup of Nations: a record book
- Best of the Belgian Pro League: every record worth knowing
- Best of the Brazilian Série A: every record worth knowing
- Best of the Bundesliga: every record worth knowing
- Best of the Copa América: a record book
- Best of the Eredivisie: every record worth knowing
- Best of the UEFA European Championship: a record book
- Best of La Liga: every record worth knowing
- Best of Ligue 1: every record worth knowing
- Best of MLS: every record worth knowing
- Best of the Premier League: every record worth knowing
- Best of the Primeira Liga: every record worth knowing
- Best of the Scottish Premiership: every record worth knowing
- Best of Serie A: every record worth knowing
- Best of the Süper Lig: every record worth knowing
- Best of the UEFA Champions League: a record book
- Best of the UEFA Conference League: a record book
- Best of the UEFA Europa League: a record book
- Best of the FIFA World Cup: a record book
Transfers
The transfer market in data.
- Deadline day: football's most expensive 24 hours
- Does big money buy goals? Fee vs. output
- Selling vs buying clubs: the transfer market's hunters and farms
- The price of a player: a history of football's transfer market
- Transfer flows: who sells footballers and who buys them
Awards
Football's individual honours in data.
New reports land here as the notebooks run — check the blog index for the latest.