Naar de inhoud
GET /v1/head

Pressure ↔ head

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/pump-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}