Olympics API

Welcome to the Olympics API developer hub. You'll find comprehensive guides and documentation to help you start working with Olympics API as quickly as possible.

Trial users
Please get in touch with our commercial team to direct any questions regarding the service.

Live users
Our on-boarding and customer support teams are on hand for any queries, contact customer.services@pressassociation.com

Guides    API Reference

Games

 

/games

List all available games.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games
var request = require("request");

var options = { method: 'GET',
  url: 'https://olympics.api.pressassociation.io/v3/games' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "total": 4,
  "item": [
    {
      "code": "OWG2018",
      "description": "Olympic Winter Games PyeongChang 2018"
    },
    {
      "code": "PWG2018",
      "description": "Paralympic Winter Games PyeongChang 2018"
    },
    {
      "code": "CG2018",
      "description": "Commonwealth Games Gold Coast 2018 "
    },
    {
      "code": "OCOG2020",
      "description": "Olympic Games Tokyo 2020"
    }
  ]
}

Query Params

limit
int32

Limit the the number of items to be returned per page. The 'limit' parameter is typically used with the 'offset' parameter to facilitate pagination.

Response

Games Collection

/games/{games}

Returns a game based on the games code.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games/games
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games/games
var request = require("request");

var options = { method: 'GET',
  url:
   'https://olympics.api.pressassociation.io/v3/games/games' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games/games")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games/games");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games/games"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "code": "OCOG2020",
  "description": "Olympic Games Tokyo 2020"
}

Path Params

games
string
required

Code of query entity

Response

Games Detail

Discipline

 

/games/{games}/discipline

Returns a list of disciplines for a games.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games/games/discipline
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games/games/discipline
var request = require("request");

var options = { method: 'GET',
  url:
   'https://olympics.api.pressassociation.io/v3/games/games/discipline' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games/games/discipline")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games/games/discipline");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games/games/discipline"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "total": 3,
  "item": [
    {
      "code": "ALP",
      "description": "Alpine Skiing"
    },
    {
      "code": "ART",
      "description": "Cultural Olympiad"
    },
    {
      "code": "BOB",
      "description": "Bobsleigh"
    }
  ]
}

Path Params

games
string
required

Code of query entity

Query Params

limit
int32

Limit the the number of items to be returned per page. The 'limit' parameter is typically used with the 'offset' parameter to facilitate pagination.

Response

Discipline Collection

/games/{games}/discipline/{discipline}

Returns the detail of a discipline for a games.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games/games/discipline/discipline
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games/games/discipline/discipline
var request = require("request");

var options = { method: 'GET',
  url:
   'https://olympics.api.pressassociation.io/v3/games/games/discipline/discipline' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games/games/discipline/discipline")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games/games/discipline/discipline");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games/games/discipline/discipline"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "code": "BOB",
  "description": "Bobsleigh",
  "sport": {
    "code": "BS",
    "description": "Bobsleigh"
  },
  "games": {
    "code": "OWG2018",
    "description": "Olympic Winter Games PyeongChang 2018"
  },
  "meta": {
    "scheduled": true,
    "nonSport": true
  }
}

Path Params

games
string
required

Code of query entity

discipline
string
required

Code of query entity

Response

Discipline Detail

Organisation

 

/games/{games}/organisation

Returns a list of countries for a games.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games/games/organisation
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games/games/organisation
var request = require("request");

var options = { method: 'GET',
  url:
   'https://olympics.api.pressassociation.io/v3/games/games/organisation' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games/games/organisation")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games/games/organisation");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games/games/organisation"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "total": 2,
  "item": [
    {
      "code": "GBR",
      "description": "Great Britain"
    },
    {
      "code": "ALG",
      "description": "Algeria"
    }
  ]
}

Path Params

games
string
required

Code of query entity

Response

Organisation Collection

/games/{games}/organisation/{organisation}

Returns the detail of a organisation for a games.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games/games/organisation/organisation
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games/games/organisation/organisation
var request = require("request");

var options = { method: 'GET',
  url:
   'https://olympics.api.pressassociation.io/v3/games/games/organisation/organisation' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games/games/organisation/organisation")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games/games/organisation/organisation");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games/games/organisation/organisation"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "code": "GBR",
  "description": "Great Britain"
}

Path Params

games
string
required

Code of query entity

organisation
string
required

Code of query entity

Response

Organisation Detail

Unit

 

/games/{games}/unit

