College Basketball DataCollege Basketball Data
  • CollegeBasketballData.com
  • Get API Key
  • Legacy Swagger UI
  • Getting Started
  • Official libraries
  • API Reference
Helpful links
  • CBBD
  • Get API key
  • Access tiers
Official libraries
  • Python
  • TypeScript
  • R
  • API source
Other resources
  • Rad Sports Analytics
  • Football
  • CBB Starter Pack

A Rad Sports Analytics platform.

xdiscordgithub
Overview and first requestAuthenticationUsage and access
powered by Zudoku
Getting Started

Authentication

Protected operations accept an API key in this HTTP header:

Code
Authorization: Bearer <key>

Request a free API key if you need one.

Authorize a playground request

  1. Open an operation in the API reference.
  2. Open the Authorize control and enter your API key.
  3. Add the operation parameters, then select Send.
  4. Clear the credential when you finish, especially on a shared device.

Send the key from your application

Keep the key out of source code by storing it in an environment variable:

TerminalCode
export CBBD_API_KEY='your-api-key'

Then pass it in the bearer header:

TerminalCode
curl --get 'https://api.collegebasketballdata.com/games' \ --data-urlencode 'season=2024' \ --data-urlencode 'team=Duke' \ --header "Authorization: Bearer ${CBBD_API_KEY}"

The official Python, TypeScript, and R clients use the same bearer contract. The R package stores the key securely with keyring; the other clients receive it through their client configuration.

Protect the key

Treat an API key like a password. Do not commit it, place it in a URL, or include it in a public browser application. Use environment variables or your deployment platform's secret storage, and add the header from server-side code.

If the API returns 401, confirm that the key is current and the header starts with Bearer , including the space. Clear and re-enter the key in the playground if needed.

Edit this page on GitHub
Last modified on August 25, 2026
Overview and first requestUsage and access
On this page
  • Authorize a playground request
  • Send the key from your application
  • Protect the key