Aller au contenu
GET /v1/from-temp

Zone from minimum temperature

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/hardiness-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/hardiness-api/v1/from-temp" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hardiness-api/v1/from-temp", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hardiness-api/v1/from-temp");
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/hardiness-api/v1/from-temp",
    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": "7a",
        "zone": 7,
        "input": {
            "min_temp_c": -17.8,
            "min_temp_f": 0
        },
        "subzone": "a",
        "description": "Average annual extreme minimum 0°F to 5°F (-17.8°C to -15°C)",
        "example_regions": [
            "Washington, DC",
            "Atlanta (cool)",
            "Paris"
        ],
        "temperature_range_c": {
            "max": -15,
            "min": -17.8
        },
        "temperature_range_f": {
            "max": 5,
            "min": 0
        }
    },
    "meta": {
        "timestamp": "2026-05-30T22:48:28.168Z",
        "request_id": "c0cd0afc-d5f5-4d3a-98ec-41291a7909e6"
    },
    "status": "ok",
    "message": "Zone computed",
    "success": true
}