Skip to content
GET /v1/affinity

Pump affinity laws

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/pump-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/pump-api/v1/affinity" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/pump-api/v1/affinity", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/pump-api/v1/affinity");
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/affinity",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "note": "Affinity laws: Q ∝ N, H ∝ N², P ∝ N³ (same for impeller diameter trims).",
        "basis": "speed",
        "ratio": 1.2,
        "flow_2": 120,
        "head_2": 28.8,
        "factors": {
            "flow": 1.2,
            "head": 1.44,
            "power": 1.728
        },
        "power_2": 17.28
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:06.918Z",
        "request_id": "0a56009c-3ffa-4c4a-8fc4-4fffbda313b7"
    },
    "status": "ok",
    "message": "Pump affinity laws",
    "success": true
}