Naar de inhoud
GET /v1/area

Collector area for a demand

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "note": "Collector area = the daily heat needed (gallons × 8.34 × temperature rise) ÷ (irradiance × efficiency). Size for an average day, not the sunniest — a solar fraction of 60–80 % with a backup heater is usually the economic sweet spot, since chasing 100 % needs a huge array for the worst weeks.",
        "inputs": {
            "temp_rise_f": 70,
            "efficiency_pct": 50,
            "daily_hot_water_gallons": 60,
            "daily_irradiance_btu_sqft": 1800
        },
        "collector_area_sqft": 38.9,
        "daily_heat_needed_btu": 35028
    },
    "meta": {
        "timestamp": "2026-06-06T23:53:57.245Z",
        "request_id": "e9a4c167-2310-4970-9987-67a9a0e31c9b"
    },
    "status": "ok",
    "message": "Collector area",
    "success": true
}