/v1/classify
Classify hardness
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/hardness-api/v1/classify" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hardness-api/v1/classify", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hardness-api/v1/classify");
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/classify",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "USGS/WHO hardness classification by ppm as CaCO₃.",
"input": {
"from": "ppm",
"value": 150,
"ppm_caco3": 150
},
"scale": [
{
"ppm": "0–60",
"label": "soft"
},
{
"ppm": "61–120",
"label": "moderately hard"
},
{
"ppm": "121–180",
"label": "hard"
},
{
"ppm": "> 180",
"label": "very hard"
}
],
"classification": "hard"
},
"meta": {
"timestamp": "2026-06-04T01:59:14.738Z",
"request_id": "082d0218-8346-4048-a28c-0257b8a59ead"
},
"status": "ok",
"message": "Hardness classification",
"success": true
}