/v1/datasets
List the ONS dataset catalogue
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/uk-stats-api/v1/datasets" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/uk-stats-api/v1/datasets", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/uk-stats-api/v1/datasets");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/uk-stats-api/v1/datasets",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"count": 50,
"source": "UK Office for National Statistics",
"datasets": [
{
"id": "wellbeing-quarterly",
"title": "Quarterly personal well-being estimates",
"description": "Seasonally and non seasonally-adjusted quarterly estimates of life satisfaction, feeling that the things done in life are worthwhile, happiness and anxiety in the UK."
},
{
"id": "wellbeing-local-authority",
"title": "Personal well-being estimates by local authority",
"description": "Estimates of life satisfaction, feeling that the things done in life are worthwhile, happiness and anxiety at the UK, country, regional, county, local and unitary authority level."
},
{
"id": "weekly-deaths-region",
"title": "Deaths registered weekly in England and Wales by region",
"description": "Provisional counts of the number of deaths registered in England and Wales, by region, in the latest weeks for which data are available."
},
{
"id": "weekly-deaths-local-authority",
"title": "Death registrations and occurrences by local authority and place of death",
"description": "Provisional counts of the number of deaths registered in England and Wales, including deaths involving the coronavirus (COVID-19), by local authority, health board and place of death in the latest wee"
},
{
"id": "weekly-deaths-health-board",
"title": "Death registrations and occurrences by health board and place of death",
"description": "Provisional counts of the number of deaths registered in Wales, by health board and place of death, in the latest weeks for which data are available."
},
{
"id": "weekly-deaths-age-sex",
"title": "Deaths registered weekly in England and Wales by age and sex",
"description": "Provisional counts of the number of deaths registered in England and Wales, by age and sex, in the latest weeks for which data are available."
},
{
"id": "uk-spending-on-cards",
"title": "UK spending on credit and debit cards",
"description": "These data series are experimental faster indicators for monitoring UK spending using debit and credit cards."
},
{
"id": "uk-business-by-enterprises-and-local-units",
"title": "UK Business: Activity, Size and Location",
"description": "The data contained in these tables are numbers of enterprises and local units produced from a snapshot of the Inter-Departmental Business Register (IDBR) taken on 12 March 2021. This dataset contains "
},
{
"id": "t
…