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.

Try it
Ready-made, maintained by usRecords, 13 fieldsv1.0

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

Series
Series as CDID/dataset, such as d7g7/mm23 (CPI annual rate), chaw/mm23 (RPI index), abmi/pn2 (GDP) or mgsx/lms (unemployment rate); a CDID alone, or a series link from ons.gov.uk, also works. One per line, or separated by commas.
Example: d7g7/mm23, chaw/mm23
Frequencyoptional
months, quarters or years. Leave empty for the most frequent the series has.
Sinceoptional
Only periods starting on or after this date, as YYYY-MM (or YYYY, or YYYY-MM-DD), such as 2025-01.
Example: 2025-01
Untiloptional
Only periods starting on or before this date, as YYYY-MM (or YYYY, or YYYY-MM-DD).
Lastoptional
Only the newest this many periods of each series, such as 1 for the latest value.
Example: 3
Orderoptional
Newest period first (the default) or oldest first, within each series.

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
Endpoint
POSThttps://pullrow.dev/v1/apis/uk-ons-economic-series/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

serieslistrequired
Series as CDID/dataset, such as d7g7/mm23 (CPI annual rate), chaw/mm23 (RPI index), abmi/pn2 (GDP) or mgsx/lms (unemployment rate); a CDID alone, or a series link from ons.gov.uk, also works.
example: d7g7/mm23, chaw/mm23
frequencytext
months, quarters or years. Leave empty for the most frequent the series has.
example: monthsone of: months, quarters, years
sincetext
Only periods starting on or after this date, as YYYY-MM (or YYYY, or YYYY-MM-DD), such as 2025-01.
example: 2025-01
untiltext
Only periods starting on or before this date, as YYYY-MM (or YYYY, or YYYY-MM-DD).
lastnumber
Only the newest this many periods of each series, such as 1 for the latest value.
example: 3
ordertext
Newest period first (the default) or oldest first, within each series.
default: newestone of: newest, oldest

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

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 nameTypeShown on this page asFilled
cdidtextCdid3 of 3
datasettextDataset3 of 3
titletextTitle3 of 3
periodtextPeriod3 of 3
datedateDate3 of 3
valuenumberValue3 of 3
frequencytextFrequency3 of 3
unittextUnit3 of 3
update_datedateUpdate date3 of 3
release_datedateRelease date3 of 3
next_release_datedateNext release date3 of 3
urllinkLink3 of 3
dataset_urllinkDataset link3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordTitleCdidDatasetPeriodValueFrequencyUnitDateUpdate dateRelease dateNext release dateLinkDataset link
1CPI ANNUAL RATE 00: ALL ITEMS 2015=100D7G7MM232026 OCT3.6months%Oct 1, 2026Nov 18, 2026Nov 18, 2026Dec 16, 2026ons.gov.uk/economy/inflationandpriceindices/timeseries/d7g7/mm23ons.gov.uk/economy/inflationandpriceindices/datasets/consumerpriceindices
2CPI ANNUAL RATE 00: ALL ITEMS 2015=100D7G7MM232026 SEP3.5months%Sep 1, 2026Oct 21, 2026Nov 18, 2026Dec 16, 2026ons.gov.uk/economy/inflationandpriceindices/timeseries/d7g7/mm23ons.gov.uk/economy/inflationandpriceindices/datasets/consumerpriceindices
3CPI ANNUAL RATE 00: ALL ITEMS 2015=100D7G7MM232026 AUG3.1months%Aug 1, 2026Sep 16, 2026Nov 18, 2026Dec 16, 2026ons.gov.uk/economy/inflationandpriceindices/timeseries/d7g7/mm23ons.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.
Known limits
  • 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.