Historical Weather
Returns historical weather data for a given date on or after 1 January 2010. Includes hourly breakdown. Enterprise plan unlocks solar irradiance, wind@100m, pollen history, and evapotranspiration.
Query parameters
Your WeatherAPI.com API key.
Location query. Accepts: city name, lat/lon, US zip, UK postcode, Canada postal code, METAR code (metar:EGLL), IATA (iata:DXB), auto:ip, IPv4/IPv6, or location ID (id:2801268).
Date on or after 2010-01-01 in yyyy-MM-dd format.
Unix timestamp equivalent of dt. Do not pass both.
End date for range (Pro+ and above). Max 30 days range. yyyy-MM-dd.
Unix timestamp equivalent of end_dt. Do not pass both.
Restrict output to a specific hour (0–23) in 24-hour format.
Include Air Quality Index (AQI) data in response.
Include pollen data. Available on Pro+ and above.
Interval for data. Use tp=15 for 15-minute intervals (Enterprise only).
Language code for condition text. E.g.: fr, de, es, zh, ar. See full list in docs.
Include solar irradiance data in History API. Enterprise only.
Include evapotranspiration data. Business and Enterprise only.
Include wind speed at 100m height in mph. Enterprise only.
Include wind speed at 100m height in kph. Enterprise only.
Response
Historical weather data
Changes
No recorded changes to this endpoint across all 1 revision of this API.