/v1/classify
Köppen-Geiger code from monthly data
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/climate-api/v1/classify" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/climate-api/v1/classify", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/climate-api/v1/classify");
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/classify",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"code": "Cfb",
"group": "Temperate",
"hemisphere": "north",
"statistics": {
"coldest_month_c": 5,
"driest_month_mm": 41,
"warmest_month_c": 18,
"annual_precip_mm": 603,
"months_above_10c": 6,
"annual_mean_temp_c": 10.8,
"summer_precip_share": 0.47,
"aridity_threshold_mm": 36
},
"description": "No dry season, warm summer.",
"climate_name": "Oceanic"
},
"meta": {
"timestamp": "2026-05-30T22:48:31.401Z",
"request_id": "a4d65d9e-71d0-46b7-9864-eec1ba7a1f8e"
},
"status": "ok",
"message": "Climate classified",
"success": true
}