Skip to main content
GET
Open-Meteo Forecast

授权

Authorization
string
header
必填

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

查询参数

cell_selection
enum<string>
默认值:land

Grid-cell preference for the coordinate. Default land.

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

Comma-separated list of current-condition variables to return. Common values: temperature_2m, relative_humidity_2m, apparent_temperature, is_day, precipitation, weather_code, wind_speed_10m, wind_direction_10m.

示例:

"temperature_2m,weather_code"

daily
string

Comma-separated list of daily aggregation variables to return. Requires timezone. Common values: temperature_2m_max, temperature_2m_min, temperature_2m_mean, precipitation_sum, rain_sum, snowfall_sum, weather_code, sunrise, sunset, sunshine_duration, wind_speed_10m_max, uv_index_max.

示例:

"temperature_2m_max,temperature_2m_min,precipitation_sum"

elevation
string

Manual elevation (meters) for statistical downscaling. Defaults to a 90m DEM. Use nan to disable downscaling.

示例:

"38"

end_date
string<date>

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

示例:

"2024-01-07"

forecast_days
integer
默认值:7

Number of forecast days to return (0-16). Default 7.

示例:

7

forecast_hours
integer

Limit the forecast to a given number of hours from now.

hourly
string

Comma-separated list of hourly variables to return. Common values: temperature_2m, relative_humidity_2m, dew_point_2m, apparent_temperature, precipitation, rain, showers, snowfall, weather_code, pressure_msl, cloud_cover, wind_speed_10m, wind_direction_10m, wind_gusts_10m, shortwave_radiation, visibility.

示例:

"temperature_2m,precipitation,wind_speed_10m"

latitude
string
必填

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

示例:

"52.52"

longitude
string
必填

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

示例:

"13.41"

minutely_15
string

Comma-separated 15-minutely variables (Central Europe & North America high-resolution models only).

示例:

"temperature_2m,precipitation"

models
string

Comma-separated forecast models to use. Default auto selects the best model mix per location.

示例:

"auto"

past_days
integer
默认值:0

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

past_hours
integer

Include a given number of past hours.

precipitation_unit
enum<string>
默认值:mm

Precipitation unit. Default mm.

可用选项:
mm,
inch
start_date
string<date>

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

示例:

"2024-01-01"

temperature_unit
enum<string>
默认值:celsius

Temperature unit. Default celsius.

可用选项:
celsius,
fahrenheit
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"

wind_speed_unit
enum<string>
默认值:kmh

Wind speed unit. Default kmh.

可用选项:
kmh,
ms,
mph,
kn

响应

Requested weather forecast for the coordinate.

The response is of type object.