跳转到主要内容
GET
Reference example

请求规范

  • 方法与路径: GET /apis/v1/openmeteo/marine
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/openmeteo/marine
  • cell_selection: query; 可选
  • current: query; 可选
  • daily: query; 可选
  • end_date: query; 可选
  • forecast_days: query; 可选
  • hourly: query; 可选
  • latitude: query; 必填
  • length_unit: query; 可选
  • longitude: query; 必填
  • past_days: query; 可选
  • start_date: query; 可选
  • timeformat: query; 可选
  • timezone: query; 可选
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

公开参考价格:每次成功请求 $0.0001 USD。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

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.