Naar de inhoud
GET /v1/marine

Marine / wave forecast

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/weather-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}