Aller au contenu
GET /v1/ballast

Ballast ratio

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/sailing-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "band": "high (stiff / offshore)",
        "note": "Ballast ratio = ballast ÷ displacement × 100, a rough proxy for stiffness (sail-carrying power). Most cruisers sit near 35–45 %; it ignores keel depth and hull form, which also drive stability.",
        "inputs": {
            "ballast_lb": 4000,
            "displacement_lb": 10000
        },
        "ballast_ratio_percent": 40
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:04.523Z",
        "request_id": "3700ea0a-c5af-4f6f-937c-df03f776d7fa"
    },
    "status": "ok",
    "message": "Ballast ratio",
    "success": true
}