Zum Inhalt springen
GET /v1/annual-cost

Annual loss and fuel cost

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/pipeinsulation-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Annual loss = loss per foot × length × operating hours; fuel = that ÷ 100,000 BTU/therm ÷ the boiler efficiency, times the gas price. A bare or poorly-lagged hot line can leak hundreds of dollars a year, so insulation usually pays back fast — compare against the cost of the lagging to find the payback.",
        "inputs": {
            "length_ft": 100,
            "hours_per_year": 8760,
            "price_per_therm": 1.2,
            "heat_loss_btu_hr_ft": 42.9,
            "boiler_efficiency_pct": 80
        },
        "annual_cost": 563.71,
        "annual_therms": 469.8,
        "annual_loss_btu": 37580400
    },
    "meta": {
        "timestamp": "2026-06-06T23:53:57.628Z",
        "request_id": "7367d67e-b204-4a96-9dc7-7c0d3f046fa3"
    },
    "status": "ok",
    "message": "Annual cost",
    "success": true
}