/v1/force
Force on a submerged wall
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten 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
}