# Marine Weather API

> Marine Weather fetches offshore weather conditions for any marine coordinates by latitude and longitude. Each response details significant wave height, swell, water temperature and gusts alongside high and low temperatures, maximum wind speeds, precipitation totals, humidity, UV index, and sunrise and sunset times.

**Endpoint:** `GET https://api.apiverve.com/v1/marineweather`  
**Category:** Weather  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/marineweather

## Overview

An ocean forecast API for any latitude and longitude at sea, returning daily marine conditions as JSON. Send a pair of coordinates and get back the day's sea state (significant wave height range, maximum swell height, average swell period, water temperature and maximum gusts), the day's high, low and average temperature in Celsius and Fahrenheit, the maximum wind speed in mph and km/h, total precipitation and snow, average humidity, a condition summary, the UV index, and sunrise, sunset, moonrise and moonset times.

It is built for sailing and boating apps, fishing and charter planners, offshore and coastal operations dashboards, and travel tools that need sea conditions by coordinates rather than by city name. One call gives a compact daily summary you can drop straight into a trip plan or a pre-departure checklist.

The Free plan returns the sea-state summary, the temperatures, maximum wind, precipitation, humidity, condition, UV index and sun and moon times. Paid plans add average visibility in kilometres and miles, the moon phase and the moon's illumination percentage, which matter for night passages and for anglers who plan around the lunar cycle, plus an hour-by-hour wave, swell, wind and water-temperature forecast for today and a seven-day outlook with daily sea-state summaries. Tide times are included where the provider has them.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/marineweather?lat=29.48003&lon=-37.62424" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `lat` | number | Yes | The latitude coordinate of the location. range -90-90 |
| `lon` | number | Yes | The longitude coordinate of the location. range -180-180 |

## Response fields

- `location` — object
  - `location.lat` — number · Latitude coordinate of the marine weather location
  - `location.lon` — number · Longitude coordinate of the marine weather location
- `weather` — object
  - `weather.date` — string · Forecast date in YYYY-MM-DD format
  - `weather.avghumidity` — number · Average humidity percentage for the day
  - `weather.condition` — string · Weather condition summary for the day
  - `weather.uv` — number · UV index for the day
  - `weather.sunrise` — string · Local sunrise time (hh:mm AM/PM) in location.timezone
  - `weather.sunset` — string · Local sunset time (hh:mm AM/PM) in location.timezone
  - `weather.moonrise` — string · Local moonrise time (hh:mm AM/PM) in location.timezone
  - `weather.moonset` — string · Local moonset time (hh:mm AM/PM) in location.timezone
  - `weather.maxtempc` — number · Maximum temperature in Celsius for the location
  - `weather.maxtempf` — number · Maximum temperature in Fahrenheit for the location
  - `weather.mintempc` — number · Minimum temperature in Celsius for the location
  - `weather.mintempf` — number · Minimum temperature in Fahrenheit for the location
  - `weather.avgtempc` — number · Average temperature in Celsius for the location
  - `weather.avgtempf` — number · Average temperature in Fahrenheit for the location
  - `weather.maxwindmph` — number · Maximum wind speed in miles per hour
  - `weather.maxwindkph` — number · Maximum wind speed in kilometers per hour
  - `weather.totalprecipmm` — number · Total precipitation amount in millimeters
  - `weather.totalprecipin` — number · Total precipitation amount in inches
  - `weather.totalsnowcm` — number · Total snow depth in centimeters
  - `weather.avgviskm` — number · Average visibility distance in kilometers · (premium)
  - `weather.avgvismiles` — number · Average visibility distance in miles · (premium)
  - `weather.moonphase` — string · Current moon phase description for the location · (premium)
  - `weather.moonillumination` — number · Moon illumination percentage from zero to one hundred · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "location": {
      "lat": 29.48003,
      "lon": -37.62424
    },
    "weather": {
      "date": "2026-09-17",
      "avghumidity": 86,
      "condition": "Moderate or heavy rain shower",
      "uv": 5,
      "sunrise": "05:53 AM",
      "sunset": "06:08 PM",
      "moonrise": "12:04 PM",
      "moonset": "10:42 PM",
      "maxtempc": 25.9,
      "maxtempf": 78.6,
      "mintempc": 21.3,
      "mintempf": 70.3,
      "avgtempc": 24.9,
      "avgtempf": 76.8,
      "maxwindmph": 15.4,
      "maxwindkph": 24.7,
      "totalprecipmm": 14.89,
      "totalprecipin": 0.59,
      "totalsnowcm": 0,
      "avgviskm": 7.4,
      "avgvismiles": 4,
      "moonphase": "First Quarter",
      "moonillumination": 42
    }
  }
}
```

## Use cases

- **Voyage Route Planning** — Commercial shipping dispatchers evaluate maximum wind speeds and precipitation totals along projected corridors to steer vessels away from rough open-sea conditions.
- **Offshore Fishing Charters** — To protect offshore anglers, booking platforms check marine weather conditions, humidity levels, and UV indices before confirming deep-sea reservations.
- **Regatta Safety Monitoring** — When organizing coastal sailing competitions, race committees monitor wind thresholds and precipitation to schedule offshore heats during safe operating windows.
- **Port Logistics Scheduling** — Cargo terminal coordinators track offshore forecast conditions and daylight hours to prepare docking tugs and crane crews for inbound container vessels.

## SDKs

- **npm** — `npm install @apiverve/marineweather` (https://www.npmjs.com/package/@apiverve/marineweather)
- **PyPI** — `pip install apiverve-marineweather` (https://pypi.org/project/apiverve-marineweather/)
- **NuGet** — `dotnet add package APIVerve.API.MarineWeather` (https://www.nuget.org/packages/APIVerve.API.MarineWeather)
- **Source** — https://github.com/apiverve/marineweather-api

## More

- Full reference: https://docs.apiverve.com/ref/marineweather
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
