Marine and atmospheric weather for a location
Changed onOne weather picture for a location: marine conditions merged with general atmospheric conditions, covering current conditions plus 7-day daily and hourly forecasts.
Pass exactly one location group: coordinates (lat + lon), one vessel identifier (mmsi, imo, or uuid), or one port identifier (port_unlocode or port_uuid). A vessel identifier resolves dynamically to the ship's last known position.
Responses return plain numeric values. The unit of each field is given in that field's description.
Credit cost: 1 credit per request.
Request
- Base URLhttps://api.datalastic.com
- Auth
- API key in header x-api-key
- or API key in query parameter api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Latitude. Use with lon.
Longitude. Use with lat.
Vessel MMSI. Weather is returned for its last known position.
Vessel IMO. Weather is returned for its last known position.
Vessel UUID. Weather is returned for its last known position.
Port UN/LOCODE.
Port UUID.
Which sections to return. Repeat the parameter to combine modes, for example mode=current&mode=hourly.
Response
Weather for the resolved location.
Example response
{
"data": {
"location": {
"type": "Feature",
"geometry": {
"type": "Point"
}
},
"weather": {
"timezone": "GMT",
"timezone_abbreviation": "GMT",
"current": {
"time": "2026-07-24T10:45",
"interval": 900
}
}
},
"meta": {
"duration": 0.012,
"endpoint": "/api/v0/vessel",
"success": true,
"next": "00e32b7a-4067-d6b2-8d73-2bdda4fe72bb"
}
}Changes
- info
endpoint added
- info