Take a tour of the API

Get a series of data points

You can also get a series of data points using the get observation endpoint.

By making one of the dimensions values a wildcard, multiple data points are returned.

You can use this to fetch a time series or data for multiple geographic areas.

Example

Make a GET request to https://api.beta.ons.gov.uk/v1/datasets/cpih01/editions/time-series/versions/6/observations?time=*&geography=K02000001&aggregate=cpih1dim1A0

Show JavaScript example