Docs/APIs/Marine Weather

Marine Weather

Get marine weather data

OperationalCredits 10 per callp50 923msWeatherStar

Overview

Marine Weather works by retrieving the marine weather data from various reliable weather sources and providing it in a structured format. You can expect accurate and up-to-date information.

Live Test Marine Weather API →

Endpoint

One host, one path per API. The block below shows this call in four languages; every one of them is the same HTTP request. Making requests covers the timeouts, retries and parameter rules that apply to all of them. The SDKs wrap the same call in a typed client.

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

Replace your_api_key_here with the key from your dashboard. When the inputs arrive as a list rather than one at a time, batch requests run up to 200 of them through this same API in a single call.

Authentication

Send your key in the x-api-key header. That is the only auth step — there is no token exchange and no per-endpoint scope to configure. Authentication covers creating, rotating and revoking keys.

401 is the only auth verdict

A 401 means the key is missing, invalid or expired. A 403 means the key is valid but not permitted here — blocked by a key restriction or an IP allow-list. Running out of credits is a 429.

Parameters

Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them.

ParameterTypeDescription
latRequirednumberThe latitude coordinate of the location
range -90–90
lonRequirednumberThe longitude coordinate of the location
range -180–180

Response

Every API returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape. Response format covers the envelope, the other output formats and how premium fields are withheld.

Sample response
{
  "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
    }
  }
}

Response fields

Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.

FieldTypeExampleDescription
locationobject{...}
latnumber29.48003Latitude coordinate of the marine weather location
lonnumber-37.62424Longitude coordinate of the marine weather location
weatherobject{...}
datestring"2026-09-17"Forecast date in YYYY-MM-DD format
avghumiditynumber86Average humidity percentage for the day
conditionstring"Moderate or heavy rain shower"Weather condition summary for the day
uvnumber5UV index for the day
sunrisestring"05:53 AM"Local sunrise time
sunsetstring"06:08 PM"Local sunset time
moonrisestring"12:04 PM"Local moonrise time
moonsetstring"10:42 PM"Local moonset time
maxtempcnumber25.9Maximum temperature in Celsius for the location
maxtempfnumber78.6Maximum temperature in Fahrenheit for the location
mintempcnumber21.3Minimum temperature in Celsius for the location
mintempfnumber70.3Minimum temperature in Fahrenheit for the location
avgtempcnumber24.9Average temperature in Celsius for the location
avgtempfnumber76.8Average temperature in Fahrenheit for the location
maxwindmphnumber15.4Maximum wind speed in miles per hour
maxwindkphnumber24.7Maximum wind speed in kilometers per hour
totalprecipmmnumber14.89Total precipitation amount in millimeters
totalprecipinnumber0.59Total precipitation amount in inches
totalsnowcmnumber0Total snow depth in centimeters
avgviskmPremiumnumber7.4Average visibility distance in kilometers
avgvismilesPremiumnumber4Average visibility distance in miles
moonphasePremiumstring"First Quarter"Current moon phase description for the location
moonilluminationPremiumnumber42Moon illumination percentage from zero to one hundred

Errors

Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change. Error handling covers the full status list and which of them are worth retrying.

StatusMeaningWhat to do
400Input was rejectedRead error; it names the parameter.
401Key missing or invalidCheck the header name and the key value.
403Key valid, but not permittedA key restriction or IP allow-list; see key scoping.
429Rate limited, or out of creditsRead error to tell them apart; see rate limits.

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.

Other ways to use Marine Weather

Set up Marine Weather on APIVerve, or reach the same source a different way. Your APIVerve account and credits work on all of them — one key, one balance.

Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKit →Reference →
Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.VerveSheets →Reference →
Ground an agent on itA cited, machine-checkable fact your model can't produce on its own.VerveContext →Reference →

More in Weather:

Was this page helpful?