All URIs are relative to https://apinext.collegefootballdata.com
Method | HTTP request | Description |
---|---|---|
GetConferenceSP | GET /ratings/sp/conferences | |
GetElo | GET /ratings/elo | |
GetFPI | GET /ratings/fpi | |
GetSP | GET /ratings/sp | |
GetSRS | GET /ratings/srs |
List<ConferenceSP> GetConferenceSP (int? year = null, string? conference = null)
Retrieves aggregated historical conference SP+ data
using System.Collections.Generic;
using System.Diagnostics;
using CollegeFootballData.Api;
using CollegeFootballData.Client;
using CollegeFootballData.Model;
namespace Example
{
public class GetConferenceSPExample
{
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 RatingsApi(config);
var year = 56; // int? | Optional year filter (optional)
var conference = "conference_example"; // string? | Optional conference filter (optional)
try
{
List<ConferenceSP> result = apiInstance.GetConferenceSP(year, conference);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RatingsApi.GetConferenceSP: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<List<ConferenceSP>> response = apiInstance.GetConferenceSPWithHttpInfo(year, conference);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RatingsApi.GetConferenceSPWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
year | int? | Optional year filter | [optional] |
conference | string? | Optional conference filter | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Ok | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<TeamElo> GetElo (int? year = null, int? week = null, SeasonType? seasonType = null, string? team = null, string? conference = null)
Retrieves historical Elo ratings
using System.Collections.Generic;
using System.Diagnostics;
using CollegeFootballData.Api;
using CollegeFootballData.Client;
using CollegeFootballData.Model;
namespace Example
{
public class GetEloExample
{
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 RatingsApi(config);
var year = 56; // int? | Optional year filter (optional)
var week = 56; // int? | Optional week filter, defaults to last available week in the season (optional)
var seasonType = new SeasonType?(); // SeasonType? | Optional season type filter (optional)
var team = "team_example"; // string? | Optional team filter (optional)
var conference = "conference_example"; // string? | Optional conference filter (optional)
try
{
List<TeamElo> result = apiInstance.GetElo(year, week, seasonType, team, conference);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RatingsApi.GetElo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<List<TeamElo>> response = apiInstance.GetEloWithHttpInfo(year, week, seasonType, team, conference);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RatingsApi.GetEloWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
year | int? | Optional year filter | [optional] |
week | int? | Optional week filter, defaults to last available week in the season | [optional] |
seasonType | SeasonType? | Optional season type filter | [optional] |
team | string? | Optional team filter | [optional] |
conference | string? | Optional conference filter | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Ok | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<TeamFPI> GetFPI (int? year = null, string? team = null, string? conference = null)
Retrieves historical Football Power Index (FPI) ratings
using System.Collections.Generic;
using System.Diagnostics;
using CollegeFootballData.Api;
using CollegeFootballData.Client;
using CollegeFootballData.Model;
namespace Example
{
public class GetFPIExample
{
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 RatingsApi(config);
var year = 56; // int? | year filter, required if team not specified (optional)
var team = "team_example"; // string? | team filter, required if year not specified (optional)
var conference = "conference_example"; // string? | Optional conference filter (optional)
try
{
List<TeamFPI> result = apiInstance.GetFPI(year, team, conference);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RatingsApi.GetFPI: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<List<TeamFPI>> response = apiInstance.GetFPIWithHttpInfo(year, team, conference);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RatingsApi.GetFPIWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
year | int? | year filter, required if team not specified | [optional] |
team | string? | team filter, required if year not specified | [optional] |
conference | string? | Optional conference filter | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Ok | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<TeamSP> GetSP (int? year = null, string? team = null)
Retrieves SP+ ratings for a given year or school
using System.Collections.Generic;
using System.Diagnostics;
using CollegeFootballData.Api;
using CollegeFootballData.Client;
using CollegeFootballData.Model;
namespace Example
{
public class GetSPExample
{
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 RatingsApi(config);
var year = 56; // int? | Year filter, required if team not specified (optional)
var team = "team_example"; // string? | Team filter, required if year not specified (optional)
try
{
List<TeamSP> result = apiInstance.GetSP(year, team);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RatingsApi.GetSP: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<List<TeamSP>> response = apiInstance.GetSPWithHttpInfo(year, team);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RatingsApi.GetSPWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
year | int? | Year filter, required if team not specified | [optional] |
team | string? | Team filter, required if year not specified | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Ok | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<TeamSRS> GetSRS (int? year = null, string? team = null, string? conference = null)
Retrieves historical SRS for a year or team
using System.Collections.Generic;
using System.Diagnostics;
using CollegeFootballData.Api;
using CollegeFootballData.Client;
using CollegeFootballData.Model;
namespace Example
{
public class GetSRSExample
{
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 RatingsApi(config);
var year = 56; // int? | Year filter, required if team not specified (optional)
var team = "team_example"; // string? | Team filter, required if year not specified (optional)
var conference = "conference_example"; // string? | Optional conference filter (optional)
try
{
List<TeamSRS> result = apiInstance.GetSRS(year, team, conference);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RatingsApi.GetSRS: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
ApiResponse<List<TeamSRS>> response = apiInstance.GetSRSWithHttpInfo(year, team, conference);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RatingsApi.GetSRSWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
year | int? | Year filter, required if team not specified | [optional] |
team | string? | Team filter, required if year not specified | [optional] |
conference | string? | Optional conference filter | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Ok | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]