/v1/chlorine
Chlorine dose to target ppm
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/poolchem-api/v1/chlorine" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/poolchem-api/v1/chlorine", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/poolchem-api/v1/chlorine");
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/poolchem-api/v1/chlorine",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Dose (g) = Δppm × volume(L) / 1000 ÷ available-chlorine fraction. ppm is mg/L; for a liquid product grams ≈ millilitres (density ≈ 1).",
"inputs": {
"volume": 50000,
"product": "liquid",
"target_ppm": 3,
"current_ppm": 1,
"strength_percent": 12.5
},
"delta_ppm": 2,
"dose_grams": 800,
"available_chlorine_grams": 100,
"dose_milliliters_if_liquid": 800
},
"meta": {
"timestamp": "2026-06-05T21:48:45.458Z",
"request_id": "61309f29-3003-4b32-98de-0ba8bbc1011f"
},
"status": "ok",
"message": "Chlorine dose",
"success": true
}