Naar de inhoud
GET /v1/density

Seawater density and σt

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "Seawater density from the UNESCO EOS-80 equation of state (at the surface). Around 1,025 kg/m³, it rises with salinity and falls with temperature — the two drivers of the ocean's density-driven circulation, where cold salty water sinks. Oceanographers quote σt = density − 1000. The salt adds roughly 0.8 kg/m³ per ppt; this surface form ignores the further increase with pressure at depth.",
        "inputs": {
            "temp_c": 25,
            "salinity_ppt": 35
        },
        "sigma_t": 23.343,
        "density_kg_m3": 1023.343,
        "specific_gravity": 1.0235,
        "pure_water_density_kg_m3": 997.048
    },
    "meta": {
        "timestamp": "2026-06-07T08:18:07.753Z",
        "request_id": "e1ab4ecd-7390-4932-9d29-a4d16b91791c"
    },
    "status": "ok",
    "message": "Seawater density",
    "success": true
}