Naar de inhoud
GET /v1/cooling

Newton's law of cooling

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/cooling-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}