/v1/head
Pressure ↔ head
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/pump-api/v1/head" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/pump-api/v1/head", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/pump-api/v1/head");
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/pump-api/v1/head",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"head": {
"m": 20.3943,
"ft": 66.911
},
"mode": "pressure_to_head",
"note": "H = P / (ρ·g).",
"fluid": "water",
"pressure_pa": 200000,
"pressure_bar": 2,
"density_kg_m3": 1000
},
"meta": {
"timestamp": "2026-06-04T01:59:06.980Z",
"request_id": "ac66fe2d-ca74-4987-89b8-928b994837e1"
},
"status": "ok",
"message": "Pressure <-> head conversion",
"success": true
}