Returns a list of units.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games/games/unit
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games/games/unit
var request = require("request");

var options = { method: 'GET',
  url:
   'https://olympics.api.pressassociation.io/v3/games/games/unit' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games/games/unit")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games/games/unit");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games/games/unit"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "total": 4,
  "item": [
    {
      "code": "SBDMBA-------------------------100",
      "description": "Ladies' Downhill Run 1",
      "start": "2016-11-25T09:45:00Z",
      "end": "2016-11-26T14:20:00Z",
      "meta": {
        "medal": "none"
      },
      "type": {
        "code": "ATH",
        "description": "Individuals"
      },
      "scheduleStatus": {
        "code": "DELAYED",
        "description": "Delayed",
        "notes": "Competition has not started and start is late (no new time)"
      },
      "phaseType": {
        "code": "0",
        "description": "Technical Meeting"
      },
      "venue": {
        "code": "ASJ",
        "description": "Alpensia Ski Jumping Ctr",
        "city": "Gangneung"
      },
      "games": {
        "code": "OWG2018",
        "description": "Olympic Winter Games PyeongChang 2018"
      },
      "discipline": {
        "code": "ALP",
        "description": "Alpine Skiing"
      },
      "event": {
        "code": "ALPWDH------09110-----",
        "description": "Women's Downhill, Standing",
        "meta": {
          "teamEvent": true
        }
      },
      "gender": {
        "code": "M",
        "description": "Male"
      },
      "phase": {
        "code": "ALPMAC----------------FNL-",
        "description": "Men's Alpine Combined"
      },
      "entrant": [
        {
          "startOrder": 2,
          "sortOrder": 2,
          "competitor": {
            "code": "CURXTEAM2---DEN01",
            "description": "Denmark",
            "type": "T",
            "organisation": {
              "code": "DEN",
              "description": "Denmark"
            }
          }
        },
        {
          "startOrder": 1,
          "sortOrder": 1,
          "competitor": {
            "code": "CURXTEAM2---BEL01",
            "description": "Belgium",
            "type": "T",
            "organisation": {
              "code": "BEL",
              "description": "Belgium"
            }
          }
        }
      ],
      "link": [
        {
          "rel": "self",
          "href": "http://olympics.api.press.net/v3/games/OWG2018/unit/SBDMBA----------------------------"
        },
        {
          "rel": "result",
          "href": "http://olympics.api.press.net/v3/games/OWG2018/unit/SBDMBA----------------------------/result"
        },
        {
          "rel": "phase",
          "href": "http://olympics.api.press.net/v3/games/OWG2018/phase/SBDMBA--------------------"
        },
        {
          "rel": "phase-result",
          "href": "http://olympics.api.press.net/v3/games/OWG2018/phase/SBDMBA--------------------/result"
        }
      ]
    },
    {
      "code": "BTH----------------------------200",
      "description": "Men's 7.5km - Standing",
      "start": "2016-11-26T10:45:00Z",
      "end": "2016-11-27T13:20:00Z",
      "meta": {
        "medal": "none"
      },
      "type": {
        "code": "ATH",
        "description": "Individuals"
      },
      "scheduleStatus": {
        "code": "SCHEDULED",
        "description": "Scheduled",
        "notes": "Competition has not started and start is late (no new time)"
      },
      "phaseType": {
        "code": "3",
        "description": "Competition"
      },
      "venue": {
        "code": "ABT",
        "description": "Alpensia Biathlon Centre",
        "city": "PyeongChang"
      },
      "games": {
        "code": "OWG2018",
        "description": "Olympic Winter Games PyeongChang 2018"
      },
      "discipline": {
        "code": "BTH",
        "description": "Biathlon"
      },
      "event": {
        "code": "7.5KM---09070-----",
        "description": "Men's 7.5km - Standing"
      },
      "gender": {
        "code": "M",
        "description": "Male"
      },
      "phase": {
        "code": "BTHM----------------------",
        "description": "Men's Biathlon"
      },
      "link": [
        {
          "rel": "self",
          "href": "http://olympics.api.press.net/v3/games/OWG2018/unit/BTH-------------------------------"
        },
        {
          "rel": "result",
          "href": "http://olympics.api.press.net/v3/games/OWG2018/unit/BTH-------------------------------/result"
        },
        {
          "rel": "phase",
          "href": "http://olympics.api.press.net/v3/games/OWG2018/phase/BTH-----------------------"
        },
        {
          "rel": "phase-result",
          "href": "http://olympics.api.press.net/v3/games/OWG2018/phase/BTH-----------------------/result"
        }
      ]
    },
    {
      "code": "FSK----------------------------300",
      "description": "Pair Skating",
      "start": "2016-11-26T09:45:00Z",
      "end": "2016-11-27T14:20:00Z",
      "meta": {
        "medal": "gold"
      },
      "type": {
        "code": "ATH",
        "description": "Individuals"
      },
      "scheduleStatus": {
        "code": "FINISHED",
        "description": "Finished",
        "notes": "All play is complete in the unit"
      },
      "phaseType": {
        "code": "3",
        "description": "Competition"
      },
      "venue": {
        "code": "GIA",
        "description": "Gangneung Ice Arena",
        "city": "PyeongChang"
      },
      "games": {
        "code": "OWG2018",
        "description": "Olympic Winter Games PyeongChang 2018"
      },
      "discipline": {
        "code": "FSK",
        "description": "Figure Skating"
      },
      "event": {
        "code": "PAIRS-------------",
        "description": "Pair Skating"
      },
      "gender": {
        "code": "X",
        "description": "Mixed"
      },
      "phase": {
        "code": "FSKXPAIRS-------------FNL-",
        "description": "Pair Skating"
      },
      "link": [
        {
          "rel": "self",
          "href": "http://olympics.api.press.net/v3/games/OWG2018/unit/FSK-------------------------------"
        },
        {
          "rel": "result",
          "href": "http://olympics.api.press.net/v3/games/OWG2018/unit/FSK-------------------------------/result"
        },
        {
          "rel": "phase",
          "href": "http://olympics.api.press.net/v3/games/OWG2018/phase/FSK-----------------------"
        },
        {
          "rel": "phase-result",
          "href": "http://olympics.api.press.net/v3/games/OWG2018/phase/FSK-----------------------/result"
        }
      ]
    },
    {
      "code": "FSK----------------------------400",
      "description": "Pair Skating",
      "start": "2016-11-26T14:45:00Z",
      "end": "2016-11-27T16:20:00Z",
      "meta": {
        "medal": "bronze"
      },
      "type": {
        "code": "ATH",
        "description": "Individuals"
      },
      "scheduleStatus": {
        "code": "RUNNING",
        "description": "Running",
        "notes": "Competition in progress"
      },
      "phaseType": {
        "code": "3",
        "description": "Competition"
      },
      "venue": {
        "code": "GIA",
        "description": "Gangneung Ice Arena",
        "city": "Gangneung"
      },
      "games": {
        "code": "OWG2018",
        "description": "Olympic Winter Games PyeongChang 2018"
      },
      "discipline": {
        "code": "FSK",
        "description": "Figure Skating"
      },
      "event": {
        "code": "PAIRS-------------",
        "description": "Pair Skating"
      },
      "gender": {
        "code": "X",
        "description": "Mixed"
      },
      "phase": {
        "code": "FSKXPAIRS-------------FNL-",
        "description": "Pair Skating"
      },
      "entrant": [
        {
          "startOrder": 2,
          "sortOrder": 2,
          "competitor": {
            "code": "CURXTEAM2---DEN01",
            "description": "Denmark",
            "type": "T",
            "organisation": {
              "code": "DEN",
              "description": "Denmark"
            }
          }
        },
        {
          "startOrder": 1,
          "sortOrder": 1,
          "competitor": {
            "code": "CURXTEAM2---BEL01",
            "description": "Belgium",
            "type": "T",
            "organisation": {
              "code": "BEL",
              "description": "Belgium"
            }
          }
        }
      ],
      "link": [
        {
          "rel": "self",
          "href": "http://olympics.api.press.net/v3/games/OWG2018/unit/FSK-------------------------------"
        },
        {
          "rel": "result",
          "href": "http://olympics.api.press.net/v3/games/OWG2018/unit/FSK-------------------------------/result"
        },
        {
          "rel": "phase",
          "href": "http://olympics.api.press.net/v3/games/OWG2018/phase/FSK-----------------------"
        },
        {
          "rel": "phase-result",
          "href": "http://olympics.api.press.net/v3/games/OWG2018/phase/FSK-----------------------/result"
        }
      ]
    }
  ]
}

