IQAir API
iqair.com
IQAir - global air quality with location search, AQI dashboards, forecasts, and rankings.
- Actions
- 10
- Category
- Weather
- Login
- Not required
- Output
- JSON
Call the IQAir API
Submit a task, then poll the job until it settles. This example runs act_iqair_com_city_air_quality_detail_ssr.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "act_iqair_com_city_air_quality_detail_ssr",
"params": {
"country_slug": "bangladesh",
"state_slug": "dhaka",
"city_slug": "dhaka"
}
}'10 actions on iqair.com
Read
City Air Quality Detail (SSR)
act_iqair_com_city_air_quality_detail_ssrread1 credit / callFetch the server-rendered city air quality page HTML with embedded structured data. Returns parsed AQI index, pollutant concentrations, weather metrics, and station information from the page markup.
- country_slug
- string · required
- state_slug
- string · required
- city_slug
- string · required
Dhaka Location Dashboard
act_iqair_location_dashboard_ssr_dhakaread1 credit / callReturns Dhaka's current AQI, pollutant breakdown, forecasts, and coordinates.
- location_slug
- string · required
Homepage Route Data
act_iqair_homepage_route_dataread1 credit / callReturns homepage AQI highlights and top polluted cities.
Location Search Autocomplete
act_iqair_location_search_autocompleteread2 credits / callReturns autocomplete matches for cities, stations, and facilities with slugs and AQI snapshots.
- search_query
- string · required
Los Angeles Location Dashboard
act_iqair_location_dashboard_ssr_los_angelesread1 credit / callReturns Los Angeles's current AQI, pollutant concentrations, forecasts, and coordinates.
- location_slug
- string · required
Map Fire Layer
act_iqair_map_fire_layerread2 credits / callReturns wildfire and fire-alert overlay features for a map viewport and zoom level.
- map_bbox
- string · required
- zoom_level
- string · required
New York Location Dashboard
act_iqair_location_dashboard_ssr_new_yorkread1 credit / callReturns New York's current AQI, pollutant breakdown, forecasts, and weather.
- location_slug
- string · required
World Air Quality Map Data
act_iqair_world_air_quality_map_dataread1 credit / callReturns world air quality map data with top polluted and cleanest city context.
World Air Quality Ranking
act_iqair_com_world_air_quality_rankingread1 credit / callFetch the global real-time air quality ranking list. Returns ranked cities with AQI values, pollution levels, and canonical URL paths for each location.
World Air Quality Ranking
act_iqair_air_quality_ranking_listread1 credit / callReturns the global air quality ranking with city names, slugs, and current AQI values.
IQAir API questions
- Is there an API for IQAir?
- IQAir does not offer a public data API for this, but Anakin Wire provides 10 maintained endpoints for iqair.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape IQAir data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when iqair.com changes its markup, Anakin updates the action.
- Do I need a IQAir account?
- No. Every IQAir action listed here runs anonymously — no account and no credentials required.
- What does the IQAir API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.
More Weather APIs
7Timer
7Timer - numerical weather, astronomy, cloud-cover, and meteogram forecasts worldwide.
Bureau of Meteorology (Australia)
Australia's weather service - forecasts, observations, radar, and severe weather warnings.
EU PVGIS
EU PVGIS - solar PV output and hourly irradiance and wind time-series.
NWS Forecast
National Weather Service - location forecasts, hourly views, text forecasts, and maps.
Open-Meteo
Open-Meteo - weather, historical, air quality, geocoding, and marine data.
OpenAQ
OpenAQ - open air quality data with monitoring stations and pollutant readings.