Aller au contenu
GET /v1/sound-speed

Speed of sound in seawater

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/sonar-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/sonar-api/v1/sound-speed" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sonar-api/v1/sound-speed", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sonar-api/v1/sound-speed");
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/sonar-api/v1/sound-speed",
    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": "The speed of sound in seawater from the Mackenzie equation — about 1,500 m/s, far faster than in air, and it rises with temperature, salinity and depth (pressure). Because those vary with depth the speed forms a profile that bends sound rays, creating the SOFAR channel that carries whale song and submarine signals for thousands of kilometres. Valid roughly 2–30 °C, 25–40 ppt and to 8,000 m.",
        "inputs": {
            "temp_c": 25,
            "depth_m": 1000,
            "salinity_ppt": 35
        },
        "sound_speed_m_s": 1550.74
    },
    "meta": {
        "timestamp": "2026-06-06T23:53:52.176Z",
        "request_id": "083e2663-493c-47a0-a067-b929433bc7ff"
    },
    "status": "ok",
    "message": "Sound speed",
    "success": true
}