---
title: "Returns 72 hours of historical air quality conditions - Given a geolocation."
method: GET
path: "/history/airquality"
tags: ["Historical Air Quality"]
---

# Returns 72 hours of historical air quality conditions - Given a geolocation.

`GET /history/airquality`

Returns historical air quality conditions. See https://www.weatherbit.io/api for API specific rate limits.

## Query parameters

- `lat` number, double, required
- `lon` number, double, required
- `city` string, string
- `postal_code` string, string
- `country` string, string
- `start_date` string, string
- `end_date` string, string
- `tz` 'local' | 'utc', string
- `key` string, string, required

## Response `200`

Historical air quality conditions

- AQHourly
  - `city_name` string — Nearest city name
  - `state_code` string — State Abbreviation
  - `country_code` string — Country Abbreviation
  - `lat` number — Latitude
  - `lon` number — Longitude
  - `timezone` string — Local IANA time zone
  - `data` AQHour[]
    - `ts` number — Unix Timestamp
    - `timestamp_local` string — Timestamp in local time
    - `timestamp_utc` string — Timestamp UTC
    - `datetime` string — [DEPRECATED] Deprecated - use 'timestamp_utc'
    - `aqi` integer — Cloud cover as a percentage (%)
    - `co` number — Concentration of CO (µg/m³)
    - `so2` number — Concentration of SO2 (µg/m³)
    - `no2` number — Concentration of NO2 (µg/m³)
    - `o3` number — Concentration of O3 (µg/m³)
    - `pm25` number — Concentration of PM 2.5 (µg/m³)
    - `pm10` number — Concentration of PM 10 (µg/m³)

## Other responses

- `204` — No Data Found
- `400` — Client Error
- `403` — Unauthorized/No Access for current plan level
- `429` — Daily or Velocity limit exceeded
- `500` — Internal Server Error

---

[API](https://skmtc.dev/weatherbit/apis/weatherbit-interactive-swagger-ui-documentation.md) · [All operations](https://skmtc.dev/weatherbit/apis/weatherbit-interactive-swagger-ui-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/weatherbit/weatherbit-interactive-swagger-ui-documentation/revisions/31cff6bde48b/schema)
