/v1/float
Float-or-sink analysis
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/buoyancy-api/v1/float" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/buoyancy-api/v1/float", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/buoyancy-api/v1/float");
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/float",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"fluid": "water",
"state": "floats",
"formula": "floats when ρ_object < ρ_fluid; fraction submerged = ρ_object/ρ_fluid.",
"density_ratio": 0.6,
"percent_submerged": 60,
"fraction_submerged": 0.6,
"fluid_density_kg_m3": 1000,
"object_density_kg_m3": 600,
"object_density_source": "given",
"percent_above_surface": 40
},
"meta": {
"timestamp": "2026-06-04T10:18:48.325Z",
"request_id": "f8fe0d9c-accf-486b-a53f-ec1265fc8ace"
},
"status": "ok",
"message": "Float-or-sink analysis",
"success": true
}