Vai al contenuto
GET /v1/codes

All Köppen-Geiger codes

Provalo dal vivo

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

Intestazioni personalizzate (facoltative)
api.oanor.com/climate-api

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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