Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 978 Bytes

README.md

File metadata and controls

20 lines (18 loc) · 978 Bytes

understat-api

API for accessing data from understat.com

Links

  • understat.com
    • (league, season) page
      • can extract match data from page source. look for script containing vars datesData = JSON.parse
      • can similarly find player and team aggregate stats under teamsData and playersData
    • (team, season) page
    • match page
      • can extract shots data from page source. look for script containing var shotsData = JSON.parse
      • can similarly find some match stats (xG perteam, etc) and roster info under match_info and rosterData
    • player page

Core Data Structures

  • League - e.g. EPL
  • LeagueSeason - e.g. EPL 2023
  • Team - e.g. Liverpool
  • TeamSeason - e.g. Liverpool 2023
  • Match - e.g. Liverpool vs Manchester City, 2023-01-01