Skip to content
This repository was archived by the owner on Mar 14, 2020. It is now read-only.
Mats Byrkjeland edited this page Nov 27, 2016 · 9 revisions

API endpoints related to team related statistics.

Main page for stats by team

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.

Statistics for a given 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.

Team leaderboards for all-time statistics

https://wcg-api.byrkje.land/teams/alltime

Method: GET
Corresponds to: https://secure.worldcommunitygrid.org/stat/viewStatsByTeamAT.do

Query parameters:

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

Team leaderboards for yesterday's statistics

https://wcg-api.byrkje.land/teams/yesterday

Method: GET
Corresponds to: https://secure.worldcommunitygrid.org/stat/viewStatsByTeamY.do

Query parameters:

Same as for Team leaderboards for all-time statistics