IQAir Scraper
Spider read iqair.com in 124 ms without a browser and returned 385 lines of clean markdown, including sections like "Our mission for a cleaner world", "Help Me Choose" and "Keep your air purifier performing like new".
## Our mission for a cleaner worldWe engineer solutions that protect people, health systems, and communities. See how IQAir is shaping the future of clean air.## Help Me ChooseSimply answer 2-3 questions to get the right recommendation.## Keep your air purifier performing like newAll IQAir Genuine Replacement filters are Swiss and German made and are long lasting, **up to 4 years**.Air Cleaning TechnologyFeatured articlesWhere should you place an air purifier?Air Cleaning TechnologyFeatured articlesThought LeadershipWhat Sustainable Technology Really Means for Consumer ProductsHEPA vs carbon filters: What each type of filter actually removesAir QualityClimateCommunityFeatured articlesHow weakening environmental protections affects communities worldwide## Know your air. Anywhere, anytime.IQAirs AirVisual app is the worlds leading air quality app. It integrates with IQAir purifiers to give you real time indoor and outdoor air pollution data, air quality forecasts, and full remote control of purifier settings directly from your smartphone.Clean-air solutions for every professional environment.Learn more about the IQAir Clean Air Facility.Commercial Air PurificationLearn about our commercial air purifiers.Learn how IQAir technology helps schools achieve the cleanest air.IQAir offers solutions for the most critical environments.Learn more about high-performance air cleaning for dental practices.Learn more about effective cleanroom and laboratory containment control.Protect precious museum collections from corrosive indoor air pollutants.Environmental, Social and GoveranceLearn more about IQAir and ESG initiatives.Visit the IQAir Experience CenterExperience IQAir technology through hands-on product demos and interactive learning tools.Answer 2-3 simple questions and we'll help you quickly find the perfect air cleaning solution. The same call, in code.
The capture above came back as markdown. These examples add a key, so you get browser rendering, proxies, and concurrency on iqair.com.
import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://www.iqair.com/world-most-polluted-cities");
// No selectors, no schema. Spider reads the page and names the fields.
const data = await page.scrape();
console.log(data);
await spider.close(); import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://www.iqair.com/world-most-polluted-cities");
await page.content();
const data = await page.evaluate(`(() => {
const cities = [];
document.querySelectorAll("table tbody tr, .city-row").forEach(el => {
const rank = el.querySelector("td:nth-child(1), .rank")?.textContent?.trim();
const city = el.querySelector("td:nth-child(2) a, .city-name")?.textContent?.trim();
const aqi = el.querySelector("td:nth-child(3), .aqi-value")?.textContent?.trim();
const country = el.querySelector("td:nth-child(4), .country-name")?.textContent?.trim();
if (city) cities.push({ rank, city, aqi, country });
});
return JSON.stringify({ total: cities.length, cities: cities.slice(0, 20) });
})()`);
console.log(JSON.parse(data));
await spider.close(); Ready for volume? Get an API key →
Fields you can pull.
Spider names these from the page. The capture above came back as markdown; the same
call with return_format: "json" returns them as keys.
What iqair.com costs to scrape.
The capture above cost $0.000683 to fetch. Pricing is $1 per GB of pre-transformation bandwidth plus $0.001 per CPU minute, so a page like this one lands at a fraction of a cent. Failed requests are billed at $0.
- Free balance on signup
- No card required to test
- Balance never expires
Run it keyless, no account
More Weather & Environment scrapers.
Weather.com Scraper
Extract current conditions, hourly forecasts, 10-day outlooks, and severe weather alerts from The Weather Channel.
AccuWeather Scraper
Extract minute-by-minute precipitation, extended forecasts, RealFeel temperatures, and allergy indices from AccuWeather.
Weather Underground Scraper
Extract hyperlocal weather data, personal weather station readings, historical records, and community reports from Weather Underground.
Start scraping iqair.com.
You already have the call. A key raises the rate limit and turns on browser rendering, proxies, and concurrency. Balance never expires, and top-ups go through secure checkout.