Naar de inhoud
GET /v1/heat-time

Hours to heat by a temperature rise

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/poolheat-api/v1/heat-time" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/poolheat-api/v1/heat-time", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/poolheat-api/v1/heat-time");
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/poolheat-api/v1/heat-time",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "Energy to heat water = gallons × 8.34 lb/gal × the temperature rise in °F (that many BTU). Divide by the heater's BTU/hr output for the run-time. This is the ideal — real pools also lose heat from the surface as they warm, so allow extra, especially in wind or uncovered.",
        "hours": 4.17,
        "inputs": {
            "temp_rise_f": 10,
            "volume_gallons": 20000,
            "heater_btu_per_hr": 400000
        },
        "minutes": 250,
        "total_btu": 1668000
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:43.863Z",
        "request_id": "b490fb06-fb79-409a-a11b-dbc517a60f4a"
    },
    "status": "ok",
    "message": "Heat time",
    "success": true
}