Aller au contenu
GET /v1/meta

Spec

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/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sonar-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sonar-api/v1/meta");
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/meta",
    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": {
        "notes": "Metric (°C, ppt, m, kHz, dB, m/s, s). Mackenzie nine-term sound speed; Thorp absorption; range = c·t/2. For the speed of sound in air / Mach use a Mach-number API; for decibels a sound-level API.",
        "service": "sonar-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/absorption": "Sound absorption (dB/km) vs frequency, with optional path loss.",
            "GET /v1/echo-range": "Range or depth from an echo's two-way travel time.",
            "GET /v1/sound-speed": "Speed of sound in seawater from temperature, salinity and depth."
        },
        "description": "Underwater-sound / sonar maths: speed of sound in seawater (Mackenzie), Thorp absorption vs frequency, and echo range from two-way travel time."
    },
    "meta": {
        "timestamp": "2026-06-06T23:53:52.270Z",
        "request_id": "06fb03c9-e7e5-4b4f-a320-7121c04ed68d"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}