Aller au contenu
GET /v1/heat-index

NWS heat index

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/apparenttemp-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/apparenttemp-api/v1/heat-index" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/apparenttemp-api/v1/heat-index", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/apparenttemp-api/v1/heat-index");
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/apparenttemp-api/v1/heat-index",
    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": {
        "note": "The heat index is how hot it feels when humidity is folded into the air temperature, from the US NWS Rothfusz regression. High humidity stops sweat evaporating, so the body cannot shed heat and the apparent temperature climbs well above the thermometer — at 90 °F and 70 % humidity it feels like about 106 °F. It is defined for shade and light wind; full sun can add up to ~15 °F.",
        "inputs": {
            "temp_f": 90,
            "humidity_pct": 70
        },
        "heat_index_c": 41.1,
        "heat_index_f": 105.9,
        "risk_category": "danger — heat exhaustion likely"
    },
    "meta": {
        "timestamp": "2026-06-06T23:53:54.325Z",
        "request_id": "856eef77-c6ab-46af-9945-b61497888751"
    },
    "status": "ok",
    "message": "Heat index",
    "success": true
}