API for accessing data from understat.com
- 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
andplayersData
- can extract match data from page source. look for script containing
- (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
androsterData
- can extract shots data from page source. look for script containing
- player page
- (league, season) page
League
- e.g. EPLLeagueSeason
- e.g. EPL 2023Team
- e.g. LiverpoolTeamSeason
- e.g. Liverpool 2023Match
- e.g. Liverpool vs Manchester City, 2023-01-01