Path Params

games
string
required

Code of query entity

Query Params

start
date-time

Limit the entities to ones within the specified range. The 'end' parameter is typically used in combination with the 'start' param to form a date range.
Formats Supported:

  • 'YYYY-MM-DD'
  • 'YYYY-MM-DD[T]HH:mm:ssZ'
  • 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'
  • 'YYYY-MM-DD[T]HH:mm:ss'
  • 'YYYY-MM-DD[T]HH:mm'
  • 'now'
  • 'today'
  • 'tomorrow'
  • 'now.plus.n'
  • 'now.minus.n'
end
date-time

Limit the entities to ones within the specified range. The 'end' parameter is typically used in combination with the 'start' param to form a date range.
Formats Supported:

  • 'YYYY-MM-DD'
  • 'YYYY-MM-DD[T]HH:mm:ssZ'
  • 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'
  • 'YYYY-MM-DD[T]HH:mm:ss'
  • 'YYYY-MM-DD[T]HH:mm'
  • 'now'
  • 'today'
  • 'tomorrow'
  • 'now.plus.n'
  • 'now.minus.n'
discipline
string

Code of query entity

organisation
string

Code of query entity

limit
int32

Limit the the number of items to be returned per page. The 'limit' parameter is typically used with the 'offset' parameter to facilitate pagination.

