Open-Meteo Offshore Marine Wave & Swell Forecast
Retrieve hourly ocean wave height, wave direction, and wave period forecasts for maritime routing, port logistics, and coastal coordinates.
curl -sG "https://api.agentapigate.ai/v1/weather/openmeteo/marine_forecast" \ --data-urlencode "latitude=36.8" \ --data-urlencode "longitude=-122" \ --data-urlencode "hourly=wave_height,wave_direction,wave_period" \ --data-urlencode "forecast_days=3" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Open-Meteo Offshore Marine Wave & Swell Forecast (`weather.openmeteo.marine_forecast`) **latitude**: 36.791664 · **longitude**: -122.04166 ## hourly_units - **time**: iso8601 - **wave_height**: m - **wave_direction**: ° - **wave_period**: s ## hourly - **time**: 2026-12-05T00:00, 2026-12-05T01:00, 2026-12-05T02:00, 2026-12-05T03:00, 2026-12-05T04:00, 2026-12-05T05:00 - **wave_height**: 4.08, 4.08, 4.06, 4.06, 3.98, 3.88 - **wave_direction**: 294, 294, 293, 293, 293, 294 - **wave_period**: 12.05, 12.05, 12.05, 12.1, 12.15, 12.25
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:weather.openmeteo.marine_forecast · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| latitude | number | required | 36.8 | Ocean/coastal WGS84 latitude (e.g. 36.8) |
| longitude | number | required | -122 | Ocean/coastal WGS84 longitude (e.g. -122.0) |
| hourly | string | optional | wave_height,wave_direction,wave_period | Comma-separated marine hourly variables (default "wave_height,wave_direction,wave_period") |
| forecast_days | number | optional | 3 | Forecast horizon in days (1-8, default 3) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0020 / call | $0/mo · Balance never expires |
| Remote MCP Tool | weather_openmeteo_marine_forecast | OAuth 2.1 Hub & /mcp/local |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 3166 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 1650t → 142t (-91%) | Partner credit: eligible |
| Data Attribution | Source: Open-Meteo ERA5 Historical, Marine & Elevation API (open-meteo.com — CC BY 4.0) | |
More weather.openmeteo Sibling Endpoints
Frequently Asked Questions
How do I call Open-Meteo Offshore Marine Wave & Swell Forecast (weather.openmeteo.marine_forecast) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/weather/openmeteo/marine_forecast with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool weather_openmeteo_marine_forecast on https://mcp.agentapigate.ai/mcp.
What does weather.openmeteo.marine_forecast cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.002 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on weather.openmeteo.marine_forecast?
Passing ?format=md transforms the response into normalized Markdown (~142 tokens vs ~1650 raw tokens, saving 91% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only local endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["local"], optional allowed_endpoints: ["weather.openmeteo.marine_forecast"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.