Skip to main content

Teams Statistics

This endpoint allows you to retrieve the statistics from teams.

Multi-language: This feature allows the user to manually change the language of the API response by adding value to the lang attribute. Example: lang=en.

Pagination: The endpoint uses an offset and limit system. Specify the offset and limit parameters to fetch the desired range of results. The maximum and default number of results per request is 50.

Update Period: The endpoint is updated every day.
Recommended Calls: Limit calls to 1 per day.

Use Cases

Get team statistics from a specific team_id
https://basketball.sportdevs.com/teams-statistics?team_id=eq.{team_id}

Get team statistics from a specific team_id and league_id
https://basketball.sportdevs.com/teams-statistics?team_id=eq.{team_id}&league_id=eq.{league_id}

Get team statistics from a specific team_id, league_id and season_id
https://basketball.sportdevs.com/teams-statistics?&team_id=eq.{team_id}&league_id=eq.{league_id}&season_id=eq.{season_id}

Get team statistics from a specific team_id, league_id, season_id and type
https://basketball.sportdevs.com/teams-statistics?team_id=eq.{team_id}&league_id=eq.{league_id}&season_id=eq.{season_id}&type=eq.{type}

Query Parameters
  • team_id integer

    Default value: eq.1793

    The id of the team

  • league_id integer

    Default value: eq.2843

    The id of the league

  • season_id integer

    Default value: eq.12959

    The id of the season

  • type text

    Default value: eq.overall

    The type of the statistic

  • offset string

    Default value: 0

    Limiting and Pagination

  • limit string

    Default value: 50

    Limiting and Pagination

  • lang string

    Default value: en

    Multi-language

Responses

OK


Schema array
  • id integer

    The id of the team's statistic

    Note: This is a Primary Key.

  • team_id integer

    The id of the team

    Note: This is a Foreign Key to teams.id.

  • team_name text

    The name of the team

  • team_hash_image character varying

    Possible values: <= 64 characters

    The name image of the team

  • league_id integer

    The id of the league

    Note: This is a Foreign Key to leagues.id.

  • league_name text

    The name of the league

  • league_hash_image character varying

    Possible values: <= 64 characters

    The name image of the league

  • season_id integer

    The id of the season

    Note: This is a Foreign Key to seasons.id.

  • season_name text

    The name of the season

  • type text

    The type of the statistic

  • points numeric

    The number of points made by the team

  • point_difference numeric

    The number of plus minus made by the team

  • made_two_pointers numeric

    The number of two points made by the team

  • attempted_two_pointers numeric

    The number of two point attempts made by the team

  • made_three_pointers numeric

    The number of three points made by the team

  • attempted_three_pointers numeric

    The number of three point attempts made by the team

  • made_free_throws numeric

    The number of free throws made by the team

  • attempted_free_throws numeric

    The number of free throw attempts made by the team

  • made_field_goals numeric

    The number of field goals made by the team

  • attempted_field_goals numeric

    The number of field goal attempts made by the team

  • total_rebounds numeric

    The number of rebounds made by the team

  • defensive_rebounds numeric

    The number of defensive rebounds made by the team

  • offensive_rebounds numeric

    The number of offensive rebounds made by the team

  • total_turnovers numeric

    The number of turnovers made by the team

  • total_blocks numeric

    The number of blocks made by the team

  • total_personal_fouls numeric

    The number of personal fouls made by the team

  • total_assists numeric

    The number of assists made by the team

  • total_steals numeric

    The number of steals by the team

  • field_goal_percentage numeric

    The number of field goals made by the team

  • free_throw_percentage numeric

    The number of free throws made by the team

  • three_point_percentage numeric

    The number of three points made by the team

  • two_point_percentage numeric

    The number of two points made by the team

  • total_double_doubles numeric

    The number of double doubles made by the team

  • total_triple_doubles numeric

    The number of triple doubles made by the team

  • assist_to_turnover_ratio numeric

    The number of assist turnover ratio made by the team

  • points_allowed numeric

    The number of points against made by the team

  • made_two_pointers_allowed numeric

    The number of two points made against made by the team

  • attempted_two_pointers_allowed numeric

    The number of two point attempts against made by the team

  • made_three_pointers_allowed numeric

    The number of three points made against made by the team

  • attempted_three_pointers_allowed numeric

    The number of three point attempts against made by the team

  • made_free_throws_allowed numeric

    The number of free throws made against made by the team

  • attempted_free_throws_allowed numeric

    The number of free throw attempts against made by the team

  • made_field_goals_allowed numeric

    The number of field goals made against made by the team

  • attempted_field_goals_allowed numeric

    The number of field goal attempts against made by the team

  • rebounds_allowed numeric

    The number of rebounds against made by the team

  • defensive_rebounds_allowed numeric

    The number of defensive rebounds against made by the team

  • offensive_rebounds_allowed numeric

    The number of offensive rebounds against made by the team

  • turnovers_allowed numeric

    The number of turnovers against made by the team

  • blocks_allowed numeric

    The number of blocks against made by the team

  • personal_fouls_allowed numeric

    The number of personal fouls against made by the team

  • assists_allowed numeric

    The number of assists against made by the team

  • steals_allowed numeric

    The number of steals against made by the team

  • field_goal_percentage_allowed numeric

    The number of field goals percentage against made by the team in %

  • free_throw_percentage_allowed numeric

    The number of free throws percentage against made by the team in %

  • three_point_percentage_allowed numeric

    The number of three points percentage against made by the team in %

  • two_point_percentage_allowed numeric

    The number of two points percentage against made by the team

  • total_double_doubles_allowed numeric

    The number of double doubles against made by the team

  • total_triple_doubles_allowed numeric

    The number of triple doubles against made by the team

  • assist_to_turnover_ratio_allowed numeric

    The number of assist turnover ratio against made by the team

  • total_matches_played numeric

    The number of matches by the team

  • total_awarded_matches numeric

    The number of awarded matches by the team

Loading...