get_timeseries
Access a published ONS time series via its website URI to retrieve the latest headline values for key economic indicators like inflation, unemployment, and GDP.
Instructions
Get a PUBLISHED ONS time series by its website URI. PREFER THIS for headline indicators (inflation rates, unemployment rate, GDP growth).
This hits /v1/data, which serves the same figures as the ONS website — the published headline value, not something derived from an index. It returns months/quarters/years already in chronological order, so the last element is the latest period.
uri is the ONS website path for the series, e.g.
"/economy/inflationandpriceindices/timeseries/l55o/mm23" for the CPIH
annual rate. These URIs are evergreen and don't change between
releases. Find them via the series CDID (l55o, d7g7, mgsx ...) and the
dataset (mm23, lms ...).
Prefer this over get_observations for "what is the latest X rate" questions: the CMD datasets behind get_observations are curated separately and some lag the published series by months or years.
CAVEAT on next_release: it is a snapshot captured at the LAST
publication, not a live release-calendar lookup, so it can be wrong.
Observed reporting "15 July" when the ONS release calendar said "22
July". Treat it as indicative only; for a real next-release date use
list_releases / get_release (the live calendar), not this field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||