← Catalog

UK Office for National Statistics (website timeseries API)

Office for National Statistics (UK) · CPI/CPIH/RPI (MM23) monthly, ~mid-month (next 22 July 2026 at build time); quarterly national accounts (QNA) quarterly (released 30 June 2026, next 13 August 2026); GDP second quarterly estimate (PN2) quarterly; labour market (LMS) monthly (released 20 July 2026, next 18 August 2026); population estimates (pop) annual. ONS revises history routinely: the autumn Blue Book rewrites GDP levels and LFS reweighting rewrites labour-market history.

342 datasets 4,541 stored 1955-01-01 to 2026-07-01 coverage

License: open-government · official terms. Attribution text and per-series license flags ride in every API envelope.

Source API docs

Quickstart

Latest observations, with provenance and citation on every value:

curl "https://starwell.dev/api/starwell/v1/sources/ons-api/series/D7G7/observations?latest=12"

A computed, cited answer from this source:

curl -X POST "https://starwell.dev/api/starwell/v1/answer" \
  -H "Authorization: Bearer dlk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"question": "What is the latest CPI ANNUAL RATE 00: ALL ITEMS 2015=100?", "source": "ons-api"}'

Data reads need no key; answers do. Keys are free at /account; a keyless sample lives at GET /api/starwell/v1/answer/demo.

As MCP tools in Claude, Cursor, or any agent framework:

claude mcp add --transport http starwell https://starwell.dev/api/starwell/mcp

Data series

SeriesIndicatorGeographyUnitFreqCoverage
LF24 Employment rate (aged 16 to 64, seasonally adjusted): % (three-month rolling average; ONS labels each window with its mid month) United Kingdom % monthly 1971-02-01 .. 2026-05-01
L55O CPIH ANNUAL RATE 00: ALL ITEMS 2015=100 United Kingdom % monthly 1989-01-01 .. 2026-07-01
IHYQ Gross Domestic Product: Quarter on Quarter growth: CVM SA % United Kingdom % quarterly 1955-04-01 .. 2026-04-01
D7BT CPI INDEX 00: ALL ITEMS 2015=100 United Kingdom Index, base year = 100 monthly 1988-01-01 .. 2026-07-01
D7G7 CPI ANNUAL RATE 00: ALL ITEMS 2015=100 United Kingdom % monthly 1989-01-01 .. 2026-07-01
CHAW RPI All Items Index: Jan 1987=100 United Kingdom Index, base year = 100 monthly 1987-01-01 .. 2026-07-01
ABMI Gross Domestic Product: chained volume measures: Seasonally adjusted £m United Kingdom £m quarterly 1955-01-01 .. 2026-01-01
MGSX Unemployment rate (aged 16 and over, seasonally adjusted): % (three-month rolling average; ONS labels each window with its mid month) United Kingdom % monthly 1971-02-01 .. 2026-05-01
YBHA Gross Domestic Product at market prices: Current price: Seasonally adjusted £m United Kingdom £m quarterly 1955-01-01 .. 2026-01-01
UKPOP United Kingdom population mid-year estimate United Kingdom persons annual 1971-01-01 .. 2025-01-01
L522 CPIH INDEX 00: ALL ITEMS 2015=100 United Kingdom Index, base year = 100 monthly 1988-01-01 .. 2026-07-01