# /openmeteo/forecast

`POST /api/openmeteo/forecast`

Price: 1 credit

Get weather forecast and current conditions for a geographic point

## How to use it

Get weather data for a point by latitude and longitude. Request any combination of 'current' conditions, 'hourly', '15-minutely', and 'daily' variables by listing the variable names you want (at least one list is required). Covers temperature, humidity, precipitation, wind, cloud cover, pressure, radiation, soil, and pressure-level fields. Supports up to 16 forecast days and 92 past days, an explicit start_date/end_date interval, unit selection, timezone, and a choice of weather models. Returns the point metadata (coordinates, elevation, timezone) plus the requested blocks, where hourly/daily are lists of per-timestamp records and each block carries its units.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `latitude` (number, required) — Latitude in WGS84 coordinates (examples: 52.52; min: -90; max: 90)
- `longitude` (number, required) — Longitude in WGS84 coordinates (examples: 13.41; min: -180; max: 180)
- `timezone` (string) — IANA timezone name for local time output, or 'auto' to infer it from the coordinates (default: "GMT"; examples: "auto", "Europe/Berlin", "America/New_York", "GMT")
- `timeformat` (string) — Representation of time values in the response (default: "iso8601"; one of: "iso8601", "unixtime")
- `hourly` (array, nullable) — Hourly weather variables to return (one of: "temperature_2m", "relative_humidity_2m", "dew_point_2m", "apparent_temperature", "precipitation_probability", "precipitation", "rain", "showers", "snowfall", "snow_depth", "weather_code", "pressure_msl", "surface_pressure", "cloud_cover", "cloud_cover_low", "cloud_cover_mid", "cloud_cover_high", "visibility", "evapotranspiration", "et0_fao_evapotranspiration", "vapour_pressure_deficit", "wind_speed_10m", "wind_speed_80m", "wind_speed_120m", "wind_speed_180m", "wind_direction_10m", "wind_direction_80m", "wind_direction_120m", "wind_direction_180m", "wind_gusts_10m", "temperature_80m", "temperature_120m", "temperature_180m", "soil_temperature_0cm", "soil_temperature_6cm", "soil_temperature_18cm", "soil_temperature_54cm", "soil_moisture_0_to_1cm", "soil_moisture_1_to_3cm", "soil_moisture_3_to_9cm", "soil_moisture_9_to_27cm", "soil_moisture_27_to_81cm", "is_day", "uv_index", "uv_index_clear_sky", "cape", "freezing_level_height", "shortwave_radiation", "direct_radiation", "diffuse_radiation", "direct_normal_irradiance", "global_tilted_irradiance", "terrestrial_radiation", "temperature_1000hPa", "temperature_975hPa", "temperature_950hPa", "temperature_925hPa", "temperature_900hPa", "temperature_850hPa", "temperature_800hPa", "temperature_700hPa", "temperature_600hPa", "temperature_500hPa", "temperature_400hPa", "temperature_300hPa", "temperature_250hPa", "temperature_200hPa", "temperature_150hPa", "temperature_100hPa", "temperature_70hPa", "temperature_50hPa", "temperature_30hPa", "relative_humidity_1000hPa", "relative_humidity_975hPa", "relative_humidity_950hPa", "relative_humidity_925hPa", "relative_humidity_900hPa", "relative_humidity_850hPa", "relative_humidity_800hPa", "relative_humidity_700hPa", "relative_humidity_600hPa", "relative_humidity_500hPa", "relative_humidity_400hPa", "relative_humidity_300hPa", "relative_humidity_250hPa", "relative_humidity_200hPa", "relative_humidity_150hPa", "relative_humidity_100hPa", "relative_humidity_70hPa", "relative_humidity_50hPa", "relative_humidity_30hPa", "dew_point_1000hPa", "dew_point_975hPa", "dew_point_950hPa", "dew_point_925hPa", "dew_point_900hPa", "dew_point_850hPa", "dew_point_800hPa", "dew_point_700hPa", "dew_point_600hPa", "dew_point_500hPa", "dew_point_400hPa", "dew_point_300hPa", "dew_point_250hPa", "dew_point_200hPa", "dew_point_150hPa", "dew_point_100hPa", "dew_point_70hPa", "dew_point_50hPa", "dew_point_30hPa", "cloud_cover_1000hPa", "cloud_cover_975hPa", "cloud_cover_950hPa", "cloud_cover_925hPa", "cloud_cover_900hPa", "cloud_cover_850hPa", "cloud_cover_800hPa", "cloud_cover_700hPa", "cloud_cover_600hPa", "cloud_cover_500hPa", "cloud_cover_400hPa", "cloud_cover_300hPa", "cloud_cover_250hPa", "cloud_cover_200hPa", "cloud_cover_150hPa", "cloud_cover_100hPa", "cloud_cover_70hPa", "cloud_cover_50hPa", "cloud_cover_30hPa", "wind_speed_1000hPa", "wind_speed_975hPa", "wind_speed_950hPa", "wind_speed_925hPa", "wind_speed_900hPa", "wind_speed_850hPa", "wind_speed_800hPa", "wind_speed_700hPa", "wind_speed_600hPa", "wind_speed_500hPa", "wind_speed_400hPa", "wind_speed_300hPa", "wind_speed_250hPa", "wind_speed_200hPa", "wind_speed_150hPa", "wind_speed_100hPa", "wind_speed_70hPa", "wind_speed_50hPa", "wind_speed_30hPa", "wind_direction_1000hPa", "wind_direction_975hPa", "wind_direction_950hPa", "wind_direction_925hPa", "wind_direction_900hPa", "wind_direction_850hPa", "wind_direction_800hPa", "wind_direction_700hPa", "wind_direction_600hPa", "wind_direction_500hPa", "wind_direction_400hPa", "wind_direction_300hPa", "wind_direction_250hPa", "wind_direction_200hPa", "wind_direction_150hPa", "wind_direction_100hPa", "wind_direction_70hPa", "wind_direction_50hPa", "wind_direction_30hPa", "geopotential_height_1000hPa", "geopotential_height_975hPa", "geopotential_height_950hPa", "geopotential_height_925hPa", "geopotential_height_900hPa", "geopotential_height_850hPa", "geopotential_height_800hPa", "geopotential_height_700hPa", "geopotential_height_600hPa", "geopotential_height_500hPa", "geopotential_height_400hPa", "geopotential_height_300hPa", "geopotential_height_250hPa", "geopotential_height_200hPa", "geopotential_height_150hPa", "geopotential_height_100hPa", "geopotential_height_70hPa", "geopotential_height_50hPa", "geopotential_height_30hPa", "vertical_velocity_1000hPa", "vertical_velocity_975hPa", "vertical_velocity_950hPa", "vertical_velocity_925hPa", "vertical_velocity_900hPa", "vertical_velocity_850hPa", "vertical_velocity_800hPa", "vertical_velocity_700hPa", "vertical_velocity_600hPa", "vertical_velocity_500hPa", "vertical_velocity_400hPa", "vertical_velocity_300hPa", "vertical_velocity_250hPa", "vertical_velocity_200hPa", "vertical_velocity_150hPa", "vertical_velocity_100hPa", "vertical_velocity_70hPa", "vertical_velocity_50hPa", "vertical_velocity_30hPa")
- `daily` (array, nullable) — Daily aggregated weather variables to return (one of: "weather_code", "temperature_2m_max", "temperature_2m_min", "apparent_temperature_max", "apparent_temperature_min", "sunrise", "sunset", "daylight_duration", "sunshine_duration", "uv_index_max", "uv_index_clear_sky_max", "precipitation_sum", "rain_sum", "showers_sum", "snowfall_sum", "precipitation_hours", "precipitation_probability_max", "wind_speed_10m_max", "wind_gusts_10m_max", "wind_direction_10m_dominant", "shortwave_radiation_sum", "et0_fao_evapotranspiration")
- `current` (array, nullable) — Current-conditions weather variables to return (one of: "temperature_2m", "relative_humidity_2m", "apparent_temperature", "is_day", "precipitation", "rain", "showers", "snowfall", "weather_code", "cloud_cover", "pressure_msl", "surface_pressure", "wind_speed_10m", "wind_direction_10m", "wind_gusts_10m")
- `minutely_15` (array, nullable) — 15-minutely weather variables to return (Central Europe and North America) (one of: "temperature_2m", "relative_humidity_2m", "dew_point_2m", "apparent_temperature", "precipitation", "snowfall", "rain", "showers", "snowfall_height", "freezing_level_height", "sunshine_duration", "weather_code", "wind_speed_10m", "wind_speed_80m", "wind_direction_10m", "wind_direction_80m", "wind_gusts_10m", "visibility", "cape", "lightning_potential", "is_day", "shortwave_radiation", "direct_radiation", "diffuse_radiation", "direct_normal_irradiance", "global_tilted_irradiance", "terrestrial_radiation")
- `forecast_days` (integer, nullable) — Number of forecast days to return, counting from today (min: 0; max: 16)
- `past_days` (integer, nullable) — Number of past days to include before today (min: 0; max: 92)
- `start_date` (string, nullable) — Start of an explicit date interval (YYYY-MM-DD) (examples: "2026-07-01")
- `end_date` (string, nullable) — End of an explicit date interval (YYYY-MM-DD) (examples: "2026-07-07")
- `temperature_unit` (string) — Unit for temperature values (default: "celsius"; one of: "celsius", "fahrenheit")
- `wind_speed_unit` (string) — Unit for wind speed values (default: "kmh"; one of: "kmh", "ms", "mph", "kn")
- `precipitation_unit` (string) — Unit for precipitation values (default: "mm"; one of: "mm", "inch")
- `models` (array, nullable) — Weather models to source the data from (one of: "best_match", "ecmwf_ifs04", "ecmwf_ifs025", "ecmwf_aifs025", "cma_grapes_global", "bom_access_global", "gfs_seamless", "gfs_global", "gfs_hrrr", "icon_seamless", "icon_global", "icon_eu", "icon_d2", "gem_seamless", "gem_global", "gem_regional", "gem_hrdps_continental", "meteofrance_seamless", "meteofrance_arpege_world", "meteofrance_arpege_europe", "meteofrance_arome_france", "meteofrance_arome_france_hd", "metno_nordic", "jma_seamless", "jma_msm", "jma_gsm", "knmi_seamless", "dmi_seamless", "ukmo_seamless")
- `cell_selection` (string, nullable) — Grid-cell selection preference relative to the requested coordinates (one of: "land", "sea", "nearest")
- `elevation` (number, nullable) — Elevation override used for statistical downscaling (min: -1000; max: 9000)

