
Sofascore Match Stats Scraper - Live Scores, Odds & Lineups
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.

[SPORTS · DEVELOPER TOOLS]
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.
Input: 25 fields, none required. Billed per event on the free Apify plan: Match record $0.015, Match statistics record $0.01, Box score player record $0.01 and 11 more events. Results export as JSON, CSV or Excel. Last updated 2026-11-04.
01 / INPUT
teamNamesarrayTeam names, one per line, e.g. Los Angeles Lakers (NBA, EuroLeague, others). Empty with no match IDs uses the Lakers. default: ["Los Angeles Lakers"]eventIdsarraySpecific Sofascore match IDs, e.g. 12345678, from a match link ending in id:12345678. Skips the team search.maxItemsintegerRows in total (games, roster players, standings rows, profiles), e.g. 10. Free plan: 10. Each extra record is billed, so keep it low on a first run. default: 10gameWindowstringPlayed, upcoming or both. Without dates a team returns its last 30 played and next 30 upcoming games. default: "both"dateFromstringExample: 2025-01-01. Setting a date pages back through the whole team history, 30 games per page. default: ""dateTostringExample: 2025-03-31. default: ""liveOnlybooleanIgnores teams and match IDs and returns every basketball game live right now. default: falsetournamentsarrayA Sofascore competition ID (132 = NBA), a name (NBA, EuroLeague) or id:season (132:65360). default: []tournamentSeasonstringlatest (default) or a season like 2024/2025. A season that has not started has no played games. default: ""includeStatisticsbooleanTeam-level scoring, rebounds and other stats for the full game and each quarter. Off by default because it is billed per statistic line (about 71 lines for a finished NBA game, so roughly $0.71 extra per game at $0.01 per line). Turn on only when you need team stat lines. default: falseincludeBoxScorebooleanFull per-player stat line for the game: points, rebounds, assists, steals, blocks, shooting splits, plus-minus, efficiency rating. default: falseincludeLineupsbooleanStarters vs bench, position and jersey number for both teams in this specific game. default: falseincludeH2hbooleanHistorical wins/losses between the two teams. default: falseincludePlayByPlaybooleanEvery real scoring play in the game (1/2/3-pointers and free throws), with player, time and running score. default: falseincludeScoreGraphbooleanThe point-margin-over-time curve for the whole game, minute by minute. default: falseincludeShotChartbooleanEvery field-goal attempt of the game in time order: shooter, 2PT or 3PT, made or missed, shot style, x/y court position (inches on a 1128 x 600 court), zone, distance to the hoop in feet, assist and blocker. Sofascore has shot coordinates only for NBA games from the 2024/25 season on; for every other game this stays empty and nothing is charged. Billed per shot. default: falseincludePlayLogbooleanEvery play of the game in time order (shots, free throws, rebounds, turnovers, fouls, timeouts, lineup changes), with period, clock, running score and, for shots, the court position. Same coverage as the shot chart: NBA games from the 2024/25 season on, empty and not charged elsewhere. The play log already contains the shots, so you do not need the shot chart as well. Billed per play. default: falseincludeOddsbooleanBookmaker odds for the game result market. Informational data only, not betting advice. default: falseincludeOddsMarketsbooleanEvery odds market Sofascore lists for the game: moneyline, quarter and half winners, point spread and game total, one line per outcome with the line, the current and the opening price (fractional and decimal). NBA, EuroLeague, ACB, Lega Basket and WNBA games have all five; other leagues often only the moneyline. Billed per odds line. Informational data only, not betting advice. default: falseincludeRosterbooleanThe team's full season roster: every player with position, height, weight, birth date, country and jersey number, plus salary and contract end where Sofascore has them (NBA players). Computed once per unique team in the run, not once per game. default: falseincludeStandingsbooleanThe league table for the team's competition. Computed once per unique tournament/season in the run, not once per game. default: falseplayerProfilesarrayA name (LeBron James), a Sofascore player ID (817181) or a player link. A name uses the best basketball match, so prefer the ID or link for exact results. default: []onlyNewbooleanSkips games this same search already returned. Skipped games are not charged. Maximum results then means N new games. default: falsestateKeystringA label, e.g. lakers-watch, to run several monitors with the same filters. default: ""resetSeenbooleanClears the seen list for this search and monitor name before the run. 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 record $0.015, Match statistics record $0.01, Box score player record $0.01 and 11 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 25 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 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.

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 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?