Node.js library for NBA stats
Breaking changes
nba.data.currentScoreboard
(endpoint seems to always return []
). Use nba.data.scoreboard
with today's date (you can use (new Date).toISOString().slice(0, 10)
or any third party library to generate this value) for the current scoreboard.nba.data
method parameter names (see https://github.com/kshvmdn/nba.js/commit/88c7d76e2b3958a49511cb02ea5358eafe29003a)
gameDate
-> date
seasonScheduleYear
-> year
teamUrlCode
-> teamName
periodNum
-> period
Add data
submodule with data.nba.net endpoints.
Full package release (minus documentation, very much in the works however). Features support for 47 endpoints.
Supported endpoints:
/stats/commonallplayers
/stats/assisttracker
/stats/defensehub
/stats/draftcombinestats
/stats/drafthistory
/stats/franchisehistory
/stats/franchiseleaders
/stats/homepagev2
/stats/leaguegamelog
/stats/leagueleaders
/stats/leaguedashlineups
/stats/playerawards
/stats/leaguedashplayerbiostats
/stats/leaguedashplayerclutch
/stats/playercareerstats
/stats/playercompare
/stats/leaguedashptdefend
/stats/playergamelog
/stats/leaguedashplayerstats
/stats/leaguehustlestatsplayer
/stats/leaguehustlestatsplayerleaders
/stats/commonplayerinfo
/stats/leagueplayerondetails
/stats/playerprofilev2
/stats/leaguedashplayershotlocations
/stats/leaguedashplayerptshot
/stats/scoreboardV2
/stats/leaguedashteamclutch
/stats/leaguedashptteamdefend
/stats/teamdetails
/stats/teaminfocommon
/stats/teamgamelog
/stats/leaguedashteamstats
/stats/leaguehustlestatsteam
stats/leaguehustlestatsteamleaders
/stats/teamdashlineups
/stats/teamplayeronoffdetails
/stats/teamdashptpass
/stats/teamplayerdashboard
/stats/teamdashptreb
/stats/commonteamroster
/stats/leaguedashteamshotlocations
/stats/leaguedashteamptshot
/stats/teamdashptshots
/stats/teamdashboardbygeneralsplits
/stats/teamyearbyyearstats
/stats/leaguedashptstats
Feel free to open an issue for any missing endpoints.
Command line functionality:
today
, tomorrow
, yesterday