Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Get Air Quality Forecast Data
IQAIR_AIRVISUAL_GET_AIR_QUALITY_FORECAST_DATARetrieves daily pollutant forecast data for a specified city, state, and country. A successful city response can produce empty forecast lists when the expected data is missing or cannot be parsed.
Get Cities
IQAIR_AIRVISUAL_GET_CITIESTool to list supported cities in a specified state and country. Use when you need to retrieve cities for a given state/country.
Get City Air Quality
IQAIR_AIRVISUAL_GET_CITY_AIR_QUALITYTool to retrieve air quality data for a specific city. Use when you need current pollution and weather data by specifying city, state, and country.
Get supported countries
IQAIR_AIRVISUAL_GET_COUNTRIESTool to list all supported countries. Use when you need to know which countries are supported by the AirVisual API.
Get Historical AQI Data
IQAIR_AIRVISUAL_GET_HISTORICAL_AQI_DATARetrieves AQI data for a specified city, state, and country, with optional start and end dates. Results can consist of only the latest city reading, which is not necessarily within the requested date range.
Get Nearest City Air Quality
IQAIR_AIRVISUAL_GET_NEAREST_CITY_AIR_QUALITYTool to retrieve air quality data for the nearest city based on latitude/longitude or IP. Use when you have precise location data or want to geolocate an IP for air quality.
Get Nearest Station Air Quality
IQAIR_AIRVISUAL_GET_NEAREST_STATION_AIR_QUALITYRetrieves air quality for the nearest station to supplied GPS coordinates. When station access is denied, the result can instead contain nearest-city data.
Get States
IQAIR_AIRVISUAL_GET_STATESTool to list supported states in a specified country. Use when you need to retrieve states/provinces for a given country.
Get Station by ID
IQAIR_AIRVISUAL_GET_STATION_BY_IDRetrieves current air quality and weather by station, city, state, and country names. Results can instead be city-level and do not necessarily confirm the named station. Use the countries, states, and cities actions to find valid location names.
Get World AQI Rankings
IQAIR_AIRVISUAL_GET_WORLD_RANKINGRequests global city air quality rankings. Results can instead contain air quality for a single nearest city; latitude and longitude or an IP address can specify the location for that result. Latitude and longitude must be supplied together.