Iqair Airvisual
iqair_airvisualIQAir AirVisual provides global air quality data through its API, offering real-time and historical information on air pollution levels.
Acciones disponibles (10)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Get Air Quality Forecast DataIQAIR_AIRVISUAL_GET_AIR_QUALITY_FORECAST_DATAAcciónTool to retrieve air quality forecast data for a specified city, state, and country. Use after confirming location details.
IQAIR_AIRVISUAL_GET_AIR_QUALITY_FORECAST_DATAAcciónTool to retrieve air quality forecast data for a specified city, state, and country. Use after confirming location details.
Parámetros de entrada
citystringObligatorioCity name (e.g., 'Los Angeles').
statestringObligatorioState or region name (e.g., 'California').
countrystringObligatorioCountry name (e.g., 'USA').
Parámetros de salida
dataobjectObligatorioForecast data payload.
errorstringError if any occurred during the execution of the action
statusstringObligatorioStatus of the API request, e.g., 'success'.
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get CitiesIQAIR_AIRVISUAL_GET_CITIESAcciónTool to list supported cities in a specified state and country. Use when you need to retrieve cities for a given state/country.
IQAIR_AIRVISUAL_GET_CITIESAcciónTool to list supported cities in a specified state and country. Use when you need to retrieve cities for a given state/country.
Parámetros de entrada
statestringObligatorioState's English name, for example 'California'
countrystringObligatorioCountry's English name, for example 'United States'
Parámetros de salida
dataobject[]ObligatorioList of city objects
errorstringError if any occurred during the execution of the action
statusstringObligatorioOperation status, for example 'success'
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get City Air QualityIQAIR_AIRVISUAL_GET_CITY_AIR_QUALITYAcciónTool to retrieve air quality data for a specific city. Use when you need current pollution and weather data by specifying city, state, and country.
IQAIR_AIRVISUAL_GET_CITY_AIR_QUALITYAcciónTool to retrieve air quality data for a specific city. Use when you need current pollution and weather data by specifying city, state, and country.
Parámetros de entrada
citystringObligatorioName of the city to retrieve air quality for
statestringObligatorioName of the state or province containing the city
countrystringObligatorioName of the country containing the city
Parámetros de salida
dataobjectObligatorioCity air quality payload.
errorstringError if any occurred during the execution of the action
statusstringObligatorioRequest status ('success' or 'fail').
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get supported countriesIQAIR_AIRVISUAL_GET_COUNTRIESAcciónTool to list all supported countries. Use when you need to know which countries are supported by the AirVisual API.
IQAIR_AIRVISUAL_GET_COUNTRIESAcciónTool to list all supported countries. Use when you need to know which countries are supported by the AirVisual API.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataobject[]ObligatorioList of supported countries
errorstringError if any occurred during the execution of the action
statusstringObligatorioRequest status, e.g., 'success' or error code
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Historical AQI DataIQAIR_AIRVISUAL_GET_HISTORICAL_AQI_DATAAcciónTool to retrieve historical air quality data for a city. Use after confirming city, state, and country when you need AQI readings over time.
IQAIR_AIRVISUAL_GET_HISTORICAL_AQI_DATAAcciónTool to retrieve historical air quality data for a city. Use after confirming city, state, and country when you need AQI readings over time.
Parámetros de entrada
endstringEnd datetime in ISO8601 format (inclusive).
citystringObligatorioCity name
startstringStart datetime in ISO8601 format (inclusive).
statestringObligatorioState or province name
countrystringObligatorioCountry name
Parámetros de salida
dataobjectObligatorioResponse data containing historical AQI readings
errorstringError if any occurred during the execution of the action
statusstringObligatorioAPI call status, e.g., 'success' or error code
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Nearest City Air QualityIQAIR_AIRVISUAL_GET_NEAREST_CITY_AIR_QUALITYAcciónTool 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_CITY_AIR_QUALITYAcciónTool 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.
Parámetros de entrada
ipstringIPv4 address to geolocate; if neither lat/lon nor ip provided, server uses caller's IP.
latnumberLatitude in decimal degrees; must be between -90 and 90. Must be provided with lon.
lonnumberLongitude in decimal degrees; must be between -180 and 180. Must be provided with lat.
Parámetros de salida
dataobjectObligatorioNearest city payload.
errorstringError if any occurred during the execution of the action
statusstringObligatorioRequest status ('success' or 'fail').
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Nearest Station Air QualityIQAIR_AIRVISUAL_GET_NEAREST_STATION_AIR_QUALITYAcciónTool to get nearest station air quality. Use when you have GPS coordinates and need closest station’s AQI.
IQAIR_AIRVISUAL_GET_NEAREST_STATION_AIR_QUALITYAcciónTool to get nearest station air quality. Use when you have GPS coordinates and need closest station’s AQI.
Parámetros de entrada
latnumberObligatorioLatitude in decimal degrees, must be between -90 and 90
lonnumberObligatorioLongitude in decimal degrees, must be between -180 and 180
Parámetros de salida
dataobjectObligatorioNearest station air quality payload
errorstringError if any occurred during the execution of the action
statusstringObligatorioResponse status, e.g. "success"
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get StatesIQAIR_AIRVISUAL_GET_STATESAcciónTool to list supported states in a specified country. Use when you need to retrieve states/provinces for a given country.
IQAIR_AIRVISUAL_GET_STATESAcciónTool to list supported states in a specified country. Use when you need to retrieve states/provinces for a given country.
Parámetros de entrada
countrystringObligatorioCountry's English name, for example 'United States'
Parámetros de salida
dataobject[]ObligatorioList of state objects
errorstringError if any occurred during the execution of the action
statusstringObligatorioOperation status, for example 'success'
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Station by IDIQAIR_AIRVISUAL_GET_STATION_BY_IDAcciónTool 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.
IQAIR_AIRVISUAL_GET_STATION_BY_IDAcciónTool 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.
Parámetros de entrada
citystringObligatorioCity’s English name; find via listing endpoint
statestringObligatorioState’s English name; find via listing endpoint
countrystringObligatorioCountry’s English name; find via listing endpoint
stationstringObligatorioStation’s English name; find via listing endpoint
Parámetros de salida
dataobjectObligatorioerrorstringError if any occurred during the execution of the action
statusstringObligatorioRequest status, e.g., 'success'
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get World AQI RankingsIQAIR_AIRVISUAL_GET_WORLD_RANKINGAcciónTool 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 single-item list based on the nearest city.
IQAIR_AIRVISUAL_GET_WORLD_RANKINGAcciónTool 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 single-item list based on the nearest city.
Parámetros de entrada
ipstringIPv4 address to geolocate for fallback.
latnumberLatitude for fallback to nearest city.
lonnumberLongitude for fallback to nearest city.
Parámetros de salida
dataobject[]ObligatorioList of cities ranked by AQI
errorstringError if any occurred during the execution of the action
statusstringObligatorioRequest status (e.g., 'success')
successfulbooleanObligatorioWhether or not the action execution was successful or not