Response

Unit Collection, we need to add schedule helpers to look up by single day. Start list for head to head events needs adding.

/games/{games}/unit/{unit}

Returns the detail of a unit for a games.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games/games/unit/unit
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games/games/unit/unit
var request = require("request");

var options = { method: 'GET',
  url:
   'https://olympics.api.pressassociation.io/v3/games/games/unit/unit' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games/games/unit/unit")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games/games/unit/unit");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games/games/unit/unit"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "code": "SBDMBA----------------------------",
  "description": "Ladies' Downhill Run 1",
  "start": "2016-11-25T09:45:00Z",
  "end": "2016-11-26T14:20:00Z",
  "meta": {
    "medal": "none"
  },
  "type": {
    "code": "ATH",
    "description": "Individuals"
  },
  "scheduleStatus": {
    "code": "SCHEDULED",
    "description": "Delayed",
    "notes": "Competition has not started and start is late (no new time)"
  },
  "phaseType": {
    "code": "0",
    "description": "Technical Meeting"
  },
  "venue": {
    "code": "ASJ",
    "description": "Alpensia Ski Jumping Ctr",
    "city": "PyeongChang"
  },
  "games": {
    "code": "OWG2018",
    "description": "Olympic Winter Games PyeongChang 2018"
  },
  "discipline": {
    "code": "ALP",
    "description": "Alpine Skiing"
  },
  "event": {
    "code": "ALPWDH------09110-----",
    "description": "Women's Downhill, Standing",
    "meta": {
      "teamEvent": true
    }
  },
  "gender": {
    "code": "M",
    "description": "Male"
  },
  "phase": {
    "code": "ALPMAC----------------FNL-",
    "description": "Men's Alpine Combined"
  },
  "entrant": [
    {
      "startOrder": 2,
      "sortOrder": 2,
      "competitor": {
        "code": "CURXTEAM2---DEN01",
        "description": "Denmark",
        "type": "T",
        "organisation": {
          "code": "DEN",
          "description": "Denmark"
        }
      }
    },
    {
      "startOrder": 1,
      "sortOrder": 1,
      "competitor": {
        "code": "CURXTEAM2---BEL01",
        "description": "Belgium",
        "type": "T",
        "organisation": {
          "code": "BEL",
          "description": "Belgium"
        }
      }
    }
  ],
  "link": [
    {
      "rel": "self",
      "href": "http://olympics.api.press.net/v3/games/OWG2018/unit/SBDMBA----------------------------"
    },
    {
      "rel": "result",
      "href": "http://olympics.api.press.net/v3/games/OWG2018/unit/SBDMBA----------------------------/result"
    },
    {
      "rel": "phase",
      "href": "http://olympics.api.press.net/v3/games/OWG2018/phase/SBDMBA--------------------"
    },
    {
      "rel": "phase-result",
      "href": "http://olympics.api.press.net/v3/games/OWG2018/phase/SBDMBA--------------------/result"
    }
  ]
}

Path Params

games
string
required

Code of query entity

unit
string
required

Code of query entity

Response

Unit Detail

/games/{games}/unit/{unit}/result

Returns the Results for a unit.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games/games/unit/unit/result
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games/games/unit/unit/result
var request = require("request");

