Ir al contenido
GET /v1/density

Seawater density and σt

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/seawater-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

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