Zum Inhalt springen
GET /v1/head

Pressure ↔ head

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/pump-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}