Back to top

NOTE: this documentation exists for posterity, but as the sochi2014 website is no longer active, this application is also non-functioning. It remains here for posterity. See the original blog post for more information.

Olympic Medals API publishes a JSON payload containing the current medal count for the Sochi 2014 Olympic Games. The full source code for this API is available on GitHub

Medals 

Standings 

Current Standings
/api/v1/medals

Get current standings ranked by medal points. http://olympics.clearlytech.com/api/v1/medals

  • Response  200
  • Headers
    Content-Type: application/json
    Body
    [
        {
          "country_id": "united-states",
          "country_name": "United States",
          "rank": 1,
          "gold_count": 12,
          "silver_count": 14,
          "bronze_count": 6,
          "medal_count": 32
        },
        {
          "country_id": "germany",
          "country_name": "Germany",
          "rank": 2,
          "gold_count": 8,
          "silver_count": 16,
          "bronze_count": 1,
          "medal_count": 25
        }
    ]
    

Country Medals 

Country Medal Count
/api/v1/medals/{country_id}

Return current medal count for a single country, based on country_id shortname.

For example, http://olympics.clearlytech.com/api/v1/medals/united-states

  • Response  200
  • Headers
    Content-Type: application/json
    Body
    {
      "country_name": "United States",
      "rank": 1,
      "gold_count": 12,
      "silver_count": 14,
      "bronze_count": 6,
      "medal_count": 32
    }
    
  • Response  400
  • Headers
    Content-Type: application/json
    Body
    {
      "error": "unknown or missing country_id param"
    }
    

Generated by aglio on 17 Nov 2014