Skip to main content
GET
Open-Meteo Marine

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

查询参数

cell_selection
enum<string>
默认值:sea

Grid-cell preference for the coordinate. Default sea.

可用选项:
land,
sea,
nearest
current
string

Comma-separated list of current-condition variables to return. Same variable set as hourly.

示例:

"wave_height,wave_period"

daily
string

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.

示例:

"wave_height_max"

end_date
string<date>

End of the interval, yyyy-mm-dd (ISO 8601).

示例:

"2024-01-07"

forecast_days
integer
默认值:5

Number of forecast days to return (0-8). Default 5.

示例:

7

hourly
string

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, sea_surface_temperature.

示例:

"wave_height,wave_direction,wave_period"

latitude
string
必填

WGS84 latitude of the location. Multiple coordinates can be comma-separated.

示例:

"52.52"

length_unit
enum<string>
默认值:metric

Unit for wave heights. Default metric.

可用选项:
metric,
imperial
longitude
string
必填

WGS84 longitude of the location (negative for the Americas). Multiple coordinates can be comma-separated.

示例:

"13.41"

past_days
integer
默认值:0

Number of past days to include (0-92). Default 0.

start_date
string<date>

Start of the interval, yyyy-mm-dd (ISO 8601).

示例:

"2024-01-01"

timeformat
enum<string>
默认值:iso8601

Time output format. Default iso8601.

可用选项:
iso8601,
unixtime
timezone
string

IANA time zone name (e.g. Europe/Berlin) or auto to resolve from coordinates. Defaults to GMT.

示例:

"Europe/Berlin"

响应

Marine forecast for the coordinate.

The response is of type object.