Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Open-Meteo Marine Forecast

Docs da API
https://api.sandbase.ai/v1/api/open-meteo/marine

Hourly and daily marine forecast by coordinates: wave height, direction and period, swell and ocean currents.

Preço
$0.0001USD / chamada
Método
POST
Resposta
JSON
Parâmetros
2 obrigatórios · 11 opcionais

Playground

Entrada
WGS84 latitude of the location. Multiple coordinates can be comma-separated.
WGS84 longitude of the location (negative for the Americas). Multiple coordinates can be comma-separated.
Grid-cell preference for the coordinate. Default `sea`.
Comma-separated list of current-condition variables to return. Same variable set as `hourly`.
Comma-separated list of daily aggregation variables to return. Requires `timezone`. Common values: `wave_height_max`, `wave_direction_dominant`, `wave_period_max`, `wind_wave_height_max`, `swell_wave_height_max`.
End of the interval, `yyyy-mm-dd` (ISO 8601).
Number of forecast days to return (0-8). Default 5.
Comma-separated list of hourly variables to return. Common values: `wave_height`, `wave_direction`, `wave_period`, `wind_wave_height`, `wind_wave_direction`, `wind_wave_period`, `swell_wave_height`, `swell_wave_direction`, `swell_wave_period`, `ocean_current_velocity`, `ocean_current_direction`, `se
Unit for wave heights. Default `metric`.
Number of past days to include (0-92). Default 0.
Start of the interval, `yyyy-mm-dd` (ISO 8601).
Time output format. Default `iso8601`.
IANA time zone name (e.g. `Europe/Berlin`) or `auto` to resolve from coordinates. Defaults to `GMT`.
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da API

Open-Meteo Marine Forecast API

Returns a marine forecast for a latitude and longitude. You choose the hourly, daily or current variables, such as wave height, wave period, swell and ocean current velocity. The request needs latitude and longitude.

Use cases

  • Show an hourly wave height chart for a harbor or sailing route.
  • Check daily maximum wave height and dominant wave direction before a ferry or boat trip.
  • Compare wind wave and swell wave height at a surf spot.
  • Add ocean current velocity and direction to a navigation or fishing planner.

Request

curl -X POST "https://api.sandbase.ai/v1/api/open-meteo/marine" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"latitude": "54.54", "longitude": "10.23", "hourly": "wave_height", "forecast_days": 1}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
latitudestringYesWGS84 latitude of the location. Multiple coordinates can be comma-separated.
longitudestringYesWGS84 longitude of the location (negative for the Americas). Multiple coordinates can be comma-separated.
cell_selectionstringNoGrid-cell preference for the coordinate. Default sea.
currentstringNoComma-separated list of current-condition variables to return. Same variable set as hourly.
dailystringNoComma-separated list of daily aggregation variables to return. Requires timezone. Common values: wave_height_max, wave_direction_dominant, wave_period_max, wind_wave_height_max, swell_wave_height_max.
end_datestringNoEnd of the interval, yyyy-mm-dd (ISO 8601).
forecast_daysintegerNoNumber of forecast days to return (0-8). Default 5.
hourlystringNoComma-separated list of hourly variables to return. Common values: wave_height, wave_direction, wave_period, wind_wave_height, wind_wave_direction, wind_wave_period, swell_wave_height, `swell_wave_direction
length_unitstringNoUnit for wave heights. Default metric.
past_daysintegerNoNumber of past days to include (0-92). Default 0.
start_datestringNoStart of the interval, yyyy-mm-dd (ISO 8601).
timeformatstringNoTime output format. Default iso8601.
timezonestringNoIANA time zone name (e.g. Europe/Berlin) or auto to resolve from coordinates. Defaults to GMT.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "elevation": 0.0,
  "generationtime_ms": 0.10061264038085938,
  "hourly": {
    "time": [
      "2026-11-03T00:00"
    ],
    "wave_height": [
      0.68
    ]
  },
  "hourly_units": {
    "time": "iso8601",
    "wave_height": "m"
  },
  "latitude": 54.541664,
  "longitude": 10.2083435,
  "timezone": "GMT",
  "timezone_abbreviation": "GMT",
  "utc_offset_seconds": 0
}

Response fields

FieldMeaning
hourly.timeList of hourly timestamps in ISO 8601 format, such as 2026-11-03T00:00. The time zone is the one in timezone.
hourly.wave_heightList of wave heights, one value for each entry in hourly.time. Other variables you request in hourly appear as extra lists with the same length.
hourly_units.wave_heightUnit for the wave height values. The example response shows m.
hourly_units.timeFormat of the time values. The example response shows iso8601.
latitude / longitudeCoordinates of the grid cell that the forecast uses. They can differ slightly from the coordinates you sent.
elevationElevation of the grid cell. The example response shows 0.0 for a sea cell.
timezone / timezone_abbreviationTime zone used for the timestamps. The default is GMT.
utc_offset_secondsOffset of the response time zone from UTC, in seconds.
generationtime_msTime taken to generate the response, in milliseconds.

Notes

  • Set daily together with timezone to get daily values such as wave_height_max. Use timezone set to auto to resolve the zone from the coordinates.
  • Use forecast_days (0-8) and past_days (0-92) to set the time range, or use start_date and end_date in yyyy-mm-dd format.
  • cell_selection defaults to sea, so the forecast uses the nearest sea grid cell. Set it to land or nearest to change this.
  • Set length_unit to imperial for wave heights in feet. Check hourly_units for the unit in each response. For land weather at the same point, call Open-Meteo Weather Forecast.

Pricing

$0.0001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
Open-Meteo$0.0001 por chamadaJSON
Open-Meteo$0.0001 por chamadaJSON
Open-Meteo$0.0001 por chamadaJSON
Open-Meteo$0.0001 por chamadaJSON
Open-Meteo$0.0001 por chamadaJSON
Open-Meteo$0.0001 por chamadaJSON

Perguntas

FAQ

Como eu uso a API Open-Meteo Marine Forecast?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/open-meteo/marine com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Open-Meteo Marine Forecast?

$0.0001 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API Open-Meteo Marine Forecast aceita?

Obrigatórios: latitude (string) e longitude (string). Opcionais: cell_selection (um de land, sea, nearest), current (string), daily (string), end_date (string), forecast_days (integer) e hourly (string) e mais 5. A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Open-Meteo Marine Forecast retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor Open-Meteo ou de uma chave de API?

Não. Open-Meteo Marine Forecast funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Open-Meteo separadamente.