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

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.

| field | meaning |. |---|---|. | `cdid`, `dataset`, `preset`, `title` | ONS series ID, dataset, preset name and ONS title |. | `unit`, `seasonalAdjustment`, `frequency` | as published |. | `period`, `year`, `quarter`, `month` | the observation period |. | `value`, `change` | value and change from the previous period |. | `updated`, `releaseDate`, `nextRelease` | when the value was last updated, the latest release and the next one |. | `source` | the 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.

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

(617) 299-8887

Tell us about your project

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