/v1/softener
Size a water softener
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/hardness-api/v1/softener" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hardness-api/v1/softener", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hardness-api/v1/softener");
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/hardness-api/v1/softener",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"note": "Grains/day = daily water (gal) × hardness (gpg). Required capacity covers the days between regenerations; size the softener above this.",
"input": {
"from": "gpg",
"people": 4,
"hardness": 10,
"regen_days": 7,
"hardness_gpg": 10,
"gallons_per_person": 80
},
"grains_per_day": 3200,
"daily_water_gallons": 320,
"required_grain_capacity": 22400
},
"meta": {
"timestamp": "2026-06-04T01:59:14.921Z",
"request_id": "4a021556-6d6c-4cee-922a-f2611d5eae1f"
},
"status": "ok",
"message": "Water softener sizing",
"success": true
}