Ir al contenido
GET /v1/buoyancy

Buoyancy & flotation

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/hydrostatic-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}