Skip to main content

https://onsdigital.blog.gov.uk/2024/09/16/changes-were-making-to-our-api-service/

Changes we’re making to our API service

Posted by: , Posted on: - Categories: APIs, Data

API response text

At the Office for National Statistics, we are continually improving our digital products and services and James Male, Senior Product Manager, shares our plans to retire an API (application programming interface) and how to get the data from an alternative ONS API.

Retiring the v0 API

We will be retiring the public facing V0 API that was developed several years ago by the digital team at the ONS. The API was introduced with the goal of making it easier for users to programmatically get the data they need without having to visit the ONS website.

When it will be switched off

We will be doing a rolling retirement of the API over a 6-week period which will start with effect from Monday 14/10/2024. Also known as a "rolling blackout", this means we'll be taking this API offline at certain times of the day, gradually increasing the offline duration before making it completely unavailable with effect from Monday 25/11/2024.

Our controlled, gradual approach of phasing out the V0 API should help raise awareness of the plan to retire the API, providing our users with time to migrate to using the alternative Search API and to gain valuable user feedback.

What the API does

There are three endpoints available in the V0 API that when currently queried, return the following data:

  • Search - an API version of the website search
  • Datasets - datasets available on the website
  • Time Series - time series from the website and corresponding data

The plan to retire means that the below will eventually become unavailable:

  • api.ons.gov.uk/search
  • api.ons.gov.uk/dataset
  • api.ons.gov.uk/timeseries

Why we’re switching the API off

At the Office for National Statistics, we are continually improving our digital products and services and retiring this API is part of a larger suite of work we’ve started to improve our API services in line with the guidance on gov.uk.

The V0 API was developed some time ago as an initial concept to provide users with data via an API and has provided us with great insights, enabling us to learn more about our users and the way they want to retrieve data from us. We’ve since concluded that it is no longer viable for us to keep it live as the technology is now outdated. It also doesn't provide good value for money as the cost of upkeep is high when comparing with other similar services.

However, the data is still available through our more modern Search API which we recommend using instead.

How to update your systems to use the alternative Search API

To update your systems to use the Search API, please follow the guidance that’s been published on our Developer Hub.

We’d love to know more about the users of our API’s so that we can keep you updated and to learn more about your needs. If you’d like to stay up to date, please subscribe to this blog. You can submit feedback through our feedback form or contact us by emailing apiservice@ons.gov.uk.

Sharing and comments

Share this page

Leave a comment

We only ask for your email address so we know you're a real person

By submitting a comment you understand it may be published on this public website. Please read our privacy notice to see how the GOV.UK blogging platform handles your information.