Vai al contenuto
GET /v1/daily

Daily wave & swell forecast

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/marine-api/v1/daily" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/marine-api/v1/daily", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/marine-api/v1/daily");
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/marine-api/v1/daily",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

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

{
    "data": {
        "count": 5,
        "daily": [
            {
                "time": "2026-06-08",
                "wave_height_max": 1.72,
                "wave_period_max": 9.4,
                "wind_wave_height_max": 0.22,
                "swell_wave_height_max": 1.72,
                "swell_wave_period_max": 7.95,
                "wave_direction_dominant": 303,
                "swell_wave_direction_dominant": 303
            },
            {
                "time": "2026-06-09",
                "wave_height_max": 1.44,
                "wave_period_max": 8.95,
                "wind_wave_height_max": 0.32,
                "swell_wave_height_max": 1.42,
                "swell_wave_period_max": 7.65,
                "wave_direction_dominant": 307,
                "swell_wave_direction_dominant": 307
            },
            {
                "time": "2026-06-10",
                "wave_height_max": 1.66,
                "wave_period_max": 9.8,
                "wind_wave_height_max": 0.3,
                "swell_wave_height_max": 1.66,
                "swell_wave_period_max": 8.3,
                "wave_direction_dominant": 309,
                "swell_wave_direction_dominant": 309
            },
            {
                "time": "2026-06-11",
                "wave_height_max": 1.56,
                "wave_period_max": 9.3,
                "wind_wave_height_max": 0.4,
                "swell_wave_height_max": 1.56,
                "swell_wave_period_max": 7.8,
                "wave_direction_dominant": 312,
                "swell_wave_direction_dominant": 310
            },
            {
                "time": "2026-06-12",
                "wave_height_max": 1.2,
                "wave_period_max": 7.85,
                "wind_wave_height_max": 0.22,
                "swell_wave_height_max": 1.04,
                "swell_wave_period_max": 7.45,
                "wave_direction_dominant": 319,
                "swell_wave_direction_dominant": 313
            }
        ],
        "location": {
            "name": "Biarritz",
            "region": "New Aquitaine",
            "country": "France",
            "latitude": 43.48055,
            "longitude": -1.55684
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:20:12.058Z",
        "request_id": "f9cc9734-1b9f-4928-b464-69445c6c4712"
    },
    "status": "ok",
    "message": "Forecast retrieved successfully",
    "success": true
}