var options = { method: 'GET',
  url:
   'https://olympics.api.pressassociation.io/v3/games/games/unit/unit/result' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games/games/unit/unit/result")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games/games/unit/unit/result");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games/games/unit/unit/result"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "code": "SBDMBA----------------------------",
  "description": "Ladies' Downhill Run 1",
  "start": "2016-11-25T09:45:00Z",
  "end": "2016-11-26T14:20:00Z",
  "meta": {
    "medal": "none"
  },
  "resultStatus": {
    "code": "LIVE",
    "description": "Live"
  },
  "type": {
    "code": "ATH",
    "description": "Individuals"
  },
  "scheduleStatus": {
    "code": "SCHEDULED",
    "description": "Delayed",
    "notes": "Competition has not started and start is late (no new time)"
  },
  "phaseType": {
    "code": "0",
    "description": "Technical Meeting"
  },
  "venue": {
    "code": "ASJ",
    "description": "Alpensia Ski Jumping Ctr",
    "city": "PyeongChang"
  },
  "games": {
    "code": "OWG2018",
    "description": "Olympic Winter Games PyeongChang 2018"
  },
  "discipline": {
    "code": "ALP",
    "description": "Alpine Skiing"
  },
  "event": {
    "code": "ALPWDH------09110-----",
    "description": "Women's Downhill, Standing",
    "meta": {
      "teamEvent": true
    }
  },
  "gender": {
    "code": "M",
    "description": "Male"
  },
  "phase": {
    "code": "ALPMAC----------------FNL-",
    "description": "Men's Alpine Combined"
  },
  "result": [
    {
      "rank": 1,
      "value": "50.53",
      "valueType": "TIME",
      "sortOrder": 1,
      "startOrder": 1,
      "startSortOrder": 1,
      "diff": "0.00",
      "medal": "gold",
      "invalidResultMark": {
        "code": "DSQ",
        "description": "Disqualified"
      },
      "qualificationMark": {
        "code": "QT",
        "description": "Qualified by Time"
      },
      "wonLostTied": {
        "code": "T",
        "description": "Team / Athlete tied"
      },
      "meta": {
        "unchecked": true,
        "rankEqual": ""
      },
      "competitor": {
        "code": "BOBOTEAM4------USA01",
        "type": "T",
        "bib": "12",
        "organisation": {
          "code": "USA",
          "description": "USA"
        },
        "team": {
          "name": "USA"
        },
        "athlete": {
          "givenName": "",
          "familyName": "",
          "dob": "",
          "meta": {
            "class": ""
          },
          "gender": {
            "code": "M",
            "description": "Male"
          },
          "organisation": {
            "code": "USA",
            "description": "USA"
          }
        }
      }
    }
  ]
}

Path Params

games
string
required

Code of query entity

unit
string
required

Code of query entity

Response

Unit Results Detail

Event

 

/games/{games}/event/{event}

Returns the detail of a Event for a games.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games/games/event/event
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games/games/event/event
var request = require("request");

var options = { method: 'GET',
  url:
   'https://olympics.api.pressassociation.io/v3/games/games/event/event' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games/games/event/event")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games/games/event/event");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games/games/event/event"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "code": "ALPMDH----------------",
  "description": "Men's Downhill",
  "discipline": {
    "code": "ALP",
    "description": "Alpine Skiing"
  },
  "gender": {
    "code": "M",
    "description": "Men"
  },
  "meta": {
    "teamEvent": false
  },
  "link": [
    {
      "rel": "self",
      "href": "http://olympics.api.press.net/v3/games/OWG2018/event/SBDMBA----------------------------"
    },
    {
      "rel": "event-result",
      "href": "http://olympics.api.press.net/v3/games/OWG2018/event/SBDMBA----------------------------/result"
    }
  ]
}

Path Params

games
string
required

Code of query entity

event
string
required

Code of query entity

Response

Event Detail

/games/{games}/event/{event}/result

Returns the Results for a Event.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games/games/event/event/result
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games/games/event/event/result
var request = require("request");

