Vai al contenuto
GET /v1/meta

Spec

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/sonar-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

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