Μετάβαση στο περιεχόμενο
GET /v1/datasets

List the ONS dataset catalogue

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/uk-stats-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "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
…