Air Quality

Hourly

Hourly air quality forecasts.

get/api/v1/air-quality/forecast/hourly/{location}

Request

  • Base URL: https://weatherapi.foreca.net
  • URL: https://weatherapi.foreca.net/api/v1/air-quality/forecast/hourly/{location}
  • Auth: HTTP bearer

Path parameters

locationstring required

"Longitude,latitude" or location identifier (id) from the location endpoint

Query parameters

periodsstring

Number of time steps (default 24, maximum 85)

tzstring

Time zone in response (IANA time zone database names)

langstring

Language (ISO 639-1 codes). Options: ar, bg, cs, da, de, el, en, et, es, fa, fi, fr, hi, hr, hu, id, is, it, ja, ko, lt, lv, nl, no, pl, pt, ro, ru, sk, sr, sv, ta, th, tr, uk, vi, zh (Simplified Chinese), zh_hk (Traditional Chinese). (default en)

Response

Success

Example response

{
  "forecast": [
    {
      "time": "2022-02-03T10:00Z",
      "pollutant": "Particulate matter <2.5um",
      "pollutantPhrase": "Particulate matter <2.5 µm",
      "AQI": 102,
      "AQI_CO": 8,
      "AQI_NO2": 6,
      "AQI_O3": 24,
      "AQI_SO2": 4,
      "AQI_PM10": 64,
      "AQI_PM2P5": 102
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.