RECORDSDATA

[SPORTS · DEVELOPER TOOLS]

Basketball Scraper: Box Scores, Play-by-Play & Odds

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.

STATUS
PRODUCTION
INPUT FIELDS
25
REQUIRED
0
PRICING
PAY PER EVENT
UPDATED
2026-11-04
OUTPUT
JSON, CSV, Excel

01 / INPUT

What you can configure.

FIELDTYPEDESCRIPTION
TeamsteamNamesarrayTeam names, one per line, e.g. Los Angeles Lakers (NBA, EuroLeague, others). Empty with no match IDs uses the Lakers. default: ["Los Angeles Lakers"]
Match IDs (optional)eventIdsarraySpecific Sofascore match IDs, e.g. 12345678, from a match link ending in id:12345678. Skips the team search.
Maximum resultsmaxItemsintegerRows 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: 10
Played or upcoming?gameWindowstringPlayed, upcoming or both. Without dates a team returns its last 30 played and next 30 upcoming games. default: "both"
Games from (YYYY-MM-DD, UTC)dateFromstringExample: 2025-01-01. Setting a date pages back through the whole team history, 30 games per page. default: ""
Games until (YYYY-MM-DD, UTC)dateTostringExample: 2025-03-31. default: ""
Live games onlyliveOnlybooleanIgnores teams and match IDs and returns every basketball game live right now. default: false
CompetitionstournamentsarrayA Sofascore competition ID (132 = NBA), a name (NBA, EuroLeague) or id:season (132:65360). default: []
SeasontournamentSeasonstringlatest (default) or a season like 2024/2025. A season that has not started has no played games. default: ""
Team statistics (per quarter)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: false
Player box scoresincludeBoxScorebooleanFull per-player stat line for the game: points, rebounds, assists, steals, blocks, shooting splits, plus-minus, efficiency rating. default: false
LineupsincludeLineupsbooleanStarters vs bench, position and jersey number for both teams in this specific game. default: false
Head-to-head recordincludeH2hbooleanHistorical wins/losses between the two teams. default: false
Play-by-play (scoring plays)includePlayByPlaybooleanEvery real scoring play in the game (1/2/3-pointers and free throws), with player, time and running score. default: false
Score margin graphincludeScoreGraphbooleanThe point-margin-over-time curve for the whole game, minute by minute. default: false
Shot chart (NBA 2024/25 on)includeShotChartbooleanEvery 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: false
Full play log (NBA 2024/25 on)includePlayLogbooleanEvery 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: false
Betting odds (result market)includeOddsbooleanBookmaker odds for the game result market. Informational data only, not betting advice. default: false
All odds marketsincludeOddsMarketsbooleanEvery 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: false
Team roster (once per team)includeRosterbooleanThe 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: false
League standings (once per competition)includeStandingsbooleanThe league table for the team's competition. Computed once per unique tournament/season in the run, not once per game. default: false
PlayersplayerProfilesarrayA 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: []
Only new gamesonlyNewbooleanSkips games this same search already returned. Skipped games are not charged. Maximum results then means N new games. default: false
Monitor name (optional)stateKeystringA label, e.g. lakers-watch, to run several monitors with the same filters. default: ""
Forget seen gamesresetSeenbooleanClears the seen list for this search and monitor name before the run. default: false

02 / PRICING

Pay for what you collect.

EVENTDETAILPRICE
Match record · BASEOne basketball game: teams, score by quarter, status, tournament.$0.015
Match statistics recordOne team stat line, broken out by full game and each quarter.$0.01
Box score player recordOne player full stat line for the game: points, rebounds, assists, shooting splits, plus-minus, efficiency rating.$0.01
Lineup recordOne player starter/bench status, position and jersey number for this specific game.$0.01
Head-to-head recordHistorical wins/losses tally between the two teams.$0.01
Odds recordBookmaker odds for the game result market.$0.01
Score graph recordThe point-margin-over-time curve for the whole game, minute by minute.$0.01
Play-by-play recordOne real scoring play: player, time, points, running score.$0.01
Roster recordOne player on a team season roster: position, height, weight, jersey, contract.$0.01
Standings recordOne team row in its conference/division standings table.$0.01
Shot chart entryOne field-goal attempt of a game: shooter, 2PT or 3PT, made or missed, court position (x, y), zone, distance in feet, assist or block. NBA games from 2024/25.$0.0003
Play log entryOne play of a game in time order (shot, free throw, rebound, turnover, foul, timeout, lineup change) with player, clock and running score. NBA games from 2024/25.$0.00015
Odds market lineOne priced outcome of a game market: moneyline, quarter or half winner, point spread or game total, with its line, decimal odds and opening odds.$0.0015
Player profileOne basketball player profile: team, position, height, weight, birth date, country and, for NBA players, salary and contract end date.$0.003

Prices in USD, shown for the Apify free plan. Paid Apify plans get tiered discounts. Platform usage is included.

03 / FAQ

About the Basketball Scraper.

How much does the Basketball Scraper cost?

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.

What input does the Basketball Scraper need?

No field is required. The Actor has 25 input fields and every one has a default.

Which formats can I export the Basketball Scraper results in?

Results are saved to an Apify dataset. Download them as JSON, CSV or Excel, or fetch them through the Apify API.

04 / RELATED

More from the same family.

[01]

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.

PRODUCTIONSPORTS
VIEW ACTOR
[02]

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.

PRODUCTIONSPORTS
VIEW ACTOR
[03]

Liquipedia Scraper: Esports Teams, Players & Tournaments

Scrape Liquipedia esports wikis: search, categories and team, player or tournament pages with parsed infobox fields. Export CSV, JSON, Excel, XML.

PRODUCTIONGAMES
VIEW ACTOR

NEXT SOURCE

What should we collect next?

Have a source that needs structured data?

Build an Actor