Skip to content

ONS dataset observations

Values from an ONS dataset version. Needs dataset, version, dimension 1 and more.

Inputs

6 required
Dataset
ONS dataset id from ons/datasets, e.g. 'cpih01'Required · dataset
Version
Version number, from links.latest_version.id in ons/datasets, e.g. 67Required · version
Dimension 1
Name of dimension 1, e.g. 'time'Required · dimension_1
Value 1
Code for dimension_1, or '*' for one dimension only, e.g. '*'Required · value_1
Dimension 2
Name of dimension 2, e.g. 'geography'Required · dimension_2
Value 2
Code for dimension_2, or '*' for one dimension only, e.g. 'K02000001'Required · value_2
Edition
Dataset edition, e.g. 'time-series' (most datasets) or '2021'Optional · edition
Dimension count
Number of dimensions of the version (all must be filtered), e.g. '3'Optional · dimension_count
Dimension 3
Name of dimension 3, e.g. 'aggregate'Optional · dimension_3
Value 3
Code for dimension_3, or '*' for one dimension only, e.g. 'CP00'Optional · value_3
Dimension 4
Name of dimension 4, e.g. 'sex'Optional · dimension_4
Value 4
Code for dimension_4, or '*' for one dimension only, e.g. '0'Optional · value_4
Dimension 5
Name of dimension 5, e.g. 'agegroups'Optional · dimension_5
Value 5
Code for dimension_5, or '*' for one dimension only, e.g. '16-64'Optional · value_5
Dimension 6
Name of dimension 6, e.g. 'seasonaladjustment'Optional · dimension_6
Value 6
Code for dimension_6, or '*' for one dimension only, e.g. 'seasonal-adjustment'Optional · value_6

Pricing

Price
Free, no charge per call
Billing
No charge per call. A workspace is still needed so your agent can call it.
License
Open Government Licence v3.0
Attribution
Source: Office for National Statistics licensed under the Open Government Licence v3.0

Call

Your agent reads the schema and the price with inspect_tool before it runs the tool.

MCP call
cURL command
TypeScript
Tool ID

Alternatives

Knowledge & research

Connect your agent to 3,250+ tools for free

Sign in with Google or GitHub. No card required.