Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Open-Meteo Marine Forecast

Docs 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.

Prix
$0.0001USD / appel
Méthode
POST
Réponse
JSON
Paramètres
2 obligatoires · 11 facultatifs

Bac à sable

Entrée
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`.
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Open-Meteo$0.0001 par appelJSON
Open-Meteo$0.0001 par appelJSON
Open-Meteo$0.0001 par appelJSON
Open-Meteo$0.0001 par appelJSON
Open-Meteo$0.0001 par appelJSON
Open-Meteo$0.0001 par appelJSON

Questions

FAQ

Comment utiliser l’API Open-Meteo Marine Forecast ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/open-meteo/marine avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Open-Meteo Marine Forecast ?

$0.0001 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Open-Meteo Marine Forecast accepte-t-elle ?

Obligatoire : latitude (string) et longitude (string). Facultatif : cell_selection (l’un de land, sea, nearest), current (string), daily (string), end_date (string), forecast_days (integer) et hourly (string) et 5 de plus. Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Open-Meteo Marine Forecast ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Open-Meteo ?

Non. Open-Meteo Marine Forecast fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Open-Meteo séparément.