Skip to main content

nba_fantasywidget

Endpoint URL#

https://stats.nba.com/stats/fantasywidget

Valid URL#

https://stats.nba.com/stats/fantasywidget?ActivePlayers=N&DateFrom=&DateTo=&LastNGames=0&LeagueID=00&Location=&Month=&OpponentTeamID=&PORound=&PlayerID=&Position=&Season=2019-20&SeasonSegment=&SeasonType=Regular+Season&TeamID=&TodaysOpponent=0&TodaysPlayers=N&VsConference=&VsDivision=

Parameters#

API Parameter NameParameterPatternRequiredNullable
ActivePlayersactive_players^(Y)\|(N)$Y
LastNGameslast_n_gamesY
LeagueIDleague_id^\d{2}$Y
SeasonseasonY
SeasonTypeseason_type_all_star^(Regular Season)\|(Pre Season)\|(Playoffs)\|(All Star)$Y
TodaysOpponenttodays_opponentY
TodaysPlayerstodays_players^(Y)\|(N)$Y
VsDivisionvs_division_nullable^((Atlantic)\|(Central)\|(Northwest)\|(Pacific)\|(Southeast)\|(Southwest)\|(East)\|(West))?$Y
VsConferencevs_conference_nullable^((East)\|(West))?$Y
TeamIDteam_id_nullableY
SeasonSegmentseason_segment_nullable^((Post All-Star)\|(Pre All-Star))?$Y
Positionposition_nullable^(Guard\|Forward\|Center)?$Y
PlayerIDplayer_id_nullableY
PORoundpo_round_nullableY
OpponentTeamIDopponent_team_id_nullableY
Monthmonth_nullableY
Locationlocation_nullable^((Home)\|(Road))?$Y
DateTodate_to_nullableY
DateFromdate_from_nullableY

Data Sets#

FantasyWidgetResult fantasy_widget_result#

['PLAYER_ID', 'PLAYER_NAME', 'PLAYER_POSITION', 'TEAM_ID', 'TEAM_ABBREVIATION', 'GP', 'MIN', 'FAN_DUEL_PTS', 'NBA_FANTASY_PTS', 'PTS', 'REB', 'AST', 'BLK', 'STL', 'TOV', 'FG3M', 'FGA', 'FG_PCT', 'FTA', 'FT_PCT']

JSON#

{    "data_sets": {        "FantasyWidgetResult": [            "PLAYER_ID",            "PLAYER_NAME",            "PLAYER_POSITION",            "TEAM_ID",            "TEAM_ABBREVIATION",            "GP",            "MIN",            "FAN_DUEL_PTS",            "NBA_FANTASY_PTS",            "PTS",            "REB",            "AST",            "BLK",            "STL",            "TOV",            "FG3M",            "FGA",            "FG_PCT",            "FTA",            "FT_PCT"        ]    },    "endpoint": "FantasyWidget",    "last_validated_date": "2020-08-15",    "nullable_parameters": [        "DateFrom",        "DateTo",        "Location",        "Month",        "OpponentTeamID",        "PORound",        "PlayerID",        "Position",        "SeasonSegment",        "TeamID",        "VsConference",        "VsDivision"    ],    "parameter_patterns": {        "ActivePlayers": "^(Y)|(N)$",        "DateFrom": null,        "DateTo": null,        "LastNGames": null,        "LeagueID": "^\\d{2}$",        "Location": "^((Home)|(Road))?$",        "Month": null,        "OpponentTeamID": null,        "PORound": null,        "PlayerID": null,        "Position": "^(Guard|Forward|Center)?$",        "Season": null,        "SeasonSegment": "^((Post All-Star)|(Pre All-Star))?$",        "SeasonType": "^(Regular Season)|(Pre Season)|(Playoffs)|(All Star)$",        "TeamID": null,        "TodaysOpponent": null,        "TodaysPlayers": "^(Y)|(N)$",        "VsConference": "^((East)|(West))?$",        "VsDivision": "^((Atlantic)|(Central)|(Northwest)|(Pacific)|(Southeast)|(Southwest)|(East)|(West))?$"    },    "parameters": [        "ActivePlayers",        "DateFrom",        "DateTo",        "LastNGames",        "LeagueID",        "Location",        "Month",        "OpponentTeamID",        "PORound",        "PlayerID",        "Position",        "Season",        "SeasonSegment",        "SeasonType",        "TeamID",        "TodaysOpponent",        "TodaysPlayers",        "VsConference",        "VsDivision"    ],    "required_parameters": [        "ActivePlayers",        "LastNGames",        "LeagueID",        "Season",        "SeasonType",        "TodaysOpponent",        "TodaysPlayers"    ],    "status": "success"}

Last validated 2020-08-16