get current air quality by gps coordinates or city using the iqair airvisual api

domain: iqair.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Sign up and generate a free API key at iqair.com/dashboard/api
  2. Call GET https://api.airvisual.com/v2/nearest_city?lat={lat}&lon={lon}&key={API_KEY}
  3. Alternatively use /v2/city?city={city}&state={state}&country={country}&key={API_KEY} for a named lookup
  4. Check the response status field ('success' vs an error code) before reading the payload
  5. Read current.pollution.aqius (US EPA AQI) and current.pollution.aqicn (China MEP AQI), plus current.weather for temperature/humidity/wind

Known gotchas

Related routes

Retrieve outdoor air quality data from the IQAir AirVisual API for a given city or GPS coordinate
api.airvisual.com · 5 steps · unrated
get current air quality conditions and heatmap tiles from the google air quality api
airquality.googleapis.com · 5 steps · unrated
get current, forecast, or historical air pollution index and pollutant concentrations by coordinate
openweathermap.org · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans