This internet browser is no longer supported

We have detected that you are using Internet Explorer to visit this website. Internet Explorer is now being phased out by Microsoft. As a result, this website no longer supports any version of Internet Explorer. Some features on this site will not work. You should use a modern browser such as Edge, Chrome, Firefox, or Safari. If you have difficulty installing or accessing a different browser, please contact your IT support team.

BETA This website is in development – your feedback will help us to improve it Take part in user research

Using APIs

  • Automation

Currently, our UK SDG data site requires data files to be in a specific format. This means that we have to reformat data that is in a different format in order to make it usable on the site. We are looking to automate the process of updating the data we report. To do this we are working with Application Programming Interfaces (APIs), which allows two software applications to communicate. APIs are commonly used by websites across the internet to automate updates and changes.

Our aim is to use APIs that will work with data published online on a different website. For example, the ONS Gross Domestic Product (GDP) per head time series has a supporting API which makes the data available in a format we can use.

We have written software program code to:

  • Enable our data site to link with APIs used by other websites reporting data
  • Calculate the relevant new figures
  • Format the results so they are usable on our site
  • Print our indicator files ready to go on our site

We are currently using APIs to update 15 different indicators. By automating these updates, we are able to report the latest data faster. To date we have concentrated on developing API communication with ONS websites. We are investigating which other websites we can connect to using APIs in the future.

For more information about the work we are doing with APIs, please contact us.