Marine
marineGet marine/ocean conditions forecast for a coastal location: significant wave height, swell height, water temperature, and wind. Up to 7 days, sampled every 6 hours. Example: marine({ q: "33.7,-118.4", days: 2 }).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Location — city name (e.g. "London"), "lat,lon" (e.g. "48.8567,2.3508"), US/UK/Canada zip/postcode, IATA airport code (e.g. "DXB"), or "auto:ip". NOTE on IATA codes: WeatherAPI resolves them to that airport's CITY, not the airport's own weather station — for the actual airport-station reading (can differ by several degrees) use the aviation-weather pack's metar tool with the airport's ICAO code instead. | |
| days | No | Number of marine forecast days (default 1, max 7). | |
| _apiKey | No | Optional — your own WeatherAPI.com API key for higher limits; omit to use the shared Pipeworx key. |