var options = { method: 'GET',
  url:
   'https://olympics.api.pressassociation.io/v3/games/games/event/event/result' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games/games/event/event/result")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games/games/event/event/result");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games/games/event/event/result"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "code": "ALPMSG----------------",
  "description": "Men's Super-G",
  "discipline": {
    "code": "ALP",
    "description": "Alpine Skiing"
  },
  "gender": {
    "code": "M",
    "description": "Men"
  },
  "games": {
    "code": "OWG2018",
    "description": "Olympic Winter Games PyeongChang 2018"
  },
  "result": [
    {
      "medal": "gold",
      "rank": "1",
      "sortOrder": 1,
      "diff": "0.00",
      "meta": {
        "unchecked": false,
        "rankEqual": false
      },
      "value": "1:43.21",
      "valueType": {
        "code": "TIME",
        "description": "Time"
      },
      "competitor": {
        "code": "7705302",
        "type": "A",
        "organisation": {
          "code": "NOR",
          "description": "Norway"
        },
        "athlete": [
          {
            "code": "7705302",
            "order": 1,
            "givenName": "Guro Haugo",
            "familyName": "SKEIE",
            "organisation": {
              "code": "NOR",
              "description": "Norway"
            },
            "gender": {
              "code": "F",
              "description": "Female"
            },
            "meta": {
              "dob": "1997-07-07",
              "bib": "7"
            }
          }
        ]
      },
      "item": [
        {
          "rank": "1",
          "sortOrder": 1,
          "diff": "0.00",
          "meta": {
            "unchecked": false,
            "rankEqual": false
          },
          "value": "49.68",
          "valueType": {
            "code": "TIME",
            "description": "Time"
          },
          "unit": {
            "code": "ALPWSL----------------FNL-000200--",
            "description": "Ladies' Slalom Run 2",
            "phase": {
              "code": "ALPWSL----------------FNL-",
              "description": "Ladies' Slalom",
              "phaseType": {
                "code": 3,
                "description": "Competition"
              }
            }
          }
        },
        {
          "rank": "1",
          "sortOrder": 1,
          "diff": "0.00",
          "meta": {
            "unchecked": false,
            "rankEqual": false
          },
          "value": "53.53",
          "valueType": {
            "code": "TIME",
            "description": "Time"
          },
          "unit": {
            "code": "ALPWSL----------------FNL-000100--",
            "description": "Ladies' Slalom Run 1",
            "phase": {
              "code": "ALPWSL----------------FNL-",
              "description": "Ladies' Slalom",
              "phaseType": {
                "code": 3,
                "description": "Competition"
              }
            }
          }
        }
      ]
    }
  ],
  "meta": {
    "teamEvent": false
  },
  "link": [
    {
      "rel": "event",
      "href": "http://olympics.api.pressassociation.io/games/OWG2018/event/ALPMSG----------------"
    },
    {
      "rel": "self",
      "href": "http://olympics.api.pressassociation.io/games/OWG2018/event/ALPMSG----------------/result"
    }
  ]
}

Path Params

games
string
required

Code of query entity

event
string
required

Code of query entity

Response

Event Results Detail

Phase

 

/games/{games}/phase/{phase}

Returns the detail of a Phase for a games.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games/games/phase/phase
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games/games/phase/phase
var request = require("request");

var options = { method: 'GET',
  url:
   'https://olympics.api.pressassociation.io/v3/games/games/phase/phase' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games/games/phase/phase")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games/games/phase/phase");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games/games/phase/phase"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "code": "ALPMAC----------------FNL-",
  "description": "Men's Alpine Combined",
  "type": {
    "code": "0",
    "description": "Technical Meeting"
  },
  "games": {
    "code": "OWG2018",
    "description": "Olympic Winter Games PyeongChang 2018"
  },
  "discipline": {
    "code": "ALP",
    "description": "Alpine Skiing"
  },
  "event": {
    "code": "ALPWDH------09110-----",
    "description": "Women's Downhill, Standing",
    "meta": {
      "teamEvent": true
    }
  },
  "gender": {
    "code": "M",
    "description": "Male"
  },
  "link": [
    {
      "rel": "self",
      "href": "http://olympics.api.press.net/v3/games/OWG2018/phase/SBDMBA--------------------"
    },
    {
      "rel": "phase-result",
      "href": "http://olympics.api.press.net/v3/games/OWG2018/phase/SBDMBA--------------------/result"
    }
  ]
}

Path Params

games
string
required

Code of query entity

phase
string
required

Code of query entity

Response

Phase Detail

/games/{games}/phase/{phase}/result

Returns the Phase for a Event.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games/games/phase/phase/result
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games/games/phase/phase/result
var request = require("request");

