Developer Tools

IQAir AirVisual

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

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Get Air Quality Forecast Data

    Retrieves 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

    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

    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

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

  • Get Historical AQI Data

    Retrieves 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

    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

    Retrieves 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

    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

    Retrieves 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

    Requests 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.