Skip to content

Repository files navigation

cbbd

Use the College Basketball Data API to query game, team, player, recruiting, and analytics data. Request an API key at CollegeBasketballData.com.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.28.0
  • Package version: 1.28.0
  • Generator version: 7.12.0
  • Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen

Requirements.

Python 3.7+

Installation & Usage

pip install

pip install cbbd@1.28.0

(you may need to run pip with root permission: sudo pip install cbbd@1.28.0)

Then import the package:

importcbbd

Getting Started

Please follow the installation procedure and then run the following:

importtimeimportcbbdfromcbbd.restimportApiExceptionfrompprintimportpprint# Defining the host is optional and defaults to https://api.collegebasketballdata.com# See configuration.py for a list of all supported configuration parameters.configuration=cbbd.Configuration(
host="https://api.collegebasketballdata.com"
)
# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure Bearer authorization: apiKeyconfiguration=cbbd.Configuration(
access_token=os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API clientwithcbbd.ApiClient(configuration) asapi_client:
# Create an instance of the API classapi_instance=cbbd.ConferencesApi(api_client)
conference='conference_example'# str | Filters results to the specified conference abbreviation. (optional)try:
api_response=api_instance.get_conference_history(conference=conference)
print("The response of ConferencesApi->get_conference_history:\n")
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling ConferencesApi->get_conference_history: %s\n"%e)

Documentation for API Endpoints

All URIs are relative to https://api.collegebasketballdata.com

ClassMethodHTTP requestDescription
ConferencesApiget_conference_historyGET /conferences/history
ConferencesApiget_conferencesGET /conferences
DraftApiget_draft_picksGET /draft/picks
DraftApiget_draft_positionsGET /draft/positions
DraftApiget_draft_teamsGET /draft/teams
GamesApiget_broadcastsGET /games/media
GamesApiget_game_playersGET /games/players
GamesApiget_game_teamsGET /games/teams
GamesApiget_gamesGET /games
GamesApiget_scoreboardGET /scoreboard
LinesApiget_linesGET /lines
LinesApiget_providersGET /lines/providers
LineupsApiget_lineup_stats_by_gameGET /lineups/game/{gameId}
LineupsApiget_lineups_by_team_seasonGET /lineups/team
PlaysApiget_play_typesGET /plays/types
PlaysApiget_playsGET /plays/game/{gameId}
PlaysApiget_plays_by_dateGET /plays/date
PlaysApiget_plays_by_player_idGET /plays/player/{playerId}
PlaysApiget_plays_by_teamGET /plays/team
PlaysApiget_plays_by_tournamentGET /plays/tournament
PlaysApiget_substitutions_by_gameGET /substitutions/game/{gameId}
PlaysApiget_substitutions_by_player_idGET /substitutions/player/{playerId}
PlaysApiget_substitutions_by_teamGET /substitutions/team
RankingsApiget_rankingsGET /rankings
RatingsApiget_adjusted_efficiencyGET /ratings/adjusted
RatingsApiget_eloGET /ratings/elo
RatingsApiget_srsGET /ratings/srs
RecruitingApiget_portal_transfersGET /recruiting/portal
RecruitingApiget_recruitsGET /recruiting/players
RecruitingApiget_team_recruiting_rankingsGET /recruiting/teams
StatsApiget_player_season_shooting_statsGET /stats/player/shooting/season
StatsApiget_player_season_statsGET /stats/player/season
StatsApiget_team_leaderboard_statsGET /stats/team/leaderboard
StatsApiget_team_season_shooting_statsGET /stats/team/shooting/season
StatsApiget_team_season_statsGET /stats/team/season
TeamsApiget_team_rosterGET /teams/roster
TeamsApiget_teamsGET /teams
VenuesApiget_venuesGET /venues

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

apiKey

  • Type: Bearer authentication

Author

admin@collegefootballdata.com

About

No description, website, or topics provided.

Resources

Stars

10 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages