College basketball · Developer quick start

Start with the college basketball API or a CSV

Teams, games, statistics, ratings, and play-by-play for your next project. Download a file to explore, or build repeatable requests into your own code.

Free CSV export needs no account or API key.

REST API · Bearer authentication

Your first request

Fetch teams with a key from your shell environment.

curl --fail 'https://api.collegebasketballdata.com/teams' \
  -H "Authorization: Bearer $CBBD_API_KEY"

Set CBBD_API_KEY in your server-side environment. Keep personal keys out of browser code, public repositories, and URLs.

Explore the REST documentation

Choose your starting point

A quick download or repeatable API requests

Use the same basketball data in the format that fits your project.

Download a CSV without a key

Choose an endpoint in the website exporter, supply its required filters, inspect the rows, and download a CSV. No API key or account needed.

Open the data exporter

Connect your own code

Request a personal key, authenticate with a Bearer header, and use the REST documentation to inspect current endpoint parameters and response shapes.

Get a free API key

Plan your analysis

Know your season coverage

Season IDs use the ending year: 2027 means 2026–27. API coverage varies by endpoint; check a sample response for your selected season.

Documented historical API coverage by dataset
DatasetAvailable from
Season and box-score statistics2002–03
Play-by-play2005–06
Shot distribution2013–14
Substitutions and lineups2023–24

Availability and completeness can vary. These API ranges differ from the Starter Pack’s fixed historical snapshot.

Work in your language

Use an existing client library

Follow each package’s current documentation for installation, authentication, and examples.

Python

Bring basketball data into your Python research and analysis workflows with the cbbd wrapper.

Python cbbd package

Understand your access

Choose what fits your project

API keys, website accounts, downloadable packs, and Patreon membership are separate. Free keys include 1,000 API calls a month, and football and basketball calls share one limit. Public previews stay free; full Team Metrics and Shooting Profiles require Tier 2+.

Prefer guided notebooks?

The Starter Pack pairs a historical data snapshot with guided notebooks and setup documentation.

View Starter Pack details