/v1/cooling
Newton's law of cooling
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/cooling-api/v1/cooling" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cooling-api/v1/cooling", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cooling-api/v1/cooling");
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/cooling",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"mode": "temperature_at_time",
"time": 10,
"formula": "T(t) = T_env + (T0 − T_env)·e^(−k·t).",
"temperature": 62.457146,
"time_constant": 20,
"cooling_constant": 0.05,
"ambient_temperature": 20,
"initial_temperature": 90
},
"meta": {
"timestamp": "2026-06-04T10:18:45.540Z",
"request_id": "dc96c8e8-5c31-4ea3-b078-9e50a17c94a6"
},
"status": "ok",
"message": "Newton's law of cooling",
"success": true
}