Teams

Team Endpoints

Client.get_teams(start: int = 0, league: Optional[str] = None) List[jockmkt_sdk.objects.Team]

provides a list of teams for all or chosen leagues that have team structure. displays only the first page, the user can paginate via:

Parameters
  • start (int, optional) – Which page the user wants to display. Default: 0 (first 100 teams)

  • league (str, optional) – which league the user is searching for teams, one of: [‘nba’, ‘nfl’, ‘nhl’, ‘pga’, ‘mlb’, ‘nascar’]

Returns

a list of Team objects

Return type

List[Team]

Client.get_team(team_id: str) jockmkt_sdk.objects.Team

fetch a specific team based on their team id

Parameters

team_id (str, required) – a team id, starting with team (e.g. “team_8fe94ef0d1f0a00e1285301c4092650f”)

Returns

a dictionary with team information

Return type

objects.Team

class jockmkt_sdk.objects.Team(team)

Team object containing team-related attributes, such as: team_id, location, name, league and abbreviation

user can call instance.available_attributes to see what instance variables are available.

Variables
  • team_id – the team’s Jock MKT identifier

  • location – home city for the team (e.g. Los Angeles, New York, etc.)

  • name – team’s name (e.g. Lakers, 49ers, etc.)

  • league – which league the team is a part of (e.g. nfl, nhl, etc.)

  • abbreviation – shortened team name (e.g. LAL, SF, BKN, etc.)