Naar de inhoud
GET /v1/force

Force on a submerged wall

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "F = ρ·g·hc·A on a vertical surface; hc = centroid depth. Centre of pressure is below the centroid by I/(hc·A).",
        "fluid": "water",
        "width_m": 3,
        "top_depth_m": 0,
        "density_kg_m3": 1000,
        "bottom_depth_m": 2,
        "resultant_force": {
            "N": 58839.9,
            "kN": 58.8399,
            "kgf": 6000
        },
        "surface_area_m2": 6,
        "centroid_depth_m": 1,
        "center_of_pressure_depth_m": 1.3333
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:04.632Z",
        "request_id": "48ed1ee7-be54-49f9-9b95-b18970e96919"
    },
    "status": "ok",
    "message": "Hydrostatic force on a wall",
    "success": true
}