Zum Inhalt springen
GET /v1/buoyancy

Buoyant force

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "fluid": "water",
        "formula": "Fb = ρ_fluid · g · V_displaced.",
        "gravity_ms2": 9.80665,
        "buoyant_force_n": 98.0665,
        "buoyant_force_kgf": 10,
        "displaced_volume_m3": 0.01,
        "fluid_density_kg_m3": 1000,
        "displaced_fluid_mass_kg": 10,
        "displaced_volume_litres": 10
    },
    "meta": {
        "timestamp": "2026-06-04T10:18:48.216Z",
        "request_id": "9da0b4e4-3025-4332-b91c-2c4befcb6ac4"
    },
    "status": "ok",
    "message": "Buoyant force",
    "success": true
}