UNPKG

nba

Version:

JavaScript client for the NBA's stats API

428 lines (371 loc) 8.21 kB
## `nba.stats.assistTracker(params) -> Promise` #### Parameters & Default Values: - `LeagueID: "00"` - `PerMode: "PerGame"` - `Season: "2015-16"` - `SeasonType: "Regular Season"` ## `nba.stats.commonTeamRoster(params) -> Promise` #### Parameters & Default Values: - `LeagueID: "00"` - `Season: "2015-16"` - `TeamID: "0"` ## `nba.stats.homepageV2(params) -> Promise` #### Parameters & Default Values: - `GameScope: ""` - `LeagueID: "00"` - `PlayerOrTeam: "Player"` - `PlayerScope: ""` - `Season: "2015-16"` - `SeasonType: "Regular Season"` - `StatType: ""` ## `nba.stats.playByPlay(params) -> Promise` #### Parameters & Default Values: - `GameID: ""` - `StartPeriod: "0"` - `EndPeriod: "0"` ## `nba.stats.playerClutch(params) -> Promise` #### Parameters & Default Values: - `AheadBehind: ""` - `ClutchTime: ""` - `College: ""` - `Conference: ""` - `Country: ""` - `DateFrom: ""` - `DateTo: ""` - `Division: ""` - `DraftPick: ""` - `DraftYear: ""` - `GameScope: ""` - `GameSegment: ""` - `Height: ""` - `LastNGames: "0"` - `LeagueID: "00"` - `Location: ""` - `MeasureType: "Base"` - `Month: "0"` - `OpponentTeamID: "0"` - `Outcome: ""` - `PORound: "0"` - `PaceAdjust: "N"` - `PerMode: "PerGame"` - `Period: "0"` - `PlayerExperience: ""` - `PlayerPosition: ""` - `PlusMinus: "N"` - `PointDiff: ""` - `Rank: "N"` - `Season: "2015-16"` - `SeasonSegment: ""` - `SeasonType: "Regular Season"` - `ShotClockRange: ""` - `StarterBench: ""` - `TeamID: "0"` - `VsConference: ""` - `VsDivision: ""` - `Weight: ""` ## `nba.stats.playerInfo(params) -> Promise` #### Parameters & Default Values: - `PlayerID: "0"` - `SeasonType: "Regular Season"` - `LeagueID: "00"` ## `nba.stats.playerProfile(params) -> Promise` #### Parameters & Default Values: - `Season: "2015-16"` - `SeasonType: "Regular Season"` - `LeagueID: "00"` - `PlayerID: "0"` - `GraphStartSeason: "2015-16"` - `GraphEndSeason: "2015-16"` - `GraphStat: "PTS"` ## `nba.stats.playerShooting(params) -> Promise` #### Parameters & Default Values: - `CloseDefDistRange: ""` - `College: ""` - `Conference: ""` - `Country: ""` - `DateFrom: ""` - `DateTo: ""` - `Division: ""` - `DraftPick: ""` - `DraftYear: ""` - `DribbleRange: ""` - `GameScope: ""` - `GameSegment: ""` - `GeneralRange: ""` - `Height: ""` - `LastNGames: "0"` - `LeagueID: "00"` - `Location: ""` - `Month: "0"` - `OpponentTeamID: "0"` - `Outcome: ""` - `PORound: "0"` - `PaceAdjust: "N"` - `PerMode: "PerGame"` - `Period: "0"` - `PlayerExperience: ""` - `PlayerPosition: ""` - `PlusMinus: "N"` - `Rank: "N"` - `Season: "2015-16"` - `SeasonSegment: ""` - `SeasonType: "Regular Season"` - `ShotClockRange: ""` - `ShotDistRange: ""` - `StarterBench: ""` - `TeamID: "0"` - `TouchTimeRange: ""` - `VsConference: ""` - `VsDivision: ""` - `Weight: ""` ## `nba.stats.playerSplits(params) -> Promise` #### Parameters & Default Values: - `Season: "2015-16"` - `SeasonType: "Regular Season"` - `LeagueID: "00"` - `PlayerID: "0"` - `MeasureType: "Base"` - `PerMode: "PerGame"` - `PlusMinus: "N"` - `PaceAdjust: "N"` - `Rank: "N"` - `Outcome: ""` - `Location: ""` - `Month: "0"` - `SeasonSegment: ""` - `DateFrom: ""` - `DateTo: ""` - `OpponentTeamID: "0"` - `VsConference: ""` - `VsDivision: ""` - `GameSegment: ""` - `Period: "0"` - `LastNGames: "0"` ## `nba.stats.playerStats(params) -> Promise` #### Parameters & Default Values: - `College: ""` - `Conference: ""` - `Country: ""` - `DateFrom: ""` - `DateTo: ""` - `Division: ""` - `DraftPick: ""` - `DraftYear: ""` - `GameScope: ""` - `GameSegment: ""` - `Height: ""` - `LastNGames: "0"` - `LeagueID: "00"` - `Location: ""` - `MeasureType: "Base"` - `Month: "0"` - `OpponentTeamID: "0"` - `Outcome: ""` - `PORound: "0"` - `PaceAdjust: "N"` - `PerMode: "PerGame"` - `Period: "0"` - `PlayerExperience: ""` - `PlayerPosition: ""` - `PlusMinus: "N"` - `Rank: "N"` - `Season: "2015-16"` - `SeasonSegment: ""` - `SeasonType: "Regular Season"` - `ShotClockRange: ""` - `StarterBench: ""` - `TeamID: "0"` - `VsConference: ""` - `VsDivision: ""` - `Weight: ""` ## `nba.stats.playerTracking(params) -> Promise` #### Parameters & Default Values: - `PtMeasureType: ""` - `PerMode: "PerGame"` - `Season: "2015-16"` - `SeasonType: "Regular Season"` - `Outcome: ""` - `Location: ""` - `Month: "0"` - `SeasonSegment: ""` - `DateFrom: ""` - `DateTo: ""` - `OpponentTeamID: "0"` - `VsConference: ""` - `VsDivision: ""` - `LastNGames: "0"` - `GameScope: ""` - `PlayerExperience: ""` - `PlayerPosition: ""` - `StarterBench: ""` - `PlayerOrTeam: "Player"` ## `nba.stats.scoreboard(params) -> Promise` #### Parameters & Default Values: - `LeagueID: "00"` - `DayOffset: "0"` - `gameDate: ""` ## `nba.stats.shots(params) -> Promise` #### Parameters & Default Values: - `PlayerID: "0"` - `Season: "2015-16"` - `AllStarSeason: ""` - `SeasonType: "Regular Season"` - `LeagueID: "00"` - `TeamID: "0"` - `GameID: ""` - `Position: ""` - `RookieYear: ""` - `ContextMeasure: "FGM"` - `MeasureType: "Base"` - `PerMode: "PerGame"` - `PlusMinus: "N"` - `PaceAdjust: "N"` - `Rank: "N"` - `Outcome: ""` - `Location: ""` - `Month: "0"` - `SeasonSegment: ""` - `DateFrom: ""` - `DateTo: ""` - `OpponentTeamID: "0"` - `VsConference: ""` - `VsDivision: ""` - `GameSegment: ""` - `Period: "0"` - `LastNGames: "0"` - `GameScope: ""` - `PlayerExperience: ""` - `PlayerPosition: ""` - `StarterBench: ""` ## `nba.stats.teamClutch(params) -> Promise` #### Parameters & Default Values: - `AheadBehind: ""` - `ClutchTime: ""` - `Conference: ""` - `DateFrom: ""` - `DateTo: ""` - `Division: ""` - `GameScope: ""` - `GameSegment: ""` - `LastNGames: "0"` - `LeagueID: "00"` - `Location: ""` - `MeasureType: "Base"` - `Month: "0"` - `OpponentTeamID: "0"` - `Outcome: ""` - `PORound: "0"` - `PaceAdjust: "N"` - `PerMode: "PerGame"` - `Period: "0"` - `PlayerExperience: ""` - `PlayerPosition: ""` - `PlusMinus: "N"` - `PointDiff: ""` - `Rank: "N"` - `Season: "2015-16"` - `SeasonSegment: ""` - `SeasonType: "Regular Season"` - `ShotClockRange: ""` - `StarterBench: ""` - `TeamID: "0"` - `VsConference: ""` - `VsDivision: ""` ## `nba.stats.teamHistoricalLeaders(params) -> Promise` #### Parameters & Default Values: - `LeagueID: "00"` - `Season: "2015-16"` - `TeamID: "0"` ## `nba.stats.teamInfoCommon(params) -> Promise` #### Parameters & Default Values: - `LeagueID: "00"` - `Season: "2015-16"` - `SeasonType: "Regular Season"` - `TeamID: "0"` ## `nba.stats.teamPlayerDashboard(params) -> Promise` #### Parameters & Default Values: - `MeasureType: "Base"` - `PerMode: "PerGame"` - `PlusMinus: "N"` - `PaceAdjust: "N"` - `Rank: "N"` - `LeagueID: "00"` - `Season: "2015-16"` - `TeamID: "0"` - `Outcome: ""` - `Location: ""` - `Month: "0"` - `SeasonSegment: ""` - `DateFrom: ""` - `DateTo: ""` - `OpponentTeamID: "0"` - `VsConference: ""` - `VsDivision: ""` - `GameSegment: ""` - `Period: "0"` - `LastNGames: "0"` ## `nba.stats.teamShooting(params) -> Promise` #### Parameters & Default Values: - `CloseDefDistRange: ""` - `College: ""` - `Conference: ""` - `Country: ""` - `DateFrom: ""` - `DateTo: ""` - `Division: ""` - `DraftPick: ""` - `DraftYear: ""` - `DribbleRange: ""` - `GameScope: ""` - `GameSegment: ""` - `GeneralRange: ""` - `Height: ""` - `LastNGames: "0"` - `LeagueID: "00"` - `Location: ""` - `Month: "0"` - `OpponentTeamID: "0"` - `Outcome: ""` - `PORound: "0"` - `PaceAdjust: "N"` - `PerMode: "PerGame"` - `Period: "0"` - `PlayerExperience: ""` - `PlayerPosition: ""` - `PlusMinus: "N"` - `Rank: "N"` - `Season: "2015-16"` - `SeasonSegment: ""` - `SeasonType: "Regular Season"` - `ShotClockRange: ""` - `ShotDistRange: ""` - `StarterBench: ""` - `TeamID: "0"` - `TouchTimeRange: ""` - `VsConference: ""` - `VsDivision: ""` - `Weight: ""` ## `nba.stats.teamSplits(params) -> Promise` #### Parameters & Default Values: - `Season: "2015-16"` - `SeasonType: "Regular Season"` - `LeagueID: "00"` - `TeamID: "0"` - `MeasureType: "Base"` - `PerMode: "PerGame"` - `PlusMinus: "N"` - `PaceAdjust: "N"` - `Rank: "N"` - `Outcome: ""` - `Location: ""` - `Month: "0"` - `SeasonSegment: ""` - `DateFrom: ""` - `DateTo: ""` - `OpponentTeamID: "0"` - `VsConference: ""` - `VsDivision: ""` - `GameSegment: ""` - `Period: "0"` - `LastNGames: "0"` - `GameScope: ""`