Skip to main content

LeagueDashPtTeamDefend

nba_api/stats/endpoints/leaguedashptteamdefend.py#
Endpoint URL#

https://stats.nba.com/stats/leaguedashptteamdefend

Valid URL#

https://stats.nba.com/stats/leaguedashptteamdefend?Conference=&DateFrom=&DateTo=&DefenseCategory=Overall&Division=&GameSegment=&LastNGames=&LeagueID=00&Location=&Month=&OpponentTeamID=&Outcome=&PORound=&PerMode=Totals&Period=&Season=2019-20&SeasonSegment=&SeasonType=Regular+Season&TeamID=&VsConference=&VsDivision=

Parameters#

API Parameter NameParameterPatternRequiredNullable
DefenseCategorydefense_category^((Overall)\|(3 Pointers)\|(2 Pointers)\|(Less Than 6Ft)\|(Less Than 10Ft)\|(Greater Than 15Ft))?$Y
LeagueIDleague_id^\d{2}$Y
PerModeper_mode_simple^(Totals)\|(PerGame)$Y
SeasonseasonY
SeasonTypeseason_type_all_star^(Regular Season)\|(Pre Season)\|(Playoffs)\|(All Star)$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
Periodperiod_nullableY
PORoundpo_round_nullableY
Outcomeoutcome_nullable^((W)\|(L))?$Y
OpponentTeamIDopponent_team_id_nullableY
Monthmonth_nullableY
Locationlocation_nullable^((Home)\|(Road))?$Y
LastNGameslast_n_games_nullableY
GameSegmentgame_segment_nullable^((First Half)\|(Overtime)\|(Second Half))?$Y
Divisiondivision_nullable^((Atlantic)\|(Central)\|(Northwest)\|(Pacific)\|(Southeast)\|(Southwest)\|(East)\|(West))?$Y
DateTodate_to_nullableY
DateFromdate_from_nullableY
Conferenceconference_nullable^((East)\|(West))?$Y

Data Sets#

LeagueDashPtTeamDefend league_dash_pt_team_defend#

['TEAM_ID', 'TEAM_NAME', 'TEAM_ABBREVIATION', 'GP', 'G', 'FREQ', 'D_FGM', 'D_FGA', 'D_FG_PCT', 'NORMAL_FG_PCT', 'PCT_PLUSMINUS']

JSON#

{    "data_sets": {        "LeagueDashPtTeamDefend": [            "TEAM_ID",            "TEAM_NAME",            "TEAM_ABBREVIATION",            "GP",            "G",            "FREQ",            "D_FGM",            "D_FGA",            "D_FG_PCT",            "NORMAL_FG_PCT",            "PCT_PLUSMINUS"        ]    },    "endpoint": "LeagueDashPtTeamDefend",    "last_validated_date": "2020-08-15",    "nullable_parameters": [        "Conference",        "DateFrom",        "DateTo",        "Division",        "GameSegment",        "LastNGames",        "Location",        "Month",        "OpponentTeamID",        "Outcome",        "PORound",        "Period",        "SeasonSegment",        "TeamID",        "VsConference",        "VsDivision"    ],    "parameter_patterns": {        "Conference": "^((East)|(West))?$",        "DateFrom": null,        "DateTo": null,        "DefenseCategory": "^((Overall)|(3 Pointers)|(2 Pointers)|(Less Than 6Ft)|(Less Than 10Ft)|(Greater Than 15Ft))?$",        "Division": "^((Atlantic)|(Central)|(Northwest)|(Pacific)|(Southeast)|(Southwest)|(East)|(West))?$",        "GameSegment": "^((First Half)|(Overtime)|(Second Half))?$",        "LastNGames": null,        "LeagueID": "^\\d{2}$",        "Location": "^((Home)|(Road))?$",        "Month": null,        "OpponentTeamID": null,        "Outcome": "^((W)|(L))?$",        "PORound": null,        "PerMode": "^(Totals)|(PerGame)$",        "Period": null,        "Season": null,        "SeasonSegment": "^((Post All-Star)|(Pre All-Star))?$",        "SeasonType": "^(Regular Season)|(Pre Season)|(Playoffs)|(All Star)$",        "TeamID": null,        "VsConference": "^((East)|(West))?$",        "VsDivision": "^((Atlantic)|(Central)|(Northwest)|(Pacific)|(Southeast)|(Southwest)|(East)|(West))?$"    },    "parameters": [        "Conference",        "DateFrom",        "DateTo",        "DefenseCategory",        "Division",        "GameSegment",        "LastNGames",        "LeagueID",        "Location",        "Month",        "OpponentTeamID",        "Outcome",        "PORound",        "PerMode",        "Period",        "Season",        "SeasonSegment",        "SeasonType",        "TeamID",        "VsConference",        "VsDivision"    ],    "required_parameters": [        "DefenseCategory",        "LeagueID",        "PerMode",        "Season",        "SeasonType"    ],    "status": "success"}

Last validated 2020-08-16