Downloads
1,791
Last updated
Data file
1
Size
18.2 MB
Format
csv

nbaallelo

Historical NBA Elo

This directory contains the data behind the Complete History Of The NBA interactive. Data updated periodically. Game information is from Basketball-Reference.com.

In the data file nbaallelo.csv are the following variables:

HeaderDefinition
gameorderPlay order of game in NBA history
game_idUnique ID for each game
lg_idWhich league the game was played in
_iscopyEach row of data is tied to a single team for a single game, so _iscopy flags if this game_id has already occured for the opposing team in the same matchup
year_idSeason id, named based on year in which the season ended
date_gameGame date
is_playoffsFlag for playoff games
team_idThree letter code for team name, from Basketball Reference
fran_idFranchise id. Multiple team_ids can fall under the same fran_id due to name changes or moves. Interactive is grouped by fran_id.
ptsPoints scored by team
elo_iTeam elo entering the game
elo_nTeam elo following the game
win_equivEquivalent number of wins in a 82-game season for a team of elo_n quality
opp_idTeam id of opponent
opp_franFranchise id of opponent
opp_ptsPoints scored by opponent
opp_elo_iOpponent elo entering the game
opp_elo_nOpponent elo following the game
game_locationHome (H), away (A), or neutral (N)
game_resultWin or loss for team in the team_id column
forecastElo-based chances of winning for the team in the team_id column, based on elo ratings and game location
notesAdditional information

This dataset was scraped from FiveThirtyEight - nba-elo

API access

Access dataset files directly from scripts, code, or AI agents.

Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.

  1. Fetch datapackage.json to inspect schema and resources
  2. Download data resources listed in datapackage.json
  3. Read README.md for full context
/fivethirtyeight/nba-elo/3 files
  • README.mddocumentationhttps://datahub.io/fivethirtyeight/nba-elo/_r/-/README.md
  • data/nbaallelo.csvhttps://datahub.io/fivethirtyeight/nba-elo/_r/-/data/nbaallelo.csv
  • datapackage.jsonmetadata & schemahttps://datahub.io/fivethirtyeight/nba-elo/_r/-/datapackage.json