TeamInfo

Team Info

#Description

This Endpoint returns information about the teams in the NBA.

#Query Parameters

API Parameter NamePython Parameter VariableDescriptionStatusNullable
LeagueIDleague_idLeague IDRequiredDefaults to NBA.
TeamIDteam_idTeam IDRequiredNo
SeasonTypeseason_type_nullableOther options include regular season or preseason.OptionalYes
Seasonseason_nullableOptions include current season, current datetime, current year of season.OptionalYes

#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_IDSEASON_YEARTEAM_CITYTEAM_NAMETEAM_ABBREVIATIONTEAM_CONFERENCETEAM_DIVISIONTEAM_CODETEAM_SLUGWLPCTCONF_RANKDIV_RANKMIN_YEARMAX_YEAR
016106127422022-23DallasMavericksDALWestSouthwestmavericksmavericks000
019802022