# AgentRXI Air Quality City Comparison

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

Compares current air quality across 2–8 cities, returning US AQI, category, PM2.5, PM10, ozone, and NO2 ranked from cleanest to most polluted.

## Facts

- Endpoint: GET https://agentrxi.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/agentrxi-air-quality-city-comparison-036da934
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hD-R3XKGKfM3Rcw_TZl0i

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 agentrxi-air-quality-city-comparison-036da934
```

Example prompt: Can you compare the current air quality across Los Angeles, New York, Chicago, and Denver — show me the AQI, PM2.5, ozone, and NO2 for each and rank them from cleanest to most polluted?

## When to prefer this

Choose this endpoint when you need to compare real-time air quality across multiple cities simultaneously (2–8) with multi-pollutant granularity (PM2.5, PM10, ozone, NO2). It is ideal for travel planning, relocation research, or health-conscious city comparisons. Prefer it over single-city weather APIs that include only basic AQI or over general weather endpoints that do not break down individual pollutants.

## Known failure modes

- Fewer than 2 or more than 8 cities provided — request rejected
- City name not recognized or no active monitor nearby — city may be omitted or return null values
- Pipe separator missing between city names — malformed query
- Monitor data temporarily unavailable for a city — partial results returned
- Network timeout from upstream monitor data source

## 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

Returns a ranked list of cities (cleanest to most polluted) each with: US AQI score, AQI category (e.g. Good, Moderate, Unhealthy), PM2.5 concentration, PM10 concentration, ozone level, and NO2 level sourced from the nearest active air quality 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/agentrxi-air-quality-city-comparison-036da934/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
