Basketball Reference Scraper for Box Scores, Player Stats and Lineups

Basketball Reference keeps box scores back to 1946-47 on linked player, team and game pages. Our Basketball Reference scraper delivers them as joined tables.

Plans from €169 a month · Free project assessment · Reply within 1 business day

API · JSON feed · CSV · Excel · JSON · XML · FTP · SFTP · Amazon S3 · Google Cloud

basketball-reference.com
Basketball Reference Scraper for Box Scores, Player Stats and Lineups
basketball-reference.comwhat you get
Typical fields for sports sites
leaguehome_teamaway_teamstart_timescoreodds
Delivery

API, JSON feed or CSV, XLSX and JSON files

Schedule

One-time, monthly, weekly, daily or 3 times a day

Basketball Reference Web Scraping, Season After Season

  1. You send

    Basketball Reference pages, filters, fields and a schedule

  2. We run the scrapers

    Built, monitored and repaired by our team

  3. You receive the data

    API, JSON feed or CSV, XLSX and JSON files

The site is made of statistical tables, dozens on one player page, many of them tucked into tabs that switch between regular season and playoffs. Copying one is easy. Keeping all of them aligned across seasons, trades and leagues is the job you hand to us.

Your brief names the league, the seasons and the level of detail: season lines, game logs, full box scores or every event of a game. We build the crawl around it, watch the runs, and fix the parsing when a column is added or renamed. Anti-bot handling, paced requests, proxy rotation and CAPTCHA handling come with the service.

During the season a run each morning adds last night's games; the archive is usually a one-off. The project assessment is free, and one team season can be ordered as a sample.

Basketball Reference Dataset: Tables and Fields

Every player carries a short code in the page address, for example jokicni01, every team a three-letter abbreviation, and every game a code built from the date and the home team. We keep all three as keys, so the tables below join without matching names.

  • Player profileposition, shooting hand, height, weight, birth date and place, draft pick, debut, experience, uniform numbers, honors.
  • Season linesper game, totals, per 36 minutes and per 100 possessions, from G, GS and MP through shooting splits and rebounds to points and awards.
  • Advanced statsPER, TS%, usage, rebound and assist rates, offensive and defensive win shares, WS/48, BPM and VORP.
  • Shootingaverage distance, share and accuracy by distance range, assisted share, dunks, corner threes and half-court attempts, plus league-adjusted shooting.
  • Position and on-courtposition estimates, on-off per 100 possessions, bad passes, lost balls, fouls drawn, and-ones.
  • Box scoresdate, tip-off time, arena, line score, starters and reserves with basic and advanced lines, quarter and half splits, GmSc and plus/minus, inactive list, officials, attendance, time of game.
  • Team seasonsrecord, coach, SRS, pace, offensive, defensive and net rating, expected record, preseason odds, rosters; Four Factors come per game.
  • Moneysalaries by season, contracts by future year, guaranteed total, player and team options.
  • Draftround, pick, team, college and the career line that followed.

A traded player appears as a combined 2TM or 3TM row above one row per club. We flag the combined line, so nobody counts those games twice when summing a league.

Basketball Reference Dataset: Tables and Fields
Basketball Reference Lineup Data, Play by Play and Shot Charts

Basketball Reference Lineup Data, Play by Play and Shot Charts

Below the box score, each recent game has three more pages. Play-by-Play lists events with the clock, the running score, the points on the play and a text for the home or visiting side: shots with distance, assists, rebounds, fouls, turnovers, substitutions, timeouts and replay results. Shot Charts place every attempt on the floor with the quarter, time left, shooter, shot value, distance, outcome and the score at that moment. Plus/Minus shows stints per player and quarter with On, Off and Net values.

Team seasons open into lineups of five, four, three and two players, each with minutes and net results per 100 possessions, for the regular season and the playoffs. Game logs, splits, on-off pages, starting lineups and depth charts sit beside them. The contracts section shows what each club owes several seasons ahead.

League pages add standings by date, transactions sorted under date headings, rookies, leaders, coaches and preseason odds. Referees have a register of their own, with fouls, free throws and points per game and the split between home and visiting teams. If you collect standings or contracts on a schedule, the dated copies become a history of how a season and a payroll moved.

What Basketball Reference Covers, League by League

Source
basketball-reference.com
Category
sports sites
Delivery
API, JSON feed, CSV, XLSX
Plans
From €169 a month
Get a quote

Basketball Reference belongs to the Sports Reference family. It describes its scope as the NBA, ABA, WNBA and top European competition, and the menus go wider: BAA seasons, the G League, the Australian NBL, the Chinese Basketball Association, Olympic tournaments, the FIBA World Cup, EuroLeague, EuroCup and domestic leagues in Spain, Italy, France, Greece, Turkey and Israel. College seasons sit on a sister Sports Reference site and are scoped as a separate source when a project needs them.

Depth depends on the era, which matters more than any feature list. Box scores reach from 1946-47 to the present, yet columns start when the league began recording them. Total rebounds begin in 1950-51 and minutes a year later. Steals, blocks and the split of offensive and defensive rebounds start in 1973-74, turnovers in 1977-78, the three-point shot in 1979-80. A metric such as BPM or usage inherits those limits. Blank cells in old seasons therefore mean not recorded, and we export them as null.