var options = { method: 'GET',
  url:
   'https://olympics.api.pressassociation.io/v3/games/games/phase/phase/result' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games/games/phase/phase/result")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games/games/phase/phase/result");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games/games/phase/phase/result"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "code": "ALPMAC----------------FNL-",
  "description": "Men's Alpine Combined",
  "type": {
    "code": "0",
    "description": "Technical Meeting"
  },
  "games": {
    "code": "OWG2018",
    "description": "Olympic Winter Games PyeongChang 2018"
  },
  "discipline": {
    "code": "ALP",
    "description": "Alpine Skiing"
  },
  "event": {
    "code": "ALPWDH------09110-----",
    "description": "Women's Downhill, Standing",
    "meta": {
      "teamEvent": true
    }
  },
  "gender": {
    "code": "M",
    "description": "Male"
  },
  "result": [
    {
      "rank": 1,
      "sortOrder": 1,
      "startOrder": 1,
      "startSortOrder": 1,
      "diff": "0.00",
      "value": "50.53",
      "medal": "gold",
      "valueType": {
        "code": "TIME",
        "description": "Time"
      },
      "invalidResultMark": {
        "code": "DSQ",
        "description": "Disqualified"
      },
      "qualificationMark": {
        "code": "QT",
        "description": "Qualified by Time"
      },
      "wonLostTied": {
        "code": "T",
        "description": "Team / Athlete tied"
      },
      "meta": {
        "unchecked": true,
        "rankEqual": false
      },
      "competitor": {
        "code": "BOBOTEAM4------USA01",
        "type": "T",
        "bib": "12",
        "organisation": {
          "code": "USA",
          "description": "USA"
        },
        "team": {
          "name": "USA"
        },
        "athlete": [
          {
            "givenName": "",
            "familyName": "",
            "dob": "",
            "meta": {
              "class": ""
            },
            "gender": {
              "code": "M",
              "description": "Male"
            },
            "organisation": {
              "code": "USA",
              "description": "USA"
            }
          }
        ]
      }
    }
  ],
  "link": [
    {
      "rel": "self",
      "href": "http://olympics.api.pressassociation.io/games/OWG2018/phase/SBDMBA--------------------/result"
    },
    {
      "rel": "phase",
      "href": "http://olympics.api.pressassociation.io/games/OWG2018/phase/SBDMBA--------------------"
    }
  ]
}

Path Params

games
string
required

Code of query entity

phase
string
required

Code of query entity

Response

Event Phase Result Detail

Venue

 

/games/{games}/venue

Returns a list of venues for a games.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games/games/venue
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games/games/venue
var request = require("request");

var options = { method: 'GET',
  url:
   'https://olympics.api.pressassociation.io/v3/games/games/venue' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games/games/venue")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games/games/venue");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games/games/venue"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "total": 2,
  "item": [
    {
      "code": "ABT",
      "description": "Alpensia Biathlon Centre",
      "city": "PyeongChang",
      "meta": {
        "competition": true
      }
    },
    {
      "code": "ACC",
      "description": "Alpensia Cross-Ctry Ctr",
      "city": "PyeongChang",
      "meta": {
        "competition": true
      }
    }
  ]
}

Path Params

games
string
required

Code of query entity

Query Params

limit
int32

Limit the the number of items to be returned per page. The 'limit' parameter is typically used with the 'offset' parameter to facilitate pagination.

Response

Venue Collection

/games/{games}/venue/{venue}

Returns the detail of a Venue for a games.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games/games/venue/venue
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games/games/venue/venue
var request = require("request");

var options = { method: 'GET',
  url:
   'https://olympics.api.pressassociation.io/v3/games/games/venue/venue' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games/games/venue/venue")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games/games/venue/venue");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games/games/venue/venue"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "code": "ABT",
  "description": "Alpensia Biathlon Centre",
  "city": "PyeongChang",
  "meta": {
    "competition": true
  }
}

Path Params

games
string
required

Code of query entity

venue
string
required

Code of query entity

Response

Venue Detail

Participant

 

/games/{games}/participant

Returns a list of participants for a games.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games/games/participant
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games/games/participant
var request = require("request");

var options = { method: 'GET',
  url:
   'https://olympics.api.pressassociation.io/v3/games/games/participant' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games/games/participant")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games/games/participant");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games/games/participant"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "total": 2,
  "item": [
    {
      "code": "7700095",
      "givenName": "Forough",
      "familyName": "ABBASI",
      "dob": "1993-09-15",
      "gender": {
        "code": "F",
        "description": "Female"
      },
      "organisation": {
        "code": "IRI",
        "description": "Islamic Rep. of Iran"
      }
    },
    {
      "code": "7701162",
      "givenName": "Agnese",
      "familyName": "ABOLTINA",
      "dob": "1996-02-07",
      "gender": {
        "code": "F",
        "description": "Female"
      },
      "organisation": {
        "code": "LAT",
        "description": "Latvia"
      }
    }
  ]
}