## Response

### 200 — Successful Response

- `@type` (string) (default: "OpenmeteoWeather")
- `latitude` (number, required)
- `longitude` (number, required)
- `generation_time_ms` (number, nullable)
- `utc_offset_seconds` (integer, nullable)
- `timezone` (string, nullable)
- `timezone_abbreviation` (string, nullable)
- `elevation` (number, nullable)
- `current` (object, nullable)
  - `@type` (string) (default: "OpenmeteoCurrentConditions")
  - `units` (object) (default: {})
    - `*` (string)
  - `values` (object) (default: {})
- `minutely_15` (object, nullable)
  - `@type` (string) (default: "OpenmeteoTimeSeries")
  - `units` (object) (default: {})
    - `*` (string)
  - `records` (array) (default: [])
- `hourly` (object, nullable)
  - `@type` (string) (default: "OpenmeteoTimeSeries")
  - `units` (object) (default: {})
    - `*` (string)
  - `records` (array) (default: [])
- `daily` (object, nullable)
  - `@type` (string) (default: "OpenmeteoTimeSeries")
  - `units` (object) (default: {})
    - `*` (string)
  - `records` (array) (default: [])

## Errors

### 422 — Validation Error

The request body did not validate

What to do: Check the fields against this schema. A URN with the wrong prefix is the most common cause.

- `detail` (array)
  - `loc` (array, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (object)

### 408

The request ran past its time limit

What to do: Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.

### 412

No data available for the location

What to do: Retrying will not help: either the entity does not exist, or the input points at a different one.

### 429

Too many requests: a rate limit or a usage window is exhausted

What to do: When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.

### 500

Something broke on our side

What to do: Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.

### 529

Rate limit reached, or the endpoint is overloaded

What to do: Wait at least 30 seconds, then retry.

## Response envelope

Success: Array of objects (may be empty if no results)

Error: Error may coexist with partial results if it occurs mid-execution. Check X-Error header and status code.

Every response carries these headers:

- `X-Error` — Error message text (present only on error)
- `X-Request-ID` — Unique request identifier
- `X-Execution-Time` — Execution time in seconds
- `X-Result-Count` — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.
- `X-Total-Available-Results` — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.
- `X-Warning` — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.
- `X-Retry-After` — Seconds to wait before retrying. Present only on 429.

