Naar de inhoud
GET /v1/buoyancy

Buoyant force

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/buoyancy-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}