# Iqair Airvisual

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

This is a first-class FlyMyAI MCP. Agents **discover it automatically** via tool search and call the actions below on demand - you never wire it up by hand. See the [Composio catalog](https://docs.flymy.ai/mcp/composio.md) for how discovery works.

## Connect

**Iqair Airvisual** authenticates with an API key. Generate the credential in your Iqair Airvisual account, then paste it into FlyMyAI the first time an agent uses an Iqair Airvisual action.

[Get your Iqair Airvisual credential →](https://dashboard.iqair.com)

### Fields to fill in FlyMyAI

| Field | Details |
| --- | --- |
| `IQAir AirVisual API Key` | Your unique API key for accessing the IQAir AirVisual API. _(required)_ |

## Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

| Action | What it does | Required inputs |
| --- | --- | --- |
| `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. | `city`, `state`, `country` |
| `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. | `state`, `country` |
| `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. | `city`, `state`, `country` |
| `IQAIR_AIRVISUAL_GET_COUNTRIES` | Tool to list all supported countries. Use when you need to know which countries are supported by the AirVisual API. | - |
| `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. | `city`, `state`, `country` |
| `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. | - |
| `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. | `lat`, `lon` |
| `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. | `country` |
| `IQAIR_AIRVISUAL_GET_STATION_BY_ID` | Tool to fetch air quality and weather data for a specific monitoring station by ID. Use when you need detailed historical, current, and forecast data for a station. | `station`, `city`, `state`, `country` |
| `IQAIR_AIRVISUAL_GET_WORLD_RANKING` | Tool to retrieve a ranking of cities worldwide based on current AQI. Use when you need a global AQI ranking list after authenticating with a valid AirVisual API key. If /world-rankings is not accessible, gracefully falls back to /nearest_city and returns a si… | - |

## Links

- [Iqair Airvisual website](https://dashboard.iqair.com/)
- [Get API key / credential](https://dashboard.iqair.com)
- [Browse the full Composio catalog](https://docs.flymy.ai/mcp/composio.md)
