Daily air quality history
get_air_quality_historyDaily PM2.5 of a city from the Atmy Data Hub (UTC days, sensors after the quality check) with the day's weather from 2026-01-19 (mean, lowest and highest temperature, humidity, pressure, wind, strongest gust, clouds): the last days, or any period since 2017 with from/to, at most 400 days per call. For the whole history or records use get_air_quality_monthly first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day YYYY-MM-DD; default the last completed day. | |
| lat | No | Latitude; with lon, the nearest city with an Atmy summary within 50 km. | |
| lon | No | Longitude. | |
| city | No | City name in any of the site languages, a slug like "russia/krasnoyarsk", or the Atmy city id. | |
| days | No | How many days back from the last completed day; ignored with from/to. | |
| from | No | First day YYYY-MM-DD (2017-01-01 or later). | |
| lang | No | Language of city and country names and of the page link; default en. | |
| country | No | Country name, to tell apart cities with the same name. |