ONS Datasets List
ons.datasets.listList and search UK Office for National Statistics datasets by keyword to retrieve IDs, titles, descriptions, update timestamps, release frequencies, and national statistic flags.
Instructions
List and search all 337+ datasets published by the UK Office for National Statistics (ONS) via the beta CMD API. Returns dataset IDs, titles, descriptions, last-updated timestamps, release frequencies, and national statistic flags. Use the keyword parameter to filter by topic (e.g. "gdp", "inflation", "population", "unemployment", "earnings"). Use dataset IDs with the other ons.* tools or the ONS Cantabular API. Source: ONS CMD API v1, Open Government Licence v3.0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of datasets to return (1–50, default 20). | |
| offset | No | Pagination offset — number of datasets to skip (default 0). | |
| keyword | No | Optional keyword to filter datasets by title, description, or tags (e.g. "gdp", "inflation", "population", "unemployment"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |