Zum Inhalt springen
GET /v1/data

A series time-series for a country

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/sdg-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/sdg-api/v1/data" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sdg-api/v1/data", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sdg-api/v1/data");
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/sdg-api/v1/data",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "area": "276",
        "data": [
            {
                "area": "Germany",
                "unit": "PER_100000_LIVE_BIRTHS",
                "year": 2023,
                "value": "3.62022",
                "source": "MMEIG estimates available at https://www.who.int/publications/i/item/9789240108462",
                "area_code": "276",
                "dimensions": {
                    "Sex": "FEMALE",
                    "Reporting Type": "G"
                },
                "value_type": "Float"
            },
            {
                "area": "Germany",
                "unit": "PER_100000_LIVE_BIRTHS",
                "year": 2022,
                "value": "4.03073",
                "source": "MMEIG estimates available at https://www.who.int/publications/i/item/9789240108462",
                "area_code": "276",
                "dimensions": {
                    "Sex": "FEMALE",
                    "Reporting Type": "G"
                },
                "value_type": "Float"
            },
            {
                "area": "Germany",
                "unit": "PER_100000_LIVE_BIRTHS",
                "year": 2021,
                "value": "4.45641",
                "source": "MMEIG estimates available at https://www.who.int/publications/i/item/9789240108462",
                "area_code": "276",
                "dimensions": {
                    "Sex": "FEMALE",
                    "Reporting Type": "G"
                },
                "value_type": "Float"
            },
            {
                "area": "Germany",
                "unit": "PER_100000_LIVE_BIRTHS",
                "year": 2020,
                "value": "4.23313",
                "source": "MMEIG estimates available at https://www.who.int/publications/i/item/9789240108462",
                "area_code": "276",
                "dimensions": {
                    "Sex": "FEMALE",
                    "Reporting Type": "G"
                },
                "value_type": "Float"
            },
            {
                "area": "Germany",
                "unit": "PER_100000_LIVE_BIRTHS",
                "year": 2019,
                "value": "3.96585",
                "source": "MMEIG estimates available at https://www.who.int/publications/i/item/9789240108462",
                "area_code": "276",
                "dimensions": {
                    "Sex": "FEMALE",
                    "Reporting Type": "G"
                },
                "value_type": "Float"
            },
            {
                "area": "Germany",
                "unit": "PER_100000_LIVE_BIRTHS",
                "year": 2018,
                "value": "4.20703",
                "source": "MMEIG estimates available at https://www.who.int/publications/i/item/9789240108462",
                "area_code": "276",
                "dimensions": {
                    "Sex": "FEMALE",
                    "Reporting Type": "G"
                },
                "val
…