College Football DataCollege Football Data
  • CollegeFootballData.com
  • Get API Key
  • Legacy Swagger UI
  • Getting Started
  • Official libraries
  • Methodology and resources
  • API Reference
Helpful Links
  • CFBD
  • Patreon
  • Gumroad
Data + Code Packs
  • Starter Pack
  • Model Training Pack
  • AI Launchpad
  • AI Builder Pack
Other Resources
  • Rad Sports Analytics
  • Blog
  • Basketball

A Rad Sports Analytics platform.

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

Authentication

Authenticate API requests

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 CFBD_API_KEY='your-api-key'

Then pass it in the bearer header:

TerminalCode
curl --get 'https://api.collegefootballdata.com/games' \ --data-urlencode 'year=2023' \ --data-urlencode 'team=Michigan' \ --header "Authorization: Bearer ${CFBD_API_KEY}"

The official Python and TypeScript clients use the same bearer contract 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 8, 2026
Overview and first requestUsage and access
On this page
  • Authorize a playground request
  • Send the key from your application
  • Protect the key