# x402-data-bazaar Air Quality Index by ZIP Code

> x402-data-bazaar Air Quality Index by ZIP Code is a paid API for AI agents from x402-data-bazaar.vercel.app, paid per call via x402, $0.008/call, status down (last checked 2026-10-12).

Returns current AQI readings (PM2.5, ozone), overall category, dominant pollutant, and outdoor-activity guidance for a US ZIP code

## Facts

- Endpoint: GET https://x402-data-bazaar.vercel.app/api/air-quality/20002?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: down
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-data-bazaar-vercel-app-98c6d809
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bL3t4PChYqtKuqP_QGvqe

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 x402-data-bazaar-vercel-app-98c6d809
```

Example prompt: What's the air quality like right now in ZIP code 20002 — is it safe to go for a run outside, and should I be worried about PM2.5 or ozone?

## When to prefer this

Use this endpoint when you need real-time, US-specific air quality data keyed to a ZIP code, especially when you need actionable outdoor-activity guidance alongside raw AQI numbers. Prefer this over generic weather APIs when PM2.5, ozone, or health-risk context is the primary concern.

## Known failure modes

- Invalid or non-existent ZIP code returns an error or empty result
- ZIP code not covered by AirNow monitoring stations may return no data
- EPA AirNow API downtime may cause upstream failures
- Only US ZIP codes are supported — international postal codes will fail

## How this service works

Current air quality index (AQI) by US ZIP code -- PM2.5, ozone readings, category (Good/Moderate/Unhealthy), dominant pollutant, and outdoor-activity decision guidance. e.g. GET /api/air-quality/20002

## Output

Returns overall AQI score and category (e.g. Good/Moderate/Unhealthy), individual readings for PM2.5 and ozone each with their own AQI and category, the dominant pollutant, a risk level (low/moderate/high), whether a mask is recommended, and a plain-English outdoor activity guidance summary. Data is sourced from the EPA AirNow API.

## Response schema (JSON Schema)

```json
{
 "data": {
  "zip": "20002",
  "decision": {
   "summary": "Air quality is Good (AQI 39). Outdoor activity is generally safe for most people.",
   "riskLevel": "low",
   "maskRecommended": false,
   "outdoorGuidance": "Proceed with normal outdoor plans."
  },
  "readings": [
   {
    "aqi": 18,
    "category": "Good",
    "parameter": "O3"
   },
   {
    "aqi": 39,
    "category": "Good",
    "parameter": "PM2.5"
   }
  ],
  "overallAqi": 39,
  "overallCategory": "Good",
  "dominantPollutant": "PM2.5"
 },
 "source": "EPA AirNow API",
 "success": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-data-bazaar-vercel-app-98c6d809/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-bazaar.vercel.app](https://www.zero.xyz/host/x402-data-bazaar.vercel.app/llms.txt)
