Forecast Data
Overview
Sofar Ocean continually runs forecasts for several marine weather data models and their associated variables. Access to forecasted marine weather conditions at specific geographic locations is made available via the forecast endpoint.
This endpoint allows you to retrieve Sofar Ocean's latest full forecast values for a given pair of latitude and longitude coordinates. The data is organized by model and variable, and it is possible to request forecast data for multiple variables within a single request.
The values associated with each variable will represent the latest 10-day forecast run by Sofar Ocean. In most cases, the returned values will include data values from before the time of the request.
Endpoint
Retrieve forecast data at a geographic location
GET
https://api.sofarocean.com/marine-weather/v1/models/:model_id/forecast/point
Returns forecast data from the specified model and variables at a single latitude and longitude point.
Path Parameters
model_id*
string
Query Parameters
token*
string
variableIDs*
array
A comma separated list of variable ID strings which you want to retrieve as part of the forecast data. (Limit 3 IDs.)
longitude*
number
The longitude of the requested forecast point. Can be either positive or negative.
latitude*
number
The latitude of the requested forecast point. Must be between -90 and 90 degrees.
Examples
Valid examples and their corresponding responses are available on the Forecast Data examples page.
Last updated