Zum Inhalt springen
GET /v1/buoyancy

Buoyancy & flotation

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/hydrostatic-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

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