UK ONS Economic Time Series API
UK Office for National Statistics time series by their series id (CDID), such as CPI and RPI inflation, GDP, unemployment and average earnings: one record per period with the value, unit, period label and start date, when ONS last updated it and the series' next release date.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from ons.gov.uk/economy/inflationandpriceindices/timeseries/d7g7/mm23
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/uk-ons-economic-series/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"series":["d7g7/mm23","chaw/mm23"]},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
13 fields.
Basics
- Cdid
ONS series id, such as D7G7.
Example D7G7
- Dataset
ONS dataset id the series comes from, such as MM23.
Example MM23
- Title
The series title, such as CPI ANNUAL RATE 00: ALL ITEMS 2015=100.
Example CPI ANNUAL RATE 00: ALL ITEMS 2015=100
- Period
The period as ONS labels it: 2026 OCT, 2026 Q3 or 2025.
Example 2026 OCT
- Value
The value for the period, in unit.
Example 3.6
- Frequency
months, quarters or years.
Example months
- Unit
Unit of the value, such as %, £m or Index, base year = 100.
Example %
Dates
- Date
First day of the period (the middle month for three-month averages).
Example Oct 1, 2026
- Update date
The day ONS last updated this value (UK date).
Example Nov 18, 2026
- Release date
The day of the series' latest release (UK date).
Example Nov 18, 2026
- Next release date
The day ONS plans to release the series next, when announced.
Example Dec 16, 2026
Links
- Link
The series page on ons.gov.uk.
Example ons.gov.uk/economy/inflationandpriceindices/timeseries/d7g7/mm23
- Dataset link
The ONS dataset page the series belongs to.
Example ons.gov.uk/economy/inflationandpriceindices/datasets/consumerpriceindices
Technical detailsField names and types for developers
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
cdid | text | Cdid | 3 of 3 |
dataset | text | Dataset | 3 of 3 |
title | text | Title | 3 of 3 |
period | text | Period | 3 of 3 |
date | date | Date | 3 of 3 |
value | number | Value | 3 of 3 |
frequency | text | Frequency | 3 of 3 |
unit | text | Unit | 3 of 3 |
update_date | date | Update date | 3 of 3 |
release_date | date | Release date | 3 of 3 |
next_release_date | date | Next release date | 3 of 3 |
url | link | Link | 3 of 3 |
dataset_url | link | Dataset link | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Title | Cdid | Dataset | Period | Value | Frequency | Unit | Date | Update date | Release date | Next release date | Link | Dataset link |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | CPI ANNUAL RATE 00: ALL ITEMS 2015=100 | D7G7 | MM23 | 2026 OCT | 3.6 | months | % | Oct 1, 2026 | Nov 18, 2026 | Nov 18, 2026 | Dec 16, 2026 | ons.gov.uk/economy/inflationandpriceindices/timeseries/d7g7/mm23 | ons.gov.uk/economy/inflationandpriceindices/datasets/consumerpriceindices |
| 2 | CPI ANNUAL RATE 00: ALL ITEMS 2015=100 | D7G7 | MM23 | 2026 SEP | 3.5 | months | % | Sep 1, 2026 | Oct 21, 2026 | Nov 18, 2026 | Dec 16, 2026 | ons.gov.uk/economy/inflationandpriceindices/timeseries/d7g7/mm23 | ons.gov.uk/economy/inflationandpriceindices/datasets/consumerpriceindices |
| 3 | CPI ANNUAL RATE 00: ALL ITEMS 2015=100 | D7G7 | MM23 | 2026 AUG | 3.1 | months | % | Aug 1, 2026 | Sep 16, 2026 | Nov 18, 2026 | Dec 16, 2026 | ons.gov.uk/economy/inflationandpriceindices/timeseries/d7g7/mm23 | ons.gov.uk/economy/inflationandpriceindices/datasets/consumerpriceindices |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Contains public sector information from the Office for National Statistics licensed under the Open Government Licence v3.0; credit it as "Source: Office for National Statistics". ONS does not endorse this API.
- Series ids (CDIDs) only, up to 50 per run: find a CDID on the ONS website or in its dataset tables. A CDID given without a dataset takes the dataset ONS updated most recently.
- Values are as ONS publishes them today: revisions overwrite earlier figures and no vintages are kept. ONS updates each series on its release days, mostly monthly.
- Labour market series are rolling three-month averages: period then reads like 2026 JUL-SEP and date is the middle month, as ONS files it.
- ONS limits how fast its site may be read (15 requests per 10 seconds for busy pages), so this API makes one request at a time, two per series (one for a series link): 50 series take about a minute or more.
- Periods without a value are left out. Titles are as ONS writes them, often in capitals.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.