# Air Quality by Location (AQI, PM2.5, PM10, Ozone, NO2, CO)

> Air Quality by Location (AQI, PM2.5, PM10, Ozone, NO2, CO) is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns live US AQI and major pollutant readings (PM2.5, PM10, ozone, NO2, CO) for a given latitude/longitude or city name

## Facts

- Endpoint: GET https://api.x402node.dev/weather/air-quality
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/air-quality-by-location-aqi-pm2-5-pm10-ozone-no2-co-8e351a46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v0jO3FL8dVCJsKkrKtkg2

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability air-quality-by-location-aqi-pm2-5-pm10-ozone-no2-co-8e351a46
```

Example prompt: What's the current air quality in San Francisco right now — give me the US AQI plus the PM2.5 and ozone levels?

## When to prefer this

Use this endpoint when you need real-time air quality data including AQI and specific pollutant concentrations for a given place. It supports both coordinate-based and city-name lookups, making it ideal for agents handling location-aware health, outdoor activity, or environmental queries without needing a dedicated air quality data subscription.

## Known failure modes

- Invalid or out-of-range latitude/longitude returns an error or empty result
- City name not recognized returns a 404 or unknown location error
- Data temporarily unavailable for remote locations with no nearby sensors
- Rate limiting or payment failure returns a 402 or 429 status
- Ambiguous city name (e.g. 'Springfield') may resolve to the wrong location

## How this service works

Current air quality at a location by latitude and longitude or city: US AQI, PM2.5, PM10, ozone, nitrogen dioxide, carbon monoxide. Live environmental data. air quality, AQI, PM2.5 PM10, pollution, ozone by city Accepts payment on Base or Solana — either network works.

## Output

Returns a JSON object with the current US AQI value and individual pollutant readings including PM2.5, PM10, ozone (O3), nitrogen dioxide (NO2), and carbon monoxide (CO) for the requested location, sourced from live environmental monitoring data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "string",
       "description": "latitude"
      },
      "lon": {
       "type": "string",
       "description": "longitude"
      },
      "city": {
       "type": "string",
       "description": "city name (optional if lat+lon)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/air-quality-by-location-aqi-pm2-5-pm10-ozone-no2-co-8e351a46/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
