Understat xG Football Data Scraper avatar

Understat xG Football Data Scraper

Pricing

from $3.00 / 1,000 results

Go to Apify Store
Understat xG Football Data Scraper

Understat xG Football Data Scraper

Scrape Understat (understat.com) for xG (expected goals) football analytics. Get player stats, team stats, and match data for Premier League, La Liga, Bundesliga, Serie A, Ligue 1, and RFPL.

Pricing

from $3.00 / 1,000 results

Rating

0.0

(0)

Developer

Crawler Bros

Crawler Bros

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

8 days ago

Last modified

Share

Scrape Understat (understat.com) for advanced expected goals (xG) football analytics across 6 major leagues. Get player xG, xA, xGChain, xGBuildup, and team performance data.

What This Actor Does

Fetches xG football analytics from Understat including:

  • League Stats: All player xG stats for a season (xG, xA, xGChain, xGBuildup, goals, assists, shots)
  • Team Stats: Aggregated team performance with xG and xGA over a season
  • Player Stats: Full match-by-match xG history for a specific player

Supported Leagues

CodeLeague
EPLPremier League (England)
La_ligaLa Liga (Spain)
BundesligaBundesliga (Germany)
Serie_ASerie A (Italy)
Ligue_1Ligue 1 (France)
RFPLRussian Premier League

Input

FieldTypeDescription
modestringleagueStats, teamStats, or playerStats
leaguestringLeague code (e.g. EPL, La_liga)
seasonstringSeason start year, e.g. 2024 for 2024/25
teamNamestringFilter by team name (teamStats mode)
playerIdstringUnderstat player ID (playerStats mode)
playerNamestringPlayer name filter or lookup
maxItemsintegerMax records to return (default: 10)

Example Input

{
"mode": "leagueStats",
"league": "EPL",
"season": "2024",
"maxItems": 10
}

Output

Player Record (leagueStats / playerStats)

FieldDescription
playerIdUnderstat player ID
playerNamePlayer's name
teamClub name
positionPlaying position
gamesMatches played
goalsGoals scored
assistsAssists
xGExpected goals
xAExpected assists
xGChainxG from all actions in a chain
xGBuildupxG contribution without shot/key pass
yellowCardsYellow cards
redCardsRed cards
shotsTotal shots
minutesPlayedMinutes on pitch
seasonSeason year
leagueLeague name
playerUrlLink to Understat player page

Example Output

{
"playerId": "1250",
"playerName": "Mohamed Salah",
"team": "Liverpool",
"position": "AML",
"games": 32,
"goals": 20,
"assists": 12,
"xG": 18.5,
"xA": 9.2,
"xGChain": 22.1,
"season": "2024",
"league": "Premier League",
"playerUrl": "https://understat.com/player/1250"
}

FAQs

Is this free to use? Yes. Understat is publicly accessible and embeds all data as JSON in the page HTML — no API key required.

What is xG? Expected Goals (xG) measures the quality of goal-scoring chances. Each shot is assigned a probability of being scored based on historical data.

What is xGChain? xGChain is the total xG from every action (pass, dribble, shot) in the sequence of play that led to a shot, credited to every player involved.

How do I get a player ID? Run leagueStats mode first to get the playerId field, then use it in playerStats mode. You can also use playerName to auto-find the ID.

Why does the 2024 season use year 2024 not 2024-2025? Understat uses the start year of the season as the identifier (e.g. 2024 = 2024/25 season).