/v1/buoyancy
Buoyancy & flotation
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/hydrostatic-api/v1/buoyancy" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hydrostatic-api/v1/buoyancy", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hydrostatic-api/v1/buoyancy");
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/buoyancy",
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": {
"note": "Buoyant force = ρ_fluid·g·V_displaced (Archimedes).",
"fluid": "water",
"floats": true,
"volume_m3": 0.01,
"buoyant_force": {
"N": 98.067,
"kN": 0.09807,
"kgf": 10
},
"object_weight_N": 49.033,
"displaced_mass_kg": 10,
"submerged_percent": 50,
"submerged_fraction": 0.5,
"fluid_density_kg_m3": 1000
},
"meta": {
"timestamp": "2026-06-04T01:59:04.529Z",
"request_id": "c5a661a2-f687-401f-b8f6-2eae872ed2fd"
},
"status": "ok",
"message": "Buoyancy & flotation",
"success": true
}