# Iqair Airvisual

IQAir AirVisual provides global air quality data through its API, offering real-time and historical information on air pollution levels.

- **Category:** developer tools
- **Auth:** API_KEY
- **Tools:** 10
- **Triggers:** 0
- **Slug:** `IQAIR_AIRVISUAL`
- **Version:** 20260211_00

## Tools

### Get Air Quality Forecast Data

**Slug:** `IQAIR_AIRVISUAL_GET_AIR_QUALITY_FORECAST_DATA`

Tool to retrieve air quality forecast data for a specified city, state, and country. Use after confirming location details.

### Get Cities

**Slug:** `IQAIR_AIRVISUAL_GET_CITIES`

Tool 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

**Slug:** `IQAIR_AIRVISUAL_GET_CITY_AIR_QUALITY`

Tool 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

**Slug:** `IQAIR_AIRVISUAL_GET_COUNTRIES`

Tool to list all supported countries. Use when you need to know which countries are supported by the AirVisual API.

### Get Historical AQI Data

**Slug:** `IQAIR_AIRVISUAL_GET_HISTORICAL_AQI_DATA`

Tool to retrieve historical air quality data for a city. Use after confirming city, state, and country when you need AQI readings over time.

### Get Nearest City Air Quality

**Slug:** `IQAIR_AIRVISUAL_GET_NEAREST_CITY_AIR_QUALITY`

Tool 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

**Slug:** `IQAIR_AIRVISUAL_GET_NEAREST_STATION_AIR_QUALITY`

Tool to get nearest station air quality. Use when you have GPS coordinates and need closest station’s AQI.

### Get States

**Slug:** `IQAIR_AIRVISUAL_GET_STATES`

Tool to list supported states in a specified country. Use when you need to retrieve states/provinces for a given country.

### Get Station by ID

**Slug:** `IQAIR_AIRVISUAL_GET_STATION_BY_ID`

Fetches current air quality and weather data for a specific location by station/city/state/country names. Falls back to city-level data if the Stations API requires premium access. Returns current AQI (US and China scales), weather conditions, and geographic location. Use Get Countries, Get States, and Get Cities actions to find valid location names.

### Get World AQI Rankings

**Slug:** `IQAIR_AIRVISUAL_GET_WORLD_RANKING`

Retrieves air quality ranking data. With premium API access, returns a global ranking of cities by AQI. With standard (free) API access, automatically falls back to returning the nearest city's air quality as a single-item ranking list. Use lat/lon coordinates or an IP address to specify location for the fallback behavior. Returns city name, location, and current AQI values (US EPA and Chinese MEP standards).