Home and team pages carry a Site Last Updated stamp. The home page shows the latest scores, standings, the top performers of the previous day with Game Score, playoff probabilities, a projected draft order and an MVP tracker, and each of these can be saved as a dated table. Awards are written as codes inside season rows, from AS for an All-Star pick to NBA1 for an All-NBA first team, and we split them into columns.

25Developers
500+Customers
1.5BPages extracted
15,000+Hours saved for our clients

Basketball Reference scraping plans and pricing

Airplane

€199one-time

Setup fee included

100,000
One-time
Up to 5 days
7 days

Helicopter

€169/ mo

Setup fee €499

250,000
Monthly
Up to 5 days
14 days

Glasses

€229/ mo

Setup fee €499

1,000,000
Weekly
Up to 5 days
30 days

Microscope popular

€349/ mo

Setup fee €499

2,000,000
Daily
Same day
60 days

DNA

€549/ mo

Setup fee €799

3,000,000
3 times daily
Same day
90 days

Delivery: CSV, JSON or XLSX files, our API or a JSON feed. MCP server on request.

Full plan details

What Teams, Media and Analysts Build From It

Few sources let you follow one player from draft night through every contract and box score under a single identifier. Typical uses start from that thread.

  • Forecasting modelsgame logs, rest days derived from schedules, lineups and pace become features with decades of outcomes behind them.
  • Fantasy productsper game and per 36 minutes lines, usage and recent games refresh player cards every morning.
  • Front offices and agentscontracts, guaranteed money and win shares sit in one sheet for comparing deals.
  • Newsroomsleaders, career highs, streak checks and similarity scores support a game report or a milestone story.
  • Officiating studiesthe referee register and the officials line of each box score link crews to foul and free throw counts.
  • Games and collectiblesuniform numbers, awards and career totals fill card backs, trivia and rating engines.
  • AI training setsevent text paired with clock, score and shot location is a compact description of a game.

We supply the figures, not predictions. Coaches, players and referees appear in their public sporting role.

About ScrapeIt

ScrapeIt is an agency for web data: you describe the tables, and our team collects, checks and delivers them. Statistics projects live or die on keys and nulls, so with Basketball Reference we agree the treatment of traded players, unrecorded columns and playoff rows before the first full run and write it into the field documentation. Files come as CSV, JSONLines, XLSX or JSON to Amazon S3, Dropbox, FTP or a load into your database. Plans start from EUR 169 a month, or EUR 199 for a one-time extract.

FAQ

Still unsure? Write to info@scrapeit.io

Do you offer a Basketball Reference API for box scores and player stats?

Yes. The ScrapeIt Basketball Reference API returns player lines, game codes, quarter scores, plus/minus, salaries and draft picks as JSON from an endpoint we host, updated after each night of games or at the interval you choose. Prefer files? Take CSV, XLSX or a JSON feed, or let us fill your database.

Is it legal to scrape Basketball Reference?

Yes. Season tables, box scores, play by play, contracts and draft pages open in any browser for fans and researchers. We collect only publicly available data - everything a visitor can see on Basketball Reference - and we collect it legally. Stathead query results that need a subscription are not included.

How far back does Basketball Reference data go?

Box scores start with 1946-47, while many columns begin later: steals and blocks in 1973-74, turnovers in 1977-78, three-pointers in 1979-80. We deliver the whole archive or a range of seasons. Fields the league did not record yet are exported as null, never as zero.

Can you build a Basketball Reference database with play by play data?

Yes. Games, box scores, events, shots and five-man to two-man lineups become separate tables joined on game, team and player codes. We can load them into your database after each night of games and backfill earlier seasons wherever the site shows those pages; play by play is already there for games of autumn 1996.

Does your Basketball Reference data scraping include the WNBA, G League and overseas play?

Yes. The WNBA has seasons, standings, drafts and leaders of its own, and the site also holds G League, NBL and international pages such as EuroLeague and Liga ACB. Each row carries a league code. Depth differs by competition, so we list the available columns per league before the start.

How it works

  1. 1

    Make a request

    You share your needs, expectations, and desired timeframe. We'll suggest the best solution based on your request and budget.

  2. 2

    We configure the crawlers

    Our specialists configure the crawlers and extract a sample dataset for your review before proceeding with the full-scale extraction.

  3. 3

    Collect and deliver

    Once you approve the sample, we launch the project and start full data collection. We gather, filter, and structure the data for easy use, delivering it on time in your preferred format.

  4. 4

    Maintain and support

    Our team manages ongoing processes, monitors website changes, and supports all data extraction cycles. We can also help integrate data into your systems or create dashboards to simplify analysis.

Request a quote

Tell us which sites, which fields and how often. A couple of lines is enough to start.

  • We reply within 1 business day
  • A sample dataset before the full run
  • We sign an NDA on request
  • Delivery by API, JSON feed or files
Which sites, which fields, how often. A couple of lines is enough.

This form is protected by Google reCAPTCHA, which loads when you start filling it in; the Google Privacy Policy and Terms of Service apply. If you prefer not to use it, email us at info@scrapeit.io. Privacy & Cookie Policy

We reply within 1 business day. No obligation.

Basketball Reference data from €169/month. Free project assessment, reply within 1 business day.