Aller au contenu
GET /v1/coefficient

Cooling constant ↔ properties

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/cooling-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/cooling-api/v1/coefficient" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cooling-api/v1/coefficient", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cooling-api/v1/coefficient");
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/cooling-api/v1/coefficient",
    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": {
        "mode": "k_from_properties",
        "area_m2": 0.5,
        "formula": "k = h·A/(m·c); τ = 1/k = m·c/(h·A).",
        "mass_kg": 2,
        "time_constant_s": 360,
        "cooling_constant": 0.0027777778,
        "specific_heat_j_kgk": 900,
        "heat_transfer_coefficient_w_m2k": 10
    },
    "meta": {
        "timestamp": "2026-06-04T10:18:45.352Z",
        "request_id": "437b054d-fe91-4151-a6bd-ab3efd39aafe"
    },
    "status": "ok",
    "message": "Cooling constant ↔ properties",
    "success": true
}