/v1/water-usage
Water used over a run
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/pressurewasher-api/v1/water-usage" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/pressurewasher-api/v1/water-usage", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/pressurewasher-api/v1/water-usage");
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/pressurewasher-api/v1/water-usage",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Water used = flow × run time. A pressure washer actually uses far LESS water than a garden hose for the same cleaning (a hose runs ~8–12 GPM), because the high pressure does the work — but it is continuous, so a long job still adds up. Pass a price per gallon to estimate the water cost.",
"inputs": {
"gpm": 2.5,
"minutes": 30
},
"water_cost": 0.38,
"liters_used": 283.9,
"gallons_used": 75
},
"meta": {
"timestamp": "2026-06-06T23:53:57.060Z",
"request_id": "b6e71b58-0a71-43c9-a46e-e466b3351687"
},
"status": "ok",
"message": "Water usage",
"success": true
}