Pushbuild

UK ONS Statistics API: CPI, GDP, Jobs & Wages

UK Office for National Statistics time series: CPI, CPIH, core and services inflation, RPI, GDP growth, monthly GDP, unemployment, employment, pay growth, retail sales, public borrowing and trade. 17 presets or any ONS series ID (CDID), with release and next-release dates.

$0.16 per 1,000 observations

Get an API key

Example request

POST /uk-ons-statistics/run
{
  "presets": [
    "cpi-annual-rate",
    "gdp-quarterly-growth",
    "unemployment-rate",
    "regular-pay-growth"
  ],
  "maxItems": 20
}

What a response looks like

POST /uk-ons-statistics/run{"maxItems": 5, "presets": ["cpi-annual-rate", "gdp-quarterly-growth", "unemployment-rate", "regular-pay-growth"]}
{"count": 5, "items": [{ "cdid": "D7G7", "change": null, "dataset": "MM23", "frequency": "monthly", "month": "October", "period": "2024 OCT", "preset": "cpi-annual-rate", "quarter": null, "seasonalAdjustment": null, "title": "CPI ANNUAL RATE 00: ALL ITEMS 2015=100", … ]}
D7G70.3D7G7-0.1D7G70.5D7G7-0.2
change by cdid in this sample response
cdidchangedatasetfrequencymonthperiod
D7G7MM23monthlyOctober2024 OCT
D7G70.3MM23monthlyNovember2024 NOV
D7G7-0.1MM23monthlyDecember2024 DEC
D7G70.5MM23monthlyJanuary2025 JAN
D7G7-0.2MM23monthlyFebruary2025 FEB

Real rows returned by this API on 2026-11-09 for the request shown.

What it returns

UK official statistics from the Office for National Statistics, one row per series and period, with the date of the latest release and the next scheduled one.

fieldmeaning
cdid, dataset, preset, titleONS series ID, dataset, preset name and ONS title
unit, seasonalAdjustment, frequencyas published
period, year, quarter, monththe observation period
value, changevalue and change from the previous period
updated, releaseDate, nextReleasewhen the value was last updated, the latest release and the next one
sourcethe series page on ons.gov.uk

Request

POST https://api.pushbuild.com/uk-ons-statistics/run with a JSON body. Send your key in the X-API-Key header.

FieldTypeDescription
presetslist of stringsHeadline UK series. Default when nothing is chosen: CPI annual rate, GDP quarterly growth, unemployment rate and regular pay growth.
cdidslist of stringsAny four-character ONS series ID, optionally with its dataset, for example ABMI/QNA (GDP level) or D7BT (CPI index).
frequencystring: , monthly, quarterly, annualWhich version of a series to return when ONS publishes several. Default: "".
lastNintegerMost recent observations per series. Ignored when fromPeriod or toPeriod is set. Default: 24.
fromPeriodstringReturn every observation from this year. Optional.
toPeriodstringReturn observations up to this year. Optional.
changesbooleanAdd the change from the previous observation in the same series. Default: true.
maxItemsintegerMaximum items to return (1-500). Default: 100.

Example

curl -X POST https://api.pushbuild.com/uk-ons-statistics/run \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"presets": ["cpi-annual-rate", "gdp-quarterly-growth", "unemployment-rate", "regular-pay-growth"], "maxItems": 20}'

Response

{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}

Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.

Pricing

Pay only for results returned: $0.16 per 1,000 observations. No charge for errors or empty searches.

ObservationsCost
1,000$0.16
10,000$1.60
100,000$16.00
1,000,000$160.00
6,249 a monthFree ($1 monthly credit)

Use it from Claude, ChatGPT or Cursor

This API is also an MCP server: https://api.pushbuild.com/mcp/uk-ons-statistics. Add it to any assistant that supports remote MCP servers, with your key in the X-API-Key header. Same prices. Setup for each app.

Tell us what you need built.

Questions about this API, higher volumes, or a data source you need that we don't cover yet.

hello@pushbuild.com

New APIs and data, twice a month

New data APIs, coverage changes and analysis from Pushbuild. No spam; one click to leave.

Tell us about your project

A few questions so we can come back with a written scope. We reply within one business day.

Want these numbers on one screen alongside your own? Dashboards and reporting