CFBSharp.Api.TeamsApi

August 17, 2021 ยท View on GitHub

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

MethodHTTP requestDescription
GetFbsTeamsGET /teams/fbsFBS team list
GetRosterGET /rosterTeam rosters
GetTalentGET /talentTeam talent composite rankings
GetTeamMatchupGET /teams/matchupTeam matchup history
GetTeamsGET /teamsTeam information

GetFbsTeams

ICollection GetFbsTeams (int? year = null)

FBS team list

Information on major division teams

Example

using System;
using System.Diagnostics;
using CFBSharp.Api;
using CFBSharp.Client;
using CFBSharp.Model;

namespace Example
{
    public class GetFbsTeamsExample
    {
        public void main()
        {
            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new TeamsApi();
            var year = 56;  // int? | Year filter (optional) 

            try
            {
                // FBS team list
                ICollection<Team> result = apiInstance.GetFbsTeams(year);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TeamsApi.GetFbsTeams: " + e.Message );
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
yearint?Year filter[optional]

Return type

ICollection

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetRoster

ICollection GetRoster (string team = null, int? year = null)

Team rosters

Roster data

Example

using System;
using System.Diagnostics;
using CFBSharp.Api;
using CFBSharp.Client;
using CFBSharp.Model;

namespace Example
{
    public class GetRosterExample
    {
        public void main()
        {
            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new TeamsApi();
            var team = team_example;  // string | Team name (optional) 
            var year = 56;  // int? | Season year (optional) 

            try
            {
                // Team rosters
                ICollection<Player> result = apiInstance.GetRoster(team, year);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TeamsApi.GetRoster: " + e.Message );
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
teamstringTeam name[optional]
yearint?Season year[optional]

Return type

ICollection

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetTalent

ICollection GetTalent (int? year = null)

Team talent composite rankings

Team talent composite

Example

using System;
using System.Diagnostics;
using CFBSharp.Api;
using CFBSharp.Client;
using CFBSharp.Model;

namespace Example
{
    public class GetTalentExample
    {
        public void main()
        {
            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new TeamsApi();
            var year = 56;  // int? | Year filter (optional) 

            try
            {
                // Team talent composite rankings
                ICollection<TeamTalent> result = apiInstance.GetTalent(year);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TeamsApi.GetTalent: " + e.Message );
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
yearint?Year filter[optional]

Return type

ICollection

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetTeamMatchup

TeamMatchup GetTeamMatchup (string team1, string team2, int? minYear = null, int? maxYear = null)

Team matchup history

Matchup history

Example

using System;
using System.Diagnostics;
using CFBSharp.Api;
using CFBSharp.Client;
using CFBSharp.Model;

namespace Example
{
    public class GetTeamMatchupExample
    {
        public void main()
        {
            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new TeamsApi();
            var team1 = team1_example;  // string | First team
            var team2 = team2_example;  // string | Second team
            var minYear = 56;  // int? | Minimum year (optional) 
            var maxYear = 56;  // int? | Maximum year (optional) 

            try
            {
                // Team matchup history
                TeamMatchup result = apiInstance.GetTeamMatchup(team1, team2, minYear, maxYear);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TeamsApi.GetTeamMatchup: " + e.Message );
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
team1stringFirst team
team2stringSecond team
minYearint?Minimum year[optional]
maxYearint?Maximum year[optional]

Return type

TeamMatchup

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetTeams

ICollection GetTeams (string conference = null)

Team information

Get team information

Example

using System;
using System.Diagnostics;
using CFBSharp.Api;
using CFBSharp.Client;
using CFBSharp.Model;

namespace Example
{
    public class GetTeamsExample
    {
        public void main()
        {
            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new TeamsApi();
            var conference = conference_example;  // string | Conference abbreviation filter (optional) 

            try
            {
                // Team information
                ICollection<Team> result = apiInstance.GetTeams(conference);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TeamsApi.GetTeams: " + e.Message );
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
conferencestringConference abbreviation filter[optional]

Return type

ICollection

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]