POST /api/openmeteo/archive
Price: 1 credit
Get historical weather (ERA5 reanalysis) for a geographic point over a date interval
Get historical weather for a point by latitude and longitude between start_date and end_date (both required, YYYY-MM-DD, data available from 1940 onward). Request 'hourly' and/or '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 unit selection, timezone, and reanalysis model choice. Returns the point metadata plus the requested blocks as lists of per-timestamp records with their units.
access-token string requiredtimeout 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")start_date string required — Start of the historical interval (YYYY-MM-DD) (examples: "2024-01-01")end_date string required — End of the historical interval (YYYY-MM-DD) (examples: "2024-01-07")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")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 — Reanalysis models to source the data from (one of: "best_match", "era5_seamless", "era5", "era5_land", "ecmwf_ifs", "cerra")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)@type string (default: "OpenmeteoWeather")latitude number requiredlongitude number requiredgeneration_time_ms number nullableutc_offset_seconds integer nullabletimezone string nullabletimezone_abbreviation string nullableelevation number nullablecurrent object nullable@type string (default: "OpenmeteoCurrentConditions")units object (default: {})* stringvalues object (default: {})minutely_15 object nullable@type string (default: "OpenmeteoTimeSeries")units object (default: {})* stringrecords array (default: [])hourly object nullable@type string (default: "OpenmeteoTimeSeries")units object (default: {})* stringrecords array (default: [])daily object nullable@type string (default: "OpenmeteoTimeSeries")units object (default: {})* stringrecords array (default: [])422 — The request body did not validate Check the fields against this schema. A URN with the wrong prefix is the most common cause.408 — The request ran past its time limit 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 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 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 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 Wait at least 30 seconds, then retry.X-Error — Error message text (present only on error)X-Request-ID — Unique request identifierX-Execution-Time — Execution time in secondsX-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.