Air Quality API
Part of the Foreca Weather API: global air quality forecasts, so your users can plan their time outdoors around clean air.
AQI on the US EPA scale · 6 pollutants
Hourly up to 85 hours, daily up to 4 days
Included in every plan · free API key for non-commercial use
Built for weather, health and fitness apps
Air quality changes by the hour with traffic, wind and sunshine, so a forecast lets your users plan ahead instead of reacting to a bad air day.
-
Fitness apps: Suggest the best hours for a run or a ride, when the air is cleanest.
-
Health apps: Alert users who are sensitive to air pollution before the air quality drops, so they can plan their day.
-
Weather apps: Show air quality next to the forecast so users see both before they head outside.
Air Quality API at a glance
Every plan includes Air Quality API, from the free Freemium plan to Nimbus. Explore the included features below.
Pollutants
Ozone, nitrogen dioxide, sulphur dioxide, carbon monoxide, PM2.5 and PM10.
Values
An overall AQI based on US EPA breakpoints, a sub-index for each pollutant and the most significant pollutant.
Hourly forecast
Up to 85 hours ahead (24 by default).
Daily forecast
Up to 4 days ahead (3 by default).
Coverage
Worldwide.
Resolution
10 km grid in Europe, 20 km elsewhere.
Method
Numerical modelling and observational data.
Format
REST API, JSON. Query by coordinates or Foreca location ID.
How your app gets the data
The index and the main pollutant for one location, ready for your own app views.
What it works best for
Planning time outdoors: the hours and days when the air is cleanest.
Combine with pollen
Show pollen next to air quality in Europe for a complete view of the outdoor air.
What the AQI levels mean
The AQI turns pollutant levels into one number on the US EPA scale: the lower the number, the cleaner the air. Each level has a name and a colour your users can read at a glance.
US EPA Air Quality Index levels (Source: AirNow)
| AQI | Level | Colour | What it means |
|---|---|---|---|
| 0–50 | Good | Green | Air quality is satisfactory, and air pollution poses little or no risk. |
| 51–100 | Moderate | Yellow | Air quality is acceptable. However, there may be a risk for some people, particularly those who are unusually sensitive to air pollution. |
| 101–150 | Unhealthy for Sensitive Groups | Orange | Members of sensitive groups may experience health effects. The general public is less likely to be affected. |
| 151–200 | Unhealthy | Red | Some members of the general public may experience health effects; members of sensitive groups may experience more serious health effects. |
| 201–300 | Very Unhealthy | Purple | Health alert: the risk of health effects is increased for everyone. |
| 301 and higher | Hazardous | Maroon | Health warning of emergency conditions: everyone is more likely to be affected. |
Air Quality API FAQ
Does the API tell which pollutant drives the AQI?
Yes. Every forecast step names the most significant pollutant and gives a sub-index for each of the six pollutants, so your app can show what is behind a high AQI. The API returns index values, not concentrations in µg/m³.
Is the AQI the same as the official air quality index in my country?
Not always. Many countries and regions use their own index, such as the European Air Quality Index or Canada's AQHI, with different scales. Foreca uses the US EPA scale everywhere, so values are comparable worldwide but can differ from a local official index.
Is the hourly AQI the same as the official US AQI?
Not exactly. The hourly AQI is calculated from hourly concentrations with the US EPA AQI breakpoints, without the 8-hour and 24-hour averages of the official US AQI, so it reacts faster to changes in the air. The daily AQI uses the EPA averaging periods: 24 hours for particles and 8 hours for ozone and carbon monoxide.
How precise is the forecast for a single address?
The forecast describes the air over the surrounding area, so nearby addresses get similar values. Local peaks, such as exhaust next to a busy street, do not show in the forecast.
Can my app use the AQI for health alerts?
Yes, as a general indication. The AQI describes the air, not how one person reacts to it, so let users who are sensitive to air pollution choose their own alert level, such as 101 (Unhealthy for Sensitive Groups).
Can I show the hourly forecast in my users' local time?
Yes. Give a time zone name from the IANA time zone database, such as Europe/Helsinki, and the hourly forecast times are returned in that time zone. The daily forecast is given as dates.
Can I show the pollutant names in my users' language?
Yes. The description of the most significant pollutant is available in 38 languages. Set the language with an ISO 639-1 code, such as fi or de. The default is English.
I only need air quality maps. Which plan do I need?
The Stratus plan. It includes Weather Maps with every map layer, so you get the global air quality index map plus radar, satellite, precipitation, temperature, wind, pollen and the other weather layers. Stratus also includes Point Forecasts and Air Quality data. The free Freemium plan does not include maps.
Start building with air quality data
Endpoints, parameters and response fields are in the Air Quality documentation. The air quality map layer is documented with the other weather map layers.
Get a free API key for non-commercial projects, with Air Quality and Point Forecasts, up to 2,000 requests a day and no credit card. Building a commercial app? Test the paid Foreca Weather API with a 30-day free trial.