/v1/meta
Spec
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/hardness-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hardness-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hardness-api/v1/meta");
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/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "All conversions via ppm (mg/L as CaCO₃). Classification follows USGS/WHO bands.",
"units": [
"ppm",
"gpg",
"dH",
"fH",
"clark",
"mmol"
],
"service": "hardness",
"endpoints": {
"/v1/convert": "Convert a hardness value between all common units, with classification.",
"/v1/classify": "Classify a hardness value (soft / moderately hard / hard / very hard).",
"/v1/softener": "Size a water softener: grains per day and the grain capacity needed between regenerations."
},
"description": "Water-hardness maths: unit conversion (ppm/gpg/°dH/°f/Clark/mmol), classification, and water-softener sizing."
},
"meta": {
"timestamp": "2026-06-04T01:59:14.992Z",
"request_id": "e0c19e48-f2dd-41bd-9ab2-95a28a1f00a8"
},
"status": "ok",
"message": "Meta",
"success": true
}