Skip to content
GET /v1/lsi

Langelier Saturation Index

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/poolchem-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "lsi": 0.177,
        "note": "LSI = pH + TF + CF + AF − 12.1. Between −0.3 and +0.3 is balanced; below corrodes plaster and metal, above scales. TF from temperature, CF = log10(Ca)−0.4, AF = log10(carbonate alkalinity).",
        "inputs": {
            "ph": 7.5,
            "temperature": 29,
            "cyanuric_acid": 0,
            "calcium_hardness": 300,
            "total_alkalinity": 100
        },
        "balance": "balanced",
        "calcium_factor": 2.0771,
        "alkalinity_factor": 2,
        "temperature_factor": 0.7,
        "carbonate_alkalinity": 100
    },
    "meta": {
        "timestamp": "2026-06-05T21:48:45.534Z",
        "request_id": "e9a0d079-abbc-4ac9-8884-2defe4923d6f"
    },
    "status": "ok",
    "message": "Langelier index",
    "success": true
}