Skip to content
GET /v1/friction

Darcy friction factor

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/darcy-api

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

Get an API key

Code snippets

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

Example response

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

{
    "data": {
        "method": "Swamee-Jain (Colebrook-White)",
        "formula": "laminar f = 64/Re; turbulent f = 0.25/[log10(ε/3.7D + 5.74/Re^0.9)]².",
        "flow_regime": "turbulent",
        "friction_factor": 0.0201957,
        "reynolds_number": 100000,
        "roughness_source": "steel",
        "relative_roughness": 0.00045
    },
    "meta": {
        "timestamp": "2026-06-04T10:18:49.971Z",
        "request_id": "f75771a8-ac8e-4c3e-9177-f826ee7b1390"
    },
    "status": "ok",
    "message": "Darcy friction factor",
    "success": true
}