# Citiview Air Quality City Comparison

> Citiview Air Quality City Comparison is a paid API for AI agents from agents.citiviewgroup.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-15).

Compare current air quality (US AQI, PM2.5, PM10, ozone, NO2) across 2–8 cities, ranked cleanest to most polluted.

## Facts

- Endpoint: GET https://agents.citiviewgroup.com/v1/airquality/compare?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/citiview-air-quality-city-comparison-5c9492a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S6Wyf7Q2NsGY3k6l1rjcK

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 citiview-air-quality-city-comparison-5c9492a9
```

Example prompt: Compare the current air quality in New York, Los Angeles, Chicago, and Denver — I want to see AQI, PM2.5, and how they rank from cleanest to most polluted.

## When to prefer this

Choose this endpoint when you need a side-by-side multi-city air quality comparison with US AQI and detailed pollutant breakdowns (PM2.5, PM10, ozone, NO2) in a single call. It is ideal for relocation decisions, travel planning, or environmental research where ranking cities by pollution level matters. Prefer it over single-city endpoints when comparing 2–8 locations simultaneously.

## Known failure modes

- Fewer than 2 or more than 8 cities provided — returns validation error
- City name not recognized or no active monitor nearby — that city may be omitted or flagged
- Monitor data temporarily unavailable for a location — partial results returned
- Malformed places string (wrong separator) — returns bad request error
- Network timeout from upstream air quality data source — service unavailable error

## How this service works

Compare current air quality across 2-8 cities: US AQI, category, PM2.5, PM10, ozone and NO2 from the nearest active monitors, ranked cleanest to most polluted.

## Output

A ranked list of 2–8 cities ordered from cleanest to most polluted, each with US AQI value and category (e.g. Good, Moderate), plus pollutant readings for PM2.5, PM10, ozone, and NO2 sourced from the nearest active monitors.

## 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": [
      "places"
     ],
     "properties": {
      "places": {
       "type": "string",
       "description": "2-8 places separated by |"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/citiview-air-quality-city-comparison-5c9492a9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.citiviewgroup.com](https://www.zero.xyz/host/agents.citiviewgroup.com/llms.txt)
