Skip to content
This repository was archived by the owner on Mar 14, 2020. It is now read-only.

Challenges

Mats Byrkjeland edited this page Nov 27, 2016 · 2 revisions

API endpoints related to challenge related statistics.

Statistics for a challenge

https://wcg-api.byrkje.land/challenges/:challengeId

Method: GET
Corresponds to: https://secure.worldcommunitygrid.org/team/challenge/viewTeamChallenge.do?challengeId=CHALLENGE_ID

Returns statistics page for a specified challenge.

Example

curl 'https://wcg-api.byrkje.land/challenges/8183' | python -m json.tool

Response:

{
    "teamChallenge": {
        "lastUpdated": "2016-11-26T23:59:59",
        "scoreboard": [
            {
                "rank": "1",
                "resource": {
                    "description": "Abakus Linjeforening",
                    "url": "http://www.worldcommunitygrid.org/team/viewTeamInfo.do?teamId=2TXCT2Z972&xml=true"
                },
                "score": "4157396",
                "teamId": "2TXCT2Z972",
                "teamName": "Abakus Linjeforening"
            },
            {
                "rank": "2",
                "resource": {
                    "description": "Linjeforeningen Online",
                    "url": "http://www.worldcommunitygrid.org/team/viewTeamInfo.do?teamId=3KWRNGFL72&xml=true"
                },
                "score": "3997992",
                "teamId": "3KWRNGFL72",
                "teamName": "Linjeforeningen Online"
            }
        ],
        "teamChallengeSummary": {
            "acceptedTeams": "2",
            "challengeId": "8183",
            "endDate": "2016-12-24",
            "name": "Linjeforeningsjuleutfordringa 16",
            "resource": {
                "description": "Linjeforeningsjuleutfordringa 16",
                "url": "http://www.worldcommunitygrid.org/team/challenge/viewTeamChallenge.do?challengeId=8183&xml=true"
            },
            "startDate": "2016-11-24",
            "type": "1"
        }
    }
}