GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - CFBD/cfbd-typescript: TypeScript wrapper for the CFBD API

BranchesTags
Open more actions menu

Latest commit

 

History

122 Commits
122 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
README.md
README.md
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
tsconfig.json
tsconfig.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

cfbd

This is an API for query various college football datasets and analytics. API keys can be acquired from the CollegeFootballData.com website.

This TypeScript package is automatically generated by the Hey API project:

  • API version: 5.5.1
  • Package version: 5.5.1

Requirements.

Node 18+

Installation

npm install

npm install cfbd

yarn install

yarn add cfbd

pnpm install

pnpm add cfbd

Usage

Authorization

To authorize requests, use the setConfig method to set the Authorization header using your personal API key. API keys can be acquired from the CollegeFootballData.com website.

import { client } from 'cfbd';

client.setConfig({
    headers: {
        'Authorization': 'Bearer YOUR_API_KEY',
    }
});

Example Usage

All API operations can be imported from the cfbd package and used as shown below.

import { client, getGames } from 'cfbd';

// Set up the client with your API key
client.setConfig({
    headers: {
        'Authorization': 'Bearer YOUR_API_KEY',
    }
});

// Call the getGames endpoint
const games = await getGames({
    query: {
        year: 2023,
        classification: 'fbs',
    },
});

for (const game of games.data ?? []) {
    // Do something with the game data
    // For example:
    console.log(`${game.awayTeam} vs ${game.homeTeam} - ${game.excitementIndex}`);
}

Author

[email protected]

About

TypeScript wrapper for the CFBD API

CollegeFootballData.com

Topics

cfbcfb-analyticscfb-datasports-analyticssports-data

Resources

Readme
Activity
Custom properties

Stars

4 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.