Team Info
#Description
This Endpoint returns information about the teams in the NBA.
#Query Parameters
API Parameter Name | Python Parameter Variable | Description | Status | Nullable |
---|---|---|---|---|
LeagueID | league_id | League ID | Required | Defaults to NBA. |
TeamID | team_id | Team ID | Required | No |
SeasonType | season_type_nullable | Other options include regular season or preseason. | Optional | Yes |
Season | season_nullable | Options include current season, current datetime, current year of season. | Optional | Yes |
#Arguments Taken
This Endpoint can take a number of arguments to refine the search.
['AvailableSeasons', 'TeamInfoCommon', 'TeamSeasonRanks']
#Response
{"AvailableSeasons": ["SEASON_ID"], "TeamInfoCommon": ["TEAM_ID", "SEASON_YEAR", "TEAM_CITY", "TEAM_NAME", "TEAM_ABBREVIATION", "TEAM_CONFERENCE", "TEAM_DIVISION", "TEAM_CODE", "W", "L", "PCT", "CONF_RANK", "DIV_RANK", "MIN_YEAR", "MAX_YEAR"], "TeamSeasonRanks": ["LEAGUE_ID", "SEASON_ID", "TEAM_ID", "PTS_RANK", "PTS_PG", "REB_RANK", "REB_PG", "AST_RANK", "AST_PG", "OPP_PTS_RANK", "OPP_PTS_PG"]}
#Response fields
#Example
Getting Dallas Mavericks' Common Team Information
from nba_api.stats.endpoints import teaminfocommon
dallas_teaminfo = teaminfocommon.TeamInfoCommon(1610612742)
dallas_teaminfo.team_info_common.get_data_frame()
Result:
TEAM_ID | SEASON_YEAR | TEAM_CITY | TEAM_NAME | TEAM_ABBREVIATION | TEAM_CONFERENCE | TEAM_DIVISION | TEAM_CODE | TEAM_SLUG | W | L | PCT | CONF_RANK | DIV_RANK | MIN_YEAR | MAX_YEAR | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | 1610612742 | 2022-23 | Dallas | Mavericks | DAL | West | Southwest | mavericks | mavericks | 0 | 0 | 0 | 0 | 1980 | 2022 |