GameCenter Web Api

<back to all web services

GetTeams

Get public team information. API versions explicitly requested that are less than 1.2 will return a de-normalized Season, instead of a Team with Seasons.

The following routes are available for this service:
GET/teams/{teamSeasonIds}
POST/teams
Parameters:
NameParameterData TypeRequiredDescription
ModifiedAfterpathstringNoOptional, but HIGHLY recommended; must be in UTC or included an appropriate time zone offset; format: YYYY-MM-DDTHH:mm:ss+ZZ
CountpathstringNodeprecated in favor of PageSize; how many results to return per page
PagepathstringNoone-based page, based on how big each page is (via PageSize)
PageSizepathstringNohow many results to return per page; may be limited if too many are requested—ensure subsequent pages never request a bigger PageSize than is returned in a previous page (unless this is the last or after the last page, in other words, zero results were returned) to ensure results are not accidentally skipped
OffsetpathstringNodeprecated in favor of Page; how many results to skip

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/GetTeams HTTP/1.1 
Host: api.digitalscout.com 
Content-Type: application/xml
Content-Length: length

<GetTeams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameCenter.Api.Models">
  <AuthToken xmlns="http://schemas.datacontract.org/2004/07/GameCenter.Api.Models.Abstractions">String</AuthToken>
  <Version xmlns="http://schemas.datacontract.org/2004/07/GameCenter.Api.Models.Abstractions">String</Version>
  <Count xmlns="http://schemas.datacontract.org/2004/07/GameCenter.Api.Models.Abstractions">0</Count>
  <ModifiedAfter xmlns="http://schemas.datacontract.org/2004/07/GameCenter.Api.Models.Abstractions">String</ModifiedAfter>
  <Offset xmlns="http://schemas.datacontract.org/2004/07/GameCenter.Api.Models.Abstractions">0</Offset>
  <Page xmlns="http://schemas.datacontract.org/2004/07/GameCenter.Api.Models.Abstractions">0</Page>
  <PageSize xmlns="http://schemas.datacontract.org/2004/07/GameCenter.Api.Models.Abstractions">0</PageSize>
  <TeamSeasonIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>0</d2p1:long>
  </TeamSeasonIds>
</GetTeams>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetTeamsWithSeasonsResponse 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>
</GetTeamsWithSeasonsResponse>