# Marine Forecast

Sea state for any coordinate on earth — significant wave height, direction, and period, beside BMKG's Indonesian waters.

- Method: `GET`
- Path: `/v1/marine/global`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `latitude` | number | required | Decimal degrees — a point at sea. |
| `longitude` | number | required | Decimal degrees. |
| `days` | integer | optional | Forecast days, 1-16. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/marine/global \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "latitude": 54.5,
    "longitude": 3.5,
    "daily": [
      { "date": "2026-08-21", "wave_height_max_m": 1.4, "wave_direction_dominant_deg": 310, "wave_period_max_s": 5.2 }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-22T04:05:00.000Z",
    "age_seconds": 42,
    "next_update_at": "2026-08-22T04:20:00.000Z"
  }
}
```