Path Params

games
string
required

Code of query entity

Query Params

limit
int32

Limit the the number of items to be returned per page. The 'limit' parameter is typically used with the 'offset' parameter to facilitate pagination.

Response

Participant Collection

/games/{games}/participant/{participant}

Returns the detail of a Participant for a games.

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games/games/participant/participant
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games/games/participant/participant
var request = require("request");

var options = { method: 'GET',
  url:
   'https://olympics.api.pressassociation.io/v3/games/games/participant/participant' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games/games/participant/participant")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games/games/participant/participant");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games/games/participant/participant"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "code": "7700095",
  "givenName": "Forough",
  "familyName": "ABBASI",
  "dob": "1993-09-15",
  "gender": {
    "code": "F",
    "description": "Female"
  },
  "organisation": {
    "code": "IRI",
    "description": "Islamic Rep. of Iran"
  }
}

Path Params

games
string
required

Code of query entity

participant
string
required

Code of query entity

Response

Participant Detail

Medal Table

 

/games/{games}/medal-table

Returns a Medal Table

 

Header Auth

 Authentication is required for this endpoint.
gethttps://olympics.api.pressassociation.io/v3/games/games/medal-table
curl --request GET \
  --url https://olympics.api.pressassociation.io/v3/games/games/medal-table
var request = require("request");

var options = { method: 'GET',
  url:
   'https://olympics.api.pressassociation.io/v3/games/games/medal-table' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://olympics.api.pressassociation.io/v3/games/games/medal-table")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://olympics.api.pressassociation.io/v3/games/games/medal-table");

xhr.send(data);
import requests

url = "https://olympics.api.pressassociation.io/v3/games/games/medal-table"

response = requests.request("GET", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "total": 220,
  "item": [
    {
      "organisation": {
        "code": "USA",
        "description": "United States"
      },
      "medals": {
        "gold": 2,
        "silver": 1,
        "bronze": 0,
        "total": 3
      },
      "rank": 1
    },
    {
      "organisation": {
        "code": "AUT",
        "description": "Austria"
      },
      "medals": {
        "gold": 1,
        "silver": 0,
        "bronze": 1,
        "total": 2
      },
      "rank": 2
    },
    {
      "organisation": {
        "code": "FIN",
        "description": "Finland"
      },
      "medals": {
        "gold": 1,
        "silver": 0,
        "bronze": 1,
        "total": 2
      },
      "rank": 2
    },
    {
      "organisation": {
        "code": "KOR",
        "description": "Republic of Korea"
      },
      "medals": {
        "gold": 1,
        "silver": 0,
        "bronze": 1,
        "total": 2
      },
      "rank": 2
    },
    {
      "organisation": {
        "code": "NOR",
        "description": "Norway"
      },
      "medals": {
        "gold": 1,
        "silver": 0,
        "bronze": 0,
        "total": 1
      },
      "rank": 5
    },
    {
      "organisation": {
        "code": "POL",
        "description": "Poland"
      },
      "medals": {
        "gold": 1,
        "silver": 0,
        "bronze": 0,
        "total": 1
      },
      "rank": 5
    },
    {
      "organisation": {
        "code": "GER",
        "description": "Germany"
      },
      "medals": {
        "gold": 0,
        "silver": 2,
        "bronze": 0,
        "total": 2
      },
      "rank": 7
    },
    {
      "organisation": {
        "code": "CAN",
        "description": "Canada"
      },
      "medals": {
        "gold": 0,
        "silver": 1,
        "bronze": 1,
        "total": 2
      },
      "rank": 8
    },
    {
      "organisation": {
        "code": "ITA",
        "description": "Italy"
      },
      "medals": {
        "gold": 0,
        "silver": 1,
        "bronze": 0,
        "total": 1
      },
      "rank": 9
    },
    {
      "organisation": {
        "code": "JPN",
        "description": "Japan"
      },
      "medals": {
        "gold": 0,
        "silver": 1,
        "bronze": 0,
        "total": 1
      },
      "rank": 9
    }
  ]
}

Path Params

games
string
required

Code of query entity

Response

Medal Table