/v1/density
Seawater density and σt
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}