CollegeFootballData 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package CollegeFootballData --version 1.0.0                
NuGet\Install-Package CollegeFootballData -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CollegeFootballData" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CollegeFootballData --version 1.0.0                
#r "nuget: CollegeFootballData, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CollegeFootballData as a Cake Addin
#addin nuget:?package=CollegeFootballData&version=1.0.0

// Install CollegeFootballData as a Cake Tool
#tool nuget:?package=CollegeFootballData&version=1.0.0                

CollegeFootballData - the C# library for the College Football Data API

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

This C# SDK is automatically generated by the OpenAPI Generator project:

  • API version: 5.5.1
  • SDK version: 1.0.0
  • Generator version: 7.11.0
  • Build package: org.openapitools.codegen.languages.CSharpClientCodegen

<a id="frameworks-supported"></a>

Frameworks supported

<a id="dependencies"></a>

Dependencies

The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:

Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes
Install-Package System.ComponentModel.Annotations

NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742. NOTE: RestSharp for .Net Core creates a new socket for each api call, which can lead to a socket exhaustion problem. See RestSharp#1406.

<a id="installation"></a>

Installation

Run the following command to generate the DLL

  • [Mac/Linux] /bin/sh build.sh
  • [Windows] build.bat

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

using CollegeFootballData.Api;
using CollegeFootballData.Client;
using CollegeFootballData.Model;

<a id="packaging"></a>

Packaging

A .nuspec is included with the project. You can follow the Nuget quickstart to create and publish packages.

This .nuspec uses placeholders from the .csproj, so build the .csproj directly:

nuget pack -Build -OutputDirectory out CollegeFootballData.csproj

Then, publish to a local feed or other host and consume the new package via Nuget as usual.

<a id="usage"></a>

Usage

To use the API client with a HTTP proxy, setup a System.Net.WebProxy

Configuration c = new Configuration();
System.Net.WebProxy webProxy = new System.Net.WebProxy("http://myProxyUrl:80/");
webProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
c.Proxy = webProxy;

<a id="getting-started"></a>

Getting Started

using System.Collections.Generic;
using System.Diagnostics;
using CollegeFootballData.Api;
using CollegeFootballData.Client;
using CollegeFootballData.Model;

namespace Example
{
    public class Example
    {
        public static void Main()
        {

            Configuration config = new Configuration();
            config.BasePath = "https://apinext.collegefootballdata.com";
            // Configure Bearer token for authorization: apiKey
            config.AccessToken = "YOUR_BEARER_TOKEN";

            var apiInstance = new AdjustedMetricsApi(config);
            var year = 56;  // int? | Optional year filter (optional) 
            var team = "team_example";  // string? | Optional team filter (optional) 
            var conference = "conference_example";  // string? | Optional conference abbreviation filter (optional) 
            var position = "position_example";  // string? | Optional position abbreviation filter (optional) 

            try
            {
                List<PlayerWeightedEPA> result = apiInstance.GetAdjustedPlayerPassingStats(year, team, conference, position);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling AdjustedMetricsApi.GetAdjustedPlayerPassingStats: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }

        }
    }
}

<a id="documentation-for-api-endpoints"></a>

Documentation for API Endpoints

All URIs are relative to https://apinext.collegefootballdata.com

Class Method HTTP request Description
AdjustedMetricsApi GetAdjustedPlayerPassingStats GET /wepa/players/passing
AdjustedMetricsApi GetAdjustedPlayerRushingStats GET /wepa/players/rushing
AdjustedMetricsApi GetAdjustedTeamSeasonStats GET /wepa/team/season
AdjustedMetricsApi GetKickerPaar GET /wepa/players/kicking
BettingApi GetLines GET /lines
CoachesApi GetCoaches GET /coaches
ConferencesApi GetConferences GET /conferences
DraftApi GetDraftPicks GET /draft/picks
DraftApi GetDraftPositions GET /draft/positions
DraftApi GetDraftTeams GET /draft/teams
DrivesApi GetDrives GET /drives
GamesApi GetAdvancedBoxScore GET /game/box/advanced
GamesApi GetCalendar GET /calendar
GamesApi GetGamePlayerStats GET /games/players
GamesApi GetGameTeamStats GET /games/teams
GamesApi GetGames GET /games
GamesApi GetMedia GET /games/media
GamesApi GetRecords GET /records
GamesApi GetScoreboard GET /scoreboard
GamesApi GetWeather GET /games/weather
MetricsApi GetFieldGoalExpectedPoints GET /metrics/fg/ep
MetricsApi GetPredictedPoints GET /ppa/predicted
MetricsApi GetPredictedPointsAddedByGame GET /ppa/games
MetricsApi GetPredictedPointsAddedByPlayerGame GET /ppa/players/games
MetricsApi GetPredictedPointsAddedByPlayerSeason GET /ppa/players/season
MetricsApi GetPredictedPointsAddedByTeam GET /ppa/teams
MetricsApi GetPregameWinProbabilities GET /metrics/wp/pregame
MetricsApi GetWinProbability GET /metrics/wp
PlayersApi GetPlayerUsage GET /player/usage
PlayersApi GetReturningProduction GET /player/returning
PlayersApi GetTransferPortal GET /player/portal
PlayersApi SearchPlayers GET /player/search
PlaysApi GetLivePlays GET /live/plays
PlaysApi GetPlayStatTypes GET /plays/stats/types
PlaysApi GetPlayStats GET /plays/stats
PlaysApi GetPlayTypes GET /plays/types
PlaysApi GetPlays GET /plays
RankingsApi GetRankings GET /rankings
RatingsApi GetConferenceSP GET /ratings/sp/conferences
RatingsApi GetElo GET /ratings/elo
RatingsApi GetFPI GET /ratings/fpi
RatingsApi GetSP GET /ratings/sp
RatingsApi GetSRS GET /ratings/srs
RecruitingApi GetAggregatedTeamRecruitingRatings GET /recruiting/groups
RecruitingApi GetRecruits GET /recruiting/players
RecruitingApi GetTeamRecruitingRankings GET /recruiting/teams
StatsApi GetAdvancedGameStats GET /stats/game/advanced
StatsApi GetAdvancedSeasonStats GET /stats/season/advanced
StatsApi GetCategories GET /stats/categories
StatsApi GetPlayerSeasonStats GET /stats/player/season
StatsApi GetTeamStats GET /stats/season
TeamsApi GetFBSTeams GET /teams/fbs
TeamsApi GetMatchup GET /teams/matchup
TeamsApi GetRoster GET /roster
TeamsApi GetTalent GET /talent
TeamsApi GetTeams GET /teams
VenuesApi GetVenues GET /venues

<a id="documentation-for-models"></a>

Documentation for Models

<a id="documentation-for-authorization"></a>

Documentation for Authorization

Authentication schemes defined for the API: <a id="apiKey"></a>

apiKey

  • Type: Bearer Authentication
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.6.3 71 2/23/2025
5.6.2 63 2/23/2025
1.0.0 67 2/23/2025