/v1/righting-moment
Righting arm GZ and righting moment
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/shipstability-api/v1/righting-moment" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/shipstability-api/v1/righting-moment", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/shipstability-api/v1/righting-moment");
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/shipstability-api/v1/righting-moment",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "For small heel angles the righting arm GZ ≈ GM · sin(heel), and the righting moment that pushes the ship back upright = GZ × displacement. This linear relation holds up to roughly 7–10°; beyond that the true GZ curve bends away from it as the deck edge nears the water, so use a full cross-curve (KN) analysis for large angles. A bigger GM gives a steeper initial righting arm.",
"inputs": {
"gm_m": 1,
"heel_deg": 10,
"displacement_t": 5000
},
"righting_arm_gz_m": 0.1736,
"righting_moment_t_m": 868.2,
"righting_moment_kn_m": 8514.5
},
"meta": {
"timestamp": "2026-06-06T23:53:54.026Z",
"request_id": "4202dbb9-2713-4fb6-8d7f-cef349e613dc"
},
"status": "ok",
"message": "Righting moment",
"success": true
}