Vai al contenuto
GET /v1/marine

Marine / wave forecast

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "days": [
            {
                "date": "2026-05-29",
                "wave_height_max_m": null,
                "wave_period_max_s": null,
                "wind_wave_height_max_m": null,
                "swell_wave_height_max_m": null,
                "wave_direction_dominant_deg": null
            },
            {
                "date": "2026-05-30",
                "wave_height_max_m": null,
                "wave_period_max_s": null,
                "wind_wave_height_max_m": null,
                "swell_wave_height_max_m": null,
                "wave_direction_dominant_deg": null
            },
            {
                "date": "2026-05-31",
                "wave_height_max_m": null,
                "wave_period_max_s": null,
                "wind_wave_height_max_m": null,
                "swell_wave_height_max_m": null,
                "wave_direction_dominant_deg": null
            }
        ],
        "units": {
            "daily": {
                "time": "iso8601",
                "wave_height_max": "m",
                "wave_period_max": "s",
                "wind_wave_height_max": "m",
                "swell_wave_height_max": "m",
                "wave_direction_dominant": "°"
            },
            "current": {
                "time": "iso8601",
                "interval": "seconds",
                "wave_height": "m",
                "wave_period": "s",
                "wave_direction": "°",
                "wind_wave_height": "m",
                "swell_wave_height": "m"
            }
        },
        "current": {
            "time": "2026-05-29T20:15",
            "interval": 900,
            "wave_height": null,
            "wave_period": null,
            "wave_direction": null,
            "wind_wave_height": null,
            "swell_wave_height": null
        },
        "location": {
            "name": "Berlin",
            "region": "State of Berlin",
            "country": "Germany",
            "latitude": 52.52437,
            "timezone": "Europe/Berlin",
            "longitude": 13.41053,
            "country_code": "DE"
        }
    },
    "meta": {
        "timestamp": "2026-05-29T18:17:31.063Z",
        "request_id": "6a6ee3dd-e91c-44c1-b358-690c5a7f6b40"
    },
    "status": "ok",
    "message": "Marine forecast retrieved successfully",
    "success": true
}