GameCenter Web Api

<back to all web services

GetAllTeams

Get all teams that match the requested filters. Must filter by one or more Sport, Gender, Level, or SchoolId. If no Count is supplied, a default of 100 will be used; there is a maximum of 5000 per request. 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/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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

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

{"Gender":"Male","Level":"Freshman","SchoolId":0,"Sport":"Football","ModifiedAfter":"String","Count":0,"Page":0,"PageSize":0,"Offset":0,"AuthToken":"String","Version":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Teams":[{"DeletedOn":"0001-01-01 00:00:00 +00","Gender":"Male","IsMyTeam":0,"Level":"Freshman","Logo":"String","SchoolId":0,"SchoolMascot":"String","SchoolName":"String","Seasons":[{"DeletedOn":"0001-01-01 00:00:00 +00","SeasonActiveEndDTTM":"0001-01-01 00:00:00 +00","SeasonActiveStartDTTM":"0001-01-01 00:00:00 +00","SeasonEndDTTM":"0001-01-01 00:00:00 +00","SeasonName":"String","SeasonStartDTTM":"0001-01-01 00:00:00 +00","SeasonYear":0,"TeamSeasonId":0}],"Sport":"Football","TeamAcronym":"String","TeamId":0,"TeamName":"String","TeamType":"School"}]}