Skip to content

Free to start: 1,000 credits, no card, nothing to install.

IQAir scraper

Ask for the world ranking and get each city's rank, AQI US value and followers in a table.

Or ask for

Here is the table you get back

Each result is one row, in the 4 columns below. Name any other field you see on the site and it gets a column too.

Comes as
A table in the chatCSV fileJSON fileRows in your Google Sheet
Covers
Worldwide
The IQAir website

Ranking table

RankMajor cityAQI USFollowers
1Karachi, Pakistan231842.1K followers
2Dhaka, Bangladesh2042.4M followers
3Kabul, Afghanistan187310.5K followers
Example rows. Your own run fills the table with what it finds.

Not sure what to ask? Try one of these

Try this puts the request in the box at the top. Change any word, then press Run it.

  • One search

    Open the IQAir world air quality ranking and collect the top 50 major cities with their rank, city and country, AQI US value and number of followers into a table.

    What comes back

    Ranking table
    RankMajor cityAQI US
    The search played at the top of this page.
  • Into a sheet

    Open the IQAir page for London and list the monitoring stations with name, US AQI and link in a spreadsheet.

    What comes back

    Google Sheet
    RankMajor cityAQI US
  • A list of pages

    Open each of these IQAir pages and put the Rank, Major city, AQI US, and Followers in one table: [paste the links]

    What comes back

    Ranking table
    RankMajor cityAQI US
    Paste the links. It opens up to 5 at once and gives you one table.
  • On a schedule

    Every morning, search IQAir for [what you are looking for] and add the new results to my Google Sheet with the Rank, Major city, AQI US, and Followers.

    What comes back

    Every morning
    MTWTFSS
    Google Sheet
    RankMajor cityAQI US
    It runs again on its own, as often as every 5 minutes.

What happens after you press Run it

It works through steps like these, and you watch each one in the chat as it runs. It picks the way: a browser on IQAir, or a ready-made extractor when one fits.

What you can do with this table

Pick who you are: what you would ask for, the rows you get back, and what you can do next.

What does it cost to run?

Your first runs are free: 1,000 credits, no card. After that, pick how many credits a month with the slider.

Have your own API keys? There is a plan for that too. See all plans

3 things to know about IQAir before you start

How the site shows its data, and what that changes for your run.

You choose what to collect and how you use it, so following the site's terms is up to you.

iqair.com

  • Needs an account to see the data

    Anyone can see it without signing in.

    No
  • How results are listed

    All the results are on one page.

    One page
  • Has an official API

    IQAir has no official API for this data.

    No

IQAir's terms of use and its robots.txt file say what the site allows. What you may do with the data depends on the data, what you use it for and the law where you are.

Already writing code?

Send the same request to the Agent API with your key, then read the table from the job it starts.

Read the API docs

Questions people ask first

Still have a question?

Ask us on Discord
Is it legal to scrape air quality data from IQAir?

It depends on what the data is, how you use it, IQAir's terms of use and the law where you are. Read the site's robots.txt, which limits automated access for many crawlers, and look at its official Air Quality API for any ongoing or commercial use.

Does IQAir have an official API?

Yes, IQAir offers an Air Quality API for city and station readings, set up through its own developer pages. If you need a steady feed built into your own software, the API is the route the site provides.

What data can the agent collect from IQAir?

From the world ranking page it reads each major city's rank, AQI US value and follower count. From a city page it can read the monitoring stations, pollutant levels and the hourly forecast with temperature and wind.

What happens if IQAir shows a CAPTCHA or a block page?

The agent stops and tells you what the page showed. It does not solve CAPTCHAs, so that run returns no rows until the page opens normally.

Can the agent read pages that need an IQAir account?

It reads public pages that any visitor can see. For your own monitors saved under your account, it can work in your own Chrome through the extension, where you are already signed in.

Can I get the ranking again every day or week?

Yes, save the task to run on a schedule and have each run write the new ranking rows into a Google Sheet. You can then compare how rank and AQI US values change from one run to the next.

Do I need to write code?

No. You write what you want in a sentence, like the requests on this page, and the agent does the clicking. If you do write code, the Agent API takes the same request.

What does a run cost?

You start with 1,000 free credits and no card. Each step the agent takes costs the AI model's own price plus 20% and a flat 6 credits, and browser time is charged by the second. A short search on a low-cost model uses far fewer credits than a long run on a large one.

What do I get the data in?

A table in the chat that you can download as CSV or JSON. Ask for a Google Sheet and the agent writes the rows into your sheet once you connect Google.

Start with one search and see the table

Write what you want from IQAir in the box at the top, in your own words. Nothing runs until you press Run it.

  • A task can repeat on a schedule, as often as every 5 minutes.

    How schedules work
  • Results can also come to you in Discord or Telegram.