GameCenter Web Api

<back to all web services

GetTeamsByConference

Gets all teams for a conference and sport. Does not return deleted teams or seasons. API versions explicitly requested that are less than 1.2 will return a denormalized Season, instead of a Team with Seasons.

The following routes are available for this service:
GET/conferences/{ConferenceId}/teams/{sport}

To override the Content-type in your clients HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/GetTeamsByConference HTTP/1.1 
Host: api.digitalscout.com 
Content-Type: application/xml
Content-Length: length

<GetTeamsByConference xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameCenter.Api.Models">
  <ConferenceId>0</ConferenceId>
  <Sport>Football</Sport>
</GetTeamsByConference>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetTeamsWithSeasonsByConferenceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameCenter.Api.Models">
  <Teams>
    <TeamWithSeasonsResponseModel>
      <CreatedOn>0001-01-01T00:00:00</CreatedOn>
      <CreatorGuid>00000000-0000-0000-0000-000000000000</CreatorGuid>
      <DeletedOn>0001-01-01T00:00:00</DeletedOn>
      <Gender>Male</Gender>
      <IsMyTeam>0</IsMyTeam>
      <Level>Freshman</Level>
      <Logo>String</Logo>
      <SchoolId>0</SchoolId>
      <SchoolMascot>String</SchoolMascot>
      <SchoolName>String</SchoolName>
      <Seasons>
        <SeasonResponseModel>
          <CreatedOn>0001-01-01T00:00:00</CreatedOn>
          <CreatorGuid>00000000-0000-0000-0000-000000000000</CreatorGuid>
          <DeletedOn>0001-01-01T00:00:00</DeletedOn>
          <SeasonActiveEndDTTM>0001-01-01T00:00:00</SeasonActiveEndDTTM>
          <SeasonActiveStartDTTM>0001-01-01T00:00:00</SeasonActiveStartDTTM>
          <SeasonEndDTTM>0001-01-01T00:00:00</SeasonEndDTTM>
          <SeasonName>String</SeasonName>
          <SeasonStartDTTM>0001-01-01T00:00:00</SeasonStartDTTM>
          <SeasonYear>0</SeasonYear>
          <TeamSeasonId>0</TeamSeasonId>
          <UpdatedOn>0001-01-01T00:00:00</UpdatedOn>
        </SeasonResponseModel>
      </Seasons>
      <Sport>Football</Sport>
      <TeamAcronym>String</TeamAcronym>
      <TeamId>0</TeamId>
      <TeamName>String</TeamName>
      <TeamType>School</TeamType>
      <UpdatedOn>0001-01-01T00:00:00</UpdatedOn>
    </TeamWithSeasonsResponseModel>
  </Teams>
</GetTeamsWithSeasonsByConferenceResponse>