Air Quality & Historical Weather Scraper
Air quality (PM2.5, PM10, US & European AQI, ozone, NO2, SO2, CO, dust) and historical daily weather (temperature, precipitation, wind) for any location by city name or coordinates. Built on Open-Meteo, no API key. Export JSON, CSV or Excel.
Air Quality & Historical Weather Scraper
Two things a forecast doesn't give you: air quality and weather history — for any location by city name (auto-geocoded) or coordinates. Built on Open-Meteo's free API. No API key.
What it does
- Air quality — PM2.5, PM10, US AQI & European AQI (with a plain-English category), ozone, NO2, SO2, CO, dust, UV. Current, plus optional hourly.
- Historical weather — daily max/min/mean temperature, precipitation, rain, snowfall, max wind & gusts for any date range (Open-Meteo archive).
- Multiple locations in one run.
- Export to JSON, CSV, or Excel, or pull via the Apify API.
Input
| Field | Description |
|---|---|
locations |
City names, auto-geocoded. |
coordinates |
lat,lon pairs. |
getAirQuality |
Current air quality. |
airQualityHourly |
Also hourly air quality. |
getHistorical |
Historical daily weather. |
startDate / endDate |
YYYY-MM-DD (required for history). |
timezone |
IANA tz or auto. |
Example
{ "locations": ["Delhi", "Los Angeles"], "getAirQuality": true,
"getHistorical": true, "startDate": "2026-08-01", "endDate": "2026-08-31" }
Output
{ "resultType": "airQuality", "location": "Delhi", "usAqi": 168,
"usAqiCategory": "Unhealthy", "pm2_5": 44.8, "pm10": 142, "ozone": 73 }
{ "resultType": "historical", "location": "Delhi", "date": "2026-08-01",
"tempMax": 43.1, "tempMin": 29.6, "precipitationSum": 0 }
Use cases
- Health & environment apps — live AQI and pollutant levels by city.
- Research & climate — historical weather for any place and period.
- Insurance / agriculture / energy — long-run temperature & precipitation.
- AI/RAG — feed air-quality and climate data to an assistant.
FAQ
Do I need an API key? No — it uses Open-Meteo's free API.
How far back does history go? Open-Meteo's archive covers many decades; set any startDate/endDate.
Powered by Open-Meteo (CC-BY). Data is for information only.
🤖 Use with Claude or ChatGPT (MCP)
Run this actor from Claude, ChatGPT, Cursor or any MCP client via the Apify MCP server. In Claude Desktop: Settings → Connectors → Add custom connector → https://mcp.apify.com. Or expose just this tool:
{ "mcpServers": { "apify": { "url": "https://mcp.apify.com?tools=get_anything/air-quality-scraper" } } }
Full guide: Connect Apify actors to Claude & ChatGPT.
⭐ Found this useful?
If this Actor saved you time, please leave a rating on its Apify page — reviews genuinely help others discover it and help me keep improving it.
Related scrapers
Weather Scraper - Forecast, Current & Hourly (Free API)
Current conditions plus daily and hourly weather forecasts for any location by city name or coordinates. Temperature, precipitation, wind, UV, sunrise/sunset, up to 16 days, your choice of units. Built on Open-Meteo, no API key. Export JSON, CSV or Excel.
Sports Scores & Fixtures Scraper - Live Scores (ESPN)
Live scores, results and upcoming fixtures across NFL, NBA, MLB, NHL, Premier League, La Liga, Champions League and more. Teams, scores, status, venue, broadcast and odds line. Filter by league and date. No API key. Export JSON, CSV or Excel. Info only, not betting advice.
Sports Standings & Teams Scraper (ESPN)
League standings (rank, W-L-D, points, goals/points for & against, goal difference) and team directories (name, location, colors, logo, venue) across NFL, NBA, MLB, NHL, Premier League, La Liga, Champions League and more. No API key. Export JSON, CSV or Excel. Info only, not betting advice.