Vai al contenuto
GET /v1/datasets

List the ONS dataset catalogue

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/uk-stats-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
…