# 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](https://developer.ons.gov.uk/)
- Licence and terms: [Open Government Licence v3.0](https://www.ons.gov.uk/help/termsandconditions)
- Coverage: United Kingdom
- Answers are shared and cached for 21600 seconds.

## Questions you can ask

- Which datasets does the ONS publish through its API? (operation `ons_dataset_list`)
- What is the ONS quarterly well-being dataset? (operation `ons_dataset`)

## 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.

## Missing something?

Tell us what data, endpoint or feature you wish we had. It is free and needs no signup: call the MCP tool request_capability, or POST a short description to https://agentnative.dennery.ai/v1/capabilities/request.
