Weather
IQAir logo

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 / call

    Fetch 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 / call

    Returns Dhaka's current AQI, pollutant breakdown, forecasts, and coordinates.

    location_slug
    string · required
  • Homepage Route Data

    act_iqair_homepage_route_dataread1 credit / call

    Returns homepage AQI highlights and top polluted cities.

  • Location Search Autocomplete

    act_iqair_location_search_autocompleteread2 credits / call

    Returns 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 / call

    Returns Los Angeles's current AQI, pollutant concentrations, forecasts, and coordinates.

    location_slug
    string · required
  • Map Fire Layer

    act_iqair_map_fire_layerread2 credits / call

    Returns 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 / call

    Returns 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 / call

    Returns world air quality map data with top polluted and cleanest city context.

  • World Air Quality Ranking

    act_iqair_com_world_air_quality_rankingread1 credit / call

    Fetch 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 / call

    Returns 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

All Weather sites