
Understat Scraper: Football xG & Player Stats
Scrape Understat xG, xA, npxG and shots per player for 6 top leagues back to 2014, with per-90 rates and G-xG. Export CSV, Excel, JSON. No login.

[SPORTS · DEVELOPER TOOLS]
Scrape Sofascore match stats, lineups, xG shot maps, player ratings and odds for 11 sports by team, match ID or live. Export CSV, JSON, Excel. No login.
Input: 33 fields, none required. Billed per event on the free Apify plan: Match summary $0.01, Match statistics $0.01, Lineup record $0.011 and 5 more events. Results export as JSON, CSV or Excel. Last updated 2026-11-04.
01 / INPUT
teamNamesarrayTeam names to look up (e.g. "Real Madrid"). Each name is resolved to its Sofascore team id by search, then the team's recent and upcoming matches are collected, one row per match. Ignored when Live matches only is on. If you only fill Event IDs, leave this default alone and it is skipped. default: ["Real Madrid"]eventIdsarraySpecific Sofascore match IDs to fetch directly, bypassing team search. Find an ID in a Sofascore match URL, e.g. sofascore.com/.../id:12345678.sportstringSport of the team names, competitions, players, day schedule and live matches. Names are searched in this sport first (Real Madrid exists in football and basketball, and two players named Nikola Jokic play in different sports). An id or a page URL is exact and ignores this. default: "football"liveOnlybooleanIgnore Team names / Event IDs and instead fetch every match currently live in the sport selected above. default: falsegameWindowstringWhich matches of a team or competition to list: played, upcoming or both. Without dates, a team returns its latest 30 played and next 30 upcoming matches. default: "both"dateFromstringOnly matches that start on or after this date (UTC). Setting a date makes the actor page back through the history of the team or competition, 30 matches per page. default: ""dateTostringOnly matches that start on or before this date (UTC). default: ""tournamentsarrayList every match of whole competition seasons. Use a Sofascore competition id (8 is LaLiga, 17 the Premier League), a name (LaLiga, Champions League) or id:seasonId (8:77559). Searched in the sport chosen above. Combines with the matches and dates above. default: []tournamentSeasonstringSeason to list for the competitions above: latest (default) or a season such as 25/26 or 2025. default: ""datestringEvery match of the chosen sport on this UTC day, biggest competitions first, so Max Items keeps the most important fixtures. Add competitions above to restrict the day to them. When set, the default team is not added. default: ""daysAheadintegerAlso list the following days (0 to 13) of the day schedule above. default: 0maxItemsintegerMaximum number of rows to return: matches, or profiles and search results. Free users are limited to 10 rows (preview). Paid users can raise it up to 1,000,000. Extras you turn on are billed per row on top of this. default: 10teamProfilesarrayTeams to return a profile for: a name (Real Madrid), a Sofascore team id (2829) or a team page URL. One row per team with country, league, manager, stadium, colours, founding date and current form. A name that exists in several sports resolves in the chosen Sport. default: []playerProfilesarrayPlayers to return a profile for: a name (Lionel Messi), a Sofascore player id (12994) or a player page URL. One row per player with position, height, birth date, foot, club, market value and contract end. Tennis, darts and other individual-sport athletes return ranking, prize money, hand and birthplace. A name shared by players of different sports resolves in the chosen Sport. default: []competitionProfilesarrayCompetitions (leagues, cups, tours) to return a profile for: a name (LaLiga), a Sofascore competition id (8) or a competition page URL. One row per competition with tier, title holder, most titles, divisions, current season and the list of seasons. A name that exists in several sports resolves in the chosen Sport. default: []searchQueriesarrayNames to search on Sofascore (at least 2 characters). One row per result with its id, name, sport, country, link and relevance score. Searches every sport; each row says which one. Up to 10 pages of 20 results per name, as far as Max Items allows. default: []searchTypestringWhich kind of result to keep when searching by name. default: "all"searchFullProfilesbooleanInstead of one short row per search result, fetch the full profile of each result (one extra request and one profile record per result). default: falseincludeSquadbooleanAdd the full squad to each team profile: id, name, position, shirt number, height, birth date, foot, nationality, market value and contract end per player. One extra event per team with a squad. default: falseincludeTransfersbooleanAdd the transfer history to each player profile: date, clubs and fee. One extra event per player with transfers. Not available for tennis and other individual-sport athletes. default: falseincludeStatisticsbooleanPossession, shots, cards and other aggregated team stats. default: trueincludeLineupsbooleanStarting XI, formation, substitutes for both teams. default: falseincludeShotmapbooleanEvery shot in the match: player, position, outcome. Football/basketball/handball only, other sports return an empty array. default: falseincludePlayerRatingsbooleanPer-player performance rating for the match. default: falseincludeH2hbooleanHistorical wins/draws/losses between the two teams. default: falseincludeOddsbooleanLive bookmaker odds for the match result market. Informational data only, not betting advice. default: falseincludePregameFormbooleanRecent results and average rating for both teams heading into the match. default: falseincludeIncidentsbooleanGoals, cards, substitutions and period markers with minute, team, players and score. One extra event per match that returns incidents. default: falseincludeVotesbooleanSofascore fan votes: home win, draw, away win and, for football, both teams to score and first team to score. One extra event per match with votes. default: falseincludeStandingsbooleanThe standings table of the competition season the match belongs to (position, played, wins, draws, losses, goals, points). Also adds the current table to competition profiles. One extra event per match or competition with a table. default: falseonlyNewbooleanOnly new matches: skip every match this same search already returned in an earlier run in the same state (upcoming, finished, or a new live score), so scheduled runs return just what changed and you are not charged for skipped matches. Max Items then means N new matches. Off by default. default: falsestateKeystringOptional label for the monitor state. Use a different label to run several independent monitors with identical filters. Leave empty to share state between runs of the same search. default: ""resetSeenbooleanClear the stored list of already-seen matches for this search (and Monitor name) before the run starts, so everything counts as new again. default: false02 / PRICING
Prices in USD, shown for the Apify free plan. Paid Apify plans get tiered discounts. Platform usage is included.
03 / FAQ
It charges per event: Match summary $0.01, Match statistics $0.01, Lineup record $0.011 and 5 more events. Prices are for the free Apify plan, and paid Apify plans get tiered discounts. Apify platform usage is included in the event price.
No field is required. The Actor has 33 input fields and every one has a default.
Results are saved to an Apify dataset. Download them as JSON, CSV or Excel, or fetch them through the Apify API.
04 / RELATED

Scrape Understat xG, xA, npxG and shots per player for 6 top leagues back to 2014, with per-90 rates and G-xG. Export CSV, Excel, JSON. No login.

Scrape basketball box scores, play-by-play, odds, rosters and standings for any NBA or EuroLeague team. No login or API key. Export CSV, Excel or JSON.

Scrape Liquipedia esports wikis: search, categories and team, player or tournament pages with parsed infobox fields. Export CSV, JSON, Excel, XML.
NEXT SOURCE
Have a source that needs structured data?