Office for National Statistics dataset catalogue
The UK Office for National Statistics developer API: list and describe the ONS datasets (labour market, prices, population, well-being and more) with their latest version and release dates.
No API key needed to call
- Source
- Office for National Statistics API
- Licence and terms
- Open Government Licence v3.0
- Coverage
- United Kingdom
- Refresh cadence
- Answers are shared and cached for 21600 seconds.
Questions you can ask
Operations
List ONS datasets
Answers: which datasets does the ONS publish through its API, with ids, descriptions and last update dates?
| limit | optional, integer, default 15, How many datasets. |
|---|---|
| offset | optional, integer, default 0, Skip this many (paging). |
Example: Which datasets does the ONS publish through its API?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"ons","operation":"ons_dataset_list","params":{"limit":5}}}Over HTTP
curl '/v1/connectors/ons/ons_dataset_list?limit=5'ONS dataset record
Answers: what are the title, description, publisher, release frequency and latest version of one ONS dataset?
| id | required, string, ONS dataset id, from ons_dataset_list. |
|---|
Example: What is the ONS quarterly well-being dataset?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"ons","operation":"ons_dataset","params":{"id":"wellbeing-quarterly"}}}Over HTTP
curl '/v1/connectors/ons/ons_dataset?id=wellbeing-quarterly'Source notice
Source: Office for National Statistics API. Contains information licensed under the Open Government Licence v3.0. Terms: "You are free to: copy, publish, distribute and transmit the Information; adapt the Information; exploit the Information commercially and non-commercially" under the Open Government Licence v3.0, which asks for attribution. Values are trimmed and reordered here; the publisher does not endorse this presentation.