Opta Scraper | Football Player Stats and xG avatar

Opta Scraper | Football Player Stats and xG

Pricing

from $0.68 / 1,000 players

Go to Apify Store
Opta Scraper | Football Player Stats and xG

Opta Scraper | Football Player Stats and xG

Opta scraper for football stats from Opta Analyst: player goals, assists, xG, npxG, xA, shots, passing, defending and goalkeeping, plus club table, expected points and Power Ranking. Team rows add xGA and title odds. The Premier League came back as 461 players in 39 seconds, 61 fields filled.

Pricing

from $0.68 / 1,000 players

Rating

0.0

(0)

Developer

SilentFlow

SilentFlow

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Opta Scraper | Football Player Stats, xG and League Tables (2026)

Opta players, 61 fields each, from any competition.

From SilentFlow. Creators of Facebook Search Scraper and JD Products Scraper (#1 for “jd” in Apify Store search), with 1,200,000+ combined lifetime runs.

Every player of a league season with Opta's goals, xG, npxG, xA, shots, passing and defending numbers, next to their club's table position, expected points and Power Ranking. The whole Premier League came back as 461 player rows in 39 seconds.

Why choose this actor?

Copying xG off Opta Analyst's charts one player at a time? Lost your free source of Opta's advanced stats when FBref stopped showing them? Asked for a quote on a data feed when all you need is the season numbers of a few leagues?

  • The season numbers of a paid Opta feed, filled. A player row holds 67 fields, and 61 of them were filled on at least half of the 461 rows of our Premier League run: date of birth, nationality and place of birth, position, appearances, minutes, goals, assists, xG, npxG, xA, shots, chances created, passes, progressive carries, tackles, interceptions, cards, and the goalkeeping block (saves, goals prevented, xGOT conceded) for all 25 goalkeepers.
  • The player and the club in the same row. Each player row also carries their club's league position, points, expected points, xG for and against, PPDA, Opta Power Ranking and last match, so a model or a dashboard needs no join. Switch to team rows and La Liga plus Serie A came back as 40 rows in 17 seconds, all 43 fields filled on every row, with Opta's predicted points and title and relegation probabilities.
  • Your own player list, no account. Paste Opta player ids (the same code your Fantasy Premier League data carries), theanalyst.com player links, or both: three players came back as three rows in 11 seconds, each with its permanent theanalyst.com page. No Opta login, no API key, no data contract.

Try Opta Scraper free

Try your first league

Paste this input in the JSON tab of the actor and press Start:

{
"competitions": ["premier-league"]
}

It reads the current Premier League season. You get one row per player who has played in it, regulars first: on our run, 461 players from 20 clubs and 58 nationalities in 39 seconds. Erling Haaland led the league in xG (8.45, for 10 goals), ahead of Thierno Barry (7.53) and Alexander Isak (6.86), and Arsenal sat first with 30 points against 23.55 expected.

The Apify Free plan is enough to run this input: no credit card, no Opta account, no API key.

How it works

Copy to your AI assistant

Paste this block into Claude, ChatGPT or Cursor to give it full context about this scraper:

You have access to the Opta Scraper on Apify: silentflow/opta-scraper
It reads the Opta football stats that Opta Analyst (theanalyst.com) publishes.
One row = one player in one competition season (rowType "players"),
or one team in one competition season (rowType "teams").
Input (all optional; an empty input reads the current Premier League):
- competitions (array of strings): slugs, names or theanalyst.com competition URLs.
Slugs: premier-league, la-liga, serie-a, bundesliga, ligue-1, uefa-champions-league,
uefa-europa-league, uefa-conference-league, english-championship, english-league-one,
english-league-two, scottish-premiership, mls, saudi-pro-league, wsl,
uefa-womens-champions-league, fifa-world-cup, euro, copa-america, africa-cup-of-nations,
concacaf-gold-cup, fifa-club-world-cup, uefa-euros-women
- playerIds (array of strings): Opta player ids (223094 or p223094, the FPL "code") or Opta player uuids
- playerUrls (array of strings): theanalyst.com player pages (https://theanalyst.com/players/4137/erling-haaland)
- season (string, default "current"): "current", "2025/2026", "2025/26" or "2025"
- rowType (string, default "players"): "players" or "teams"
- teams (array of strings): keep only these clubs (name, 3-letter code or theanalyst.com team URL)
- minMinutes (integer, default 0): keep players with at least this many minutes
- maxItems (integer, default 500): most rows saved; with a player list, most rows per player
- debugMode (boolean, default false)
Player row (67 fields):
- id (string, "<playerId>-<seasonId>", stable), url (string, permanent theanalyst.com player page)
- player, firstName, lastName (string), playerId (integer, Opta id), playerUuid (string)
- dateOfBirth (YYYY-MM-DD), age (integer), nationality, secondNationality, placeOfBirth (string or null)
- playerPosition (Goalkeeper, Defender, Midfielder, Forward), detailedPosition (string), shirtNumber (integer)
- team, teamCode, teamId, teamUrl, competition, competitionId, season, seasonId (string)
- appearances, minutesPlayed, goals, assists, npGoals, shots, shotsOnTarget, chancesCreated, passes,
progressiveCarries, tackles, interceptions, recoveries, aerialDuelsWon, yellowCards, redCards (integer or null)
- xg, npxg, xa, goalsMinusXg, xgPer90, xaPer90, xgPerShot (number or null)
- shotConversion, passAccuracy (number, percent, or null)
- saves, goalsConceded (integer or null), savePercentage (percent), goalsPrevented, xgotConceded (number or null): goalkeepers only
- teamLeaguePosition, teamPoints (integer), teamExpectedPoints, teamXg, teamXgAgainst, teamPpda, teamPowerRating (number or null)
- lastMatchId (string), lastMatchDate (RFC 3339), lastMatch ("Home vs Away"), lastMatchScore ("2-0")
- statsUpdatedAt, scrapedAt (RFC 3339), dataType ("player")
Team row (43 fields): the same id, url, team, competition, season and team context fields, plus
played, won, drawn, lost, goalsFor, goalsAgainst, goalDifference, form ("WWDLWW"), teamExpectedPosition,
npxg, shots, shotsOnTarget, shotsAgainst, possession, passAccuracy, highTurnovers, teamPowerGlobalRank,
predictedPoints, titleProbability, relegationProbability (percent), dataType ("team").
Use apify-client for Python or JavaScript.

How to scrape Opta player and team stats

Get every club's table, xG and expected points in two leagues

{
"competitions": ["la-liga", "serie-a"],
"rowType": "teams"
}

One row per club: 40 rows in 17 seconds on our run. Barcelona led La Liga with 42 points and an 81.32% chance of the title in Opta's season simulation. In Serie A, Lazio sat first with 35 points against 21.21 expected, and Opta gave Internazionale, third, the best title odds at 44%.

Pull the regulars of three clubs in the Champions League

{
"competitions": ["uefa-champions-league"],
"teams": ["Arsenal", "Real Madrid", "BAR"],
"minMinutes": 200
}

Clubs can be named or given by their three-letter code. This run returned the 38 players of Arsenal, Barcelona and Real Madrid with at least 200 Champions League minutes, in 13 seconds. Their team context is the Champions League table: Arsenal were seventh with 11 points.

{
"playerIds": ["223094", "p154561"],
"playerUrls": ["https://theanalyst.com/players/3782/martin-odegaard"],
"maxItems": 1
}

Three rows in 11 seconds: Erling Haaland, David Raya and Martin Ødegaard, each in their domestic league, which is searched first. With maxItems at 1 you get one row per player; raise it to also get their rows in European competitions.

Input parameters

ParameterTypeDefaultWhat it does
competitionsarray of stringsprefilled with premier-leagueThe competitions to read, in this order. Each player with minutes in the season becomes one row.
playerIdsarray of stringsnoneOpta player ids or uuids to follow instead of a whole competition. Each player gives one row per competition they play in this season.
playerUrlsarray of stringsnonetheanalyst.com player pages, read together with playerIds.
seasonstringcurrentThe season being played, or a past season by its starting year.
rowTypestringplayersplayers for one row per player, teams for one row per club.
teamsarray of stringsnoneKeep only these clubs. Empty keeps every club of the competition.
minMinutesinteger0Keep only players with at least this many minutes this season.
maxItemsinteger500The most rows the run saves. Players come regulars first (most minutes), so a low number keeps each club's starters. With a player list, the most rows per player.
debugModebooleanfalseWrites detailed progress to the log, for troubleshooting.

Accepted formats

  • Competitions: a slug (premier-league, la-liga), a name (Serie A, Champions League), a common short name (EPL, UCL, AFCON, MLS) or a theanalyst.com competition link (https://theanalyst.com/competition/bundesliga). 23 competitions are listed in the form: the big five leagues, the three UEFA club competitions, the English Championship, League One and League Two, the Scottish Premiership, MLS, the Saudi Pro League, the Women's Super League, the UEFA Women's Champions League and seven international tournaments.
  • Player ids: the Opta id as a number (223094) or with its p prefix (p223094), as Opta feeds write it. The code field of Fantasy Premier League player data is this same id. An Opta player uuid (atzboo800gv7gic2rgvgo0kq1) works too.
  • Player links: https://theanalyst.com/players/4137/erling-haaland, and its /stats or /career pages. The number in the link is theanalyst.com's own page number, not the Opta id: both are given back in every row (url and playerId).
  • Seasons: current, latest, 2025/2026, 2025/26, 2025-26 or 2025. A tournament season is its edition year (2024 for Euro 2024).
  • Teams: the club name as the site writes it (Manchester City, Internazionale), its three-letter code (MCI, BAR) or its theanalyst.com page (https://theanalyst.com/football/team/scm-3/arsenal). Accents and case do not matter.
  • Duplicates are skipped and counted in the log. Entries that are neither a competition nor a player are listed in the log and return no row.

What data can you extract from Opta Analyst?

Opta Analyst (theanalyst.com) is the free editorial site that Stats Perform, the company behind Opta, runs on its own data. This actor turns its season stats into rows.

A player row is one player in one competition season, 67 fields in nine groups:

GroupFields
Identity (7)id, url, player, firstName, lastName, playerId, playerUuid
Profile (8)dateOfBirth, age, nationality, secondNationality, placeOfBirth, playerPosition, detailedPosition, shirtNumber
Club and season (8)team, teamCode, teamId, teamUrl, competition, competitionId, season, seasonId
Attacking (15)appearances, minutesPlayed, goals, assists, npGoals, xg, npxg, xa, goalsMinusXg, xgPer90, xaPer90, shots, shotsOnTarget, shotConversion, xgPerShot
Creating and defending (10)chancesCreated, passes, passAccuracy, progressiveCarries, tackles, interceptions, recoveries, aerialDuelsWon, yellowCards, redCards
Goalkeeping (5)saves, savePercentage, goalsConceded, goalsPrevented, xgotConceded
Club context (7)teamLeaguePosition, teamPoints, teamExpectedPoints, teamXg, teamXgAgainst, teamPpda, teamPowerRating
Last match (4)lastMatchId, lastMatchDate, lastMatch, lastMatchScore
Meta (3)statsUpdatedAt, scrapedAt, dataType

A team row is one club in one competition season, 43 fields: identity and season (id, url, team, teamCode, teamId, competition, competitionId, season, seasonId), the table (teamLeaguePosition, teamPoints, played, won, drawn, lost, goalsFor, goalsAgainst, goalDifference, form), expected numbers (teamExpectedPoints, teamExpectedPosition, teamXg, teamXgAgainst, npxg), play style (shots, shotsOnTarget, shotsAgainst, possession, passAccuracy, teamPpda, highTurnovers), Opta's ratings and simulation (teamPowerRating, teamPowerGlobalRank, predictedPoints, titleProbability, relegationProbability), the last match and the same meta fields.

A few facts that help when you use the data:

  • id joins the Opta player id and the season id (223094-6pdwluctev9iebv00r4qqukno), so a player has one row per competition season and the same id from one run to the next. url is the player's permanent theanalyst.com page; it was filled on all 461 rows of our Premier League run.
  • playerId is the Opta id that Opta feeds, Fantasy Premier League data and most football databases share, so the rows join your other data without a name match.
  • Goalkeepers carry the goalkeeping block and no shooting or passing numbers; outfield players carry the reverse. On our run, all 25 goalkeepers had their saves and goals prevented (Lukás Hornícek led at 6.66), and every outfield player had their shooting, passing and defending numbers.
  • xa, xg and the other expected numbers come from Opta's own models, the same ones the Opta Analyst site publishes. Percentages (passAccuracy, shotConversion, savePercentage, possession, titleProbability) run from 0 to 100.
  • secondNationality is filled only for players who have one: 222 of the 461 Premier League rows on our run.
  • Dates are RFC 3339 in UTC (2026-12-02T19:30:00Z); dateOfBirth is a plain date (2000-07-21).

The dataset has two ready-made views: Players (name, club, position, nationality, minutes, goals, xG, xA, link) and Teams (table position, points, expected points, xG, xGA, Power Ranking).

Output example

One player row from the default run, complete:

{
"id": "223094-6pdwluctev9iebv00r4qqukno",
"url": "https://theanalyst.com/players/4137/erling-haaland",
"player": "Erling Haaland",
"firstName": "Erling",
"lastName": "Haaland",
"playerId": 223094,
"playerUuid": "atzboo800gv7gic2rgvgo0kq1",
"dateOfBirth": "2000-07-21",
"age": 26,
"nationality": "Norway",
"secondNationality": "England",
"placeOfBirth": "Leeds",
"playerPosition": "Forward",
"detailedPosition": "Striker",
"shirtNumber": 9,
"team": "Manchester City",
"teamCode": "MCI",
"teamId": "a3nyxabgsqlnqfkeg41m6tnpp",
"teamUrl": "https://theanalyst.com/football/team/scm-43/manchester-city",
"competition": "Premier League",
"competitionId": "2kwbbcootiqqgmrzs6o5inle5",
"season": "2026/2027",
"seasonId": "6pdwluctev9iebv00r4qqukno",
"appearances": 12,
"minutesPlayed": 1070,
"goals": 10,
"assists": 0,
"npGoals": 10,
"xg": 8.45,
"npxg": 8.45,
"xa": 0.937,
"goalsMinusXg": 1.55,
"xgPer90": 0.71,
"xaPer90": 0.08,
"shots": 46,
"shotsOnTarget": 21,
"shotConversion": 21.74,
"xgPerShot": 0.18,
"chancesCreated": 6,
"passes": 158,
"passAccuracy": 64.56,
"progressiveCarries": 25,
"tackles": 2,
"interceptions": 2,
"recoveries": 21,
"aerialDuelsWon": 29,
"yellowCards": 0,
"redCards": 0,
"saves": null,
"savePercentage": null,
"goalsConceded": null,
"goalsPrevented": null,
"xgotConceded": null,
"teamLeaguePosition": 2,
"teamPoints": 26,
"teamExpectedPoints": 21.97,
"teamXg": 22.98,
"teamXgAgainst": 15.42,
"teamPpda": 10.3,
"teamPowerRating": 97.41,
"lastMatchId": "53z04m6lha8l3b3g8jf19xes4",
"lastMatchDate": "2026-12-02T19:30:00Z",
"lastMatch": "Manchester City vs Leeds United",
"lastMatchScore": "2-0",
"statsUpdatedAt": "2026-12-02T06:23:30Z",
"scrapedAt": "2026-12-03T10:37:05Z",
"dataType": "player"
}

Advanced usage

Refresh your model's team inputs after every matchday

{
"competitions": ["premier-league", "la-liga", "serie-a", "bundesliga", "ligue-1"],
"rowType": "teams"
}

Save it as a task and schedule it for Monday and Thursday mornings. Each run gives every club's points, expected points, xG, xGA, npxG, PPDA, high turnovers, Power Ranking and Opta's predicted final points, ready for a Poisson or Elo model. Six other competitions (Bundesliga, Ligue 1, Championship, Scottish Premiership, MLS and WSL) came back as 116 team rows in 56 seconds on our run.

Check your Fantasy Premier League shortlist before the deadline

{
"competitions": ["premier-league"],
"playerIds": ["223094", "184029", "154561"],
"maxItems": 1
}

Paste the code of each player in your FPL data. Naming the competition makes the run read only the Premier League, so it ends faster. Compare xgPer90, xaPer90, shots and minutesPlayed week to week to see who is getting chances and who is losing minutes.

Build a scouting pool of regulars in the lower leagues

{
"competitions": ["english-championship", "english-league-one", "scottish-premiership"],
"minMinutes": 900,
"maxItems": 2000
}

minMinutes at 900 keeps players with ten full matches or more, so their per-90 numbers mean something. Each row brings date of birth, nationality, second nationality and place of birth, the profile fields a recruitment report starts with. In the Premier League, 104 of 461 players had 900 minutes or more on our run.

Look back at last season with the final table

{
"competitions": ["premier-league"],
"season": "2024/2025",
"minMinutes": 1800,
"maxItems": 60
}

A past season gives the final numbers, each club's final position and points, and its last match of the season: on our run, all 60 rows of 2024/2025 ended on the final day, 25 May 2025. Opta Analyst keeps past player stats for the big leagues; the Premier League went back to 2023/2024 in our tests. teamPowerRating is a live rating, so it stays empty for past seasons.

Export the shortlist to a spreadsheet from Python

{
"competitions": ["premier-league", "la-liga"],
"minMinutes": 450
}

Then keep the strikers who get chances and write a CSV for your team:

import csv
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("silentflow/opta-scraper").call(
run_input={"competitions": ["premier-league", "la-liga"], "minMinutes": 450}
)
rows = [
r for r in client.dataset(run["defaultDatasetId"]).iterate_items()
if r["playerPosition"] == "Forward" and (r.get("xgPer90") or 0) >= 0.4
]
rows.sort(key=lambda r: r["xgPer90"], reverse=True)
with open("forwards.csv", "w", newline="") as f:
w = csv.DictWriter(f, fieldnames=["player", "team", "competition", "age", "minutesPlayed", "goals", "xg", "xgPer90", "url"])
w.writeheader()
for r in rows:
w.writerow({k: r.get(k) for k in w.fieldnames})

The same dataset downloads as CSV, Excel or JSON from the run page, or from https://api.apify.com/v2/datasets/{DATASET_ID}/items?format=csv.

FAQ

What is Opta Analyst? Opta Analyst (theanalyst.com) is the editorial site of Stats Perform, the company that owns Opta, the football data provider. It publishes season stats, expected goals, league tables, expected and predicted tables and the Opta Power Rankings for the competitions it covers. This actor reads those numbers and gives them back as rows.

What does one row contain? With the default players rows, one player in one competition season: profile, club, season totals, expected numbers, the goalkeeping block for goalkeepers, their club's place in the table and its last match. A player in the Premier League and the Champions League gives two rows. With teams rows, one club in one competition season, with the table, expected numbers, Power Ranking and Opta's season simulation.

Do I need an Opta account, an API key or a data contract? No. The actor reads what Opta Analyst shows every visitor. You only need an Apify account; the Free plan runs the default input.

How fresh is the data? Every run reads the site at that moment. Opta Analyst updates its season stats after the matches are played, and statsUpdatedAt tells you when it last did. On our run of 3 December 2026, the stats were updated at 06:23 UTC on 2 December, and the evening matches of 2 December already showed as lastMatch with their score, while their numbers were not yet in the season totals.

Which competitions and seasons can I read? The 23 competitions in the form, men's and women's, club and international. The current season always works. Past seasons work where Opta Analyst keeps them: the Premier League went back to 2023/2024 in our tests, and MLS shows only its current season. A season the site does not publish ends with a clear message and no rows.

How do I find a player's Opta id? Three ways. If you use Fantasy Premier League data, the code of each player is their Opta id (Erling Haaland is 223094). Every row of this actor gives it in playerId, so one competition run gives you the ids of the whole league. Or skip ids and paste theanalyst.com player links in playerUrls.

Why are some fields empty? Because the source has nothing to put there, never because a row was cut short. Goalkeepers have no shooting or passing numbers and outfield players no goalkeeping numbers. secondNationality exists only for dual nationals. teamPowerRating is a live league rating: it is empty for cups, tournaments and past seasons. relegationProbability is empty where the table marks no relegation places (MLS, and the Scottish Premiership, whose table shows its split instead). MLS and WSL clubs have no team page on theanalyst.com, so their team rows have no url.

How many rows can one run return? There is no fixed limit: maxItems sets it, 500 by default, enough for one league (the Premier League gave 461 player rows on our run). Raise it when you read several competitions. Players come regulars first, so a low maxItems keeps the starters.

Can I combine the filters? Yes, they stack. competitions plus teams plus minMinutes plus season gives, for example, the Arsenal players with 1,800 minutes or more in the 2024/2025 Premier League. With a player list, competitions narrows where each player is searched and maxItems caps the rows per player.

Can I use the numbers in an article, an app or a model? The data is published by Opta Analyst, and its press page asks for a credit and a link to the site when its data or graphics are reused. Every row carries the theanalyst.com link to cite. For a commercial product built on Opta data, check the licence you need with Stats Perform.

More SilentFlow scrapers

🛒 E-commerce

💼 Jobs

🏠 Real estate

📣 Social media

🏢 Business data

✈️ Travel

🎯 Lead generation

🔎 SEO

🎬 Video

📰 News

🧰 More tools

Support

Need something this scraper doesn't do yet? We ship features fast.

  • Feature requests go straight to our backlog
  • Enterprise needs? We do custom integrations and high-volume plans
  • Pricing questions? Check the Monetization tab on the actor page

Response time: usually under 24 hours.

This Actor extracts the football statistics that Opta Analyst (theanalyst.com) publishes for any visitor. It does not bypass any login, paywall or CAPTCHA and reads no page that needs an account. Opta data belongs to Stats Perform: users are responsible for complying with theanalyst.com's terms and Stats Perform's rights, and with the laws that apply to them, including data protection laws such as the GDPR, the CCPA and the PIPL where relevant. Rows describe professional footballers and include personal data (full name, date of birth, nationality, place of birth): process it for a legitimate purpose, keep only what you need, and handle it accordingly. The numbers are informational; verify them before using them for betting, trading or other regulated decisions.

Opta Scraper by SilentFlow: Opta's player and team season stats, a whole league in one table.