# EPA AirNow Air Quality Index (AQI) Lookup

> EPA AirNow Air Quality Index (AQI) Lookup is a paid API for AI agents from x402-seller.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns current U.S. AQI readings near given coordinates sourced from the EPA AirNow federal monitoring program

## Facts

- Endpoint: GET https://x402-seller.onrender.com/air/quality
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/epa-airnow-air-quality-index-aqi-lookup-2d09cbab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8vRr9ZatjkJuA3tyUx3Ce

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 epa-airnow-air-quality-index-aqi-lookup-2d09cbab
```

Example prompt: What's the current EPA AirNow air quality index near latitude 34.0522, longitude -118.2437? I want to know if it's safe to go for a run outside.

## When to prefer this

Use this endpoint when you need real-time, federally-sourced AQI data for a specific geographic point within the US, Canada, or Mexico. It is backed by the official EPA AirNow network (federal, state, local, and tribal agencies), making it authoritative for public health awareness use cases — though not suitable for regulatory or enforcement decisions due to preliminary/unvalidated data status.

## Known failure modes

- Coordinates outside US/Canada/Mexico coverage area return no data or an error
- No monitoring stations near given coordinates may return empty readings array
- Stale or missing data when EPA AirNow feed is delayed
- Invalid lat/lng format (e.g. non-numeric strings) causes a 400-level error
- Service downtime on Render hosting platform returns 5xx error

## How this service works

Current U.S. EPA Air Quality Index (AQI) and pollution levels for a specific location, given latitude/longitude — use to check smog, air pollution, or whether it's safe to be outside. Sourced from the EPA AirNow program (federal/state/local/tribal agencies); covers the US, Canada, and Mexico only. Data is preliminary and unvalidated per EPA data use guidelines — not for regulatory use.

## Output

Returns a JSON object with the current AQI readings array (pollutant-level data), reporting area name, state code, date, hour of measurement, data source, attribution string, and a preliminary boolean flag indicating the data is unvalidated per EPA guidelines.

## 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",
      "lng"
     ],
     "properties": {
      "lat": {
       "type": "string",
       "description": "Latitude"
      },
      "lng": {
       "type": "string",
       "description": "Longitude"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "date": {
       "type": "string"
      },
      "hour": {
       "type": "number"
      },
      "source": {
       "type": "string"
      },
      "readings": {
       "type": "array"
      },
      "stateCode": {
       "type": "string"
      },
      "attribution": {
       "type": "string"
      },
      "preliminary": {
       "type": "boolean"
      },
      "reportingArea": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/epa-airnow-air-quality-index-aqi-lookup-2d09cbab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller.onrender.com](https://www.zero.xyz/host/x402-seller.onrender.com/llms.txt)
