This repository was archived by the owner on Mar 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Teams
Mats Byrkjeland edited this page Nov 27, 2016
·
9 revisions
API endpoints related to team related statistics.
https://wcg-api.byrkje.land/teams
Method: GET
Corresponds to: https://secure.worldcommunitygrid.org/stat/viewTeams.do
Returns main statistics page for Stats by Team.
https://wcg-api.byrkje.land/teams/:teamId
Method: GET
Corresponds to: https://secure.worldcommunitygrid.org/team/viewTeamInfo.do?teamId=TEAMID
Returns statistics page for a specified team.
https://wcg-api.byrkje.land/teams/alltime
Method: GET
Corresponds to: https://secure.worldcommunitygrid.org/stat/viewStatsByTeamAT.do
| Key | Default | Available | Description |
|---|---|---|---|
sort |
avg_points |
points, members, cpu, avg_points
|
Sorts the leaderboard by param, descending |
type |
all |
all, unclassified, company, primary_school, secondary_school, junior_college, university_or_department, government_agency
|
Shows only teams of the specified type |
country |
ISO 3166-1 alpha-2 two letter country code | ||
page |
1 |
Positive integer | The pagination number |
page_size |
100 |
Positive integer | The number of teams to return per page |
https://wcg-api.byrkje.land/teams/yesterday
Method: GET
Corresponds to: https://secure.worldcommunitygrid.org/stat/viewStatsByTeamY.do
Same as for Team leaderboards for all-time statistics