Naar de inhoud
GET /v1/codes

All Köppen-Geiger codes

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/climate-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "codes": [
            {
                "code": "ET",
                "name": "Tundra",
                "group": "Polar",
                "examples": [
                    "Nuuk",
                    "Barrow",
                    "Mount Washington"
                ],
                "description": "Warmest month 0–10 °C."
            },
            {
                "code": "EF",
                "name": "Ice cap",
                "group": "Polar",
                "examples": [
                    "Vostok Station",
                    "Greenland interior"
                ],
                "description": "All months below 0 °C."
            }
        ],
        "count": 2
    },
    "meta": {
        "timestamp": "2026-05-30T22:48:31.542Z",
        "request_id": "0354bd8e-1ac0-409b-9ec9-0a76ebe7c0fe"
    },
    "status": "ok",
    "message": "Codes retrieved",
    "success": true
}