Open kashav opened 7 years ago
List of endpoint URLs:
/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
@mihaisavezi, nice find! Wanna submit a PR to add it to the library? 😀
Find the required parameters for each of the
nba.stats
endpoints and make that parameter bold.Most stats.nba.com endpoints will throw an error if a required parameter is missing, so we can use this to find the list of required params.
e.g. Making a request to http://stats.nba.com/stats/commonallplayers without any parameters will return:
So the documentation for the
data.stats.allPlayers
method should look like:allPlayers
/stats/commonallplayers
IsOnlyCurrentSeason
LeagueID
Season