# AgentRXI Air Quality History

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

Returns daily historical air pollution data (PM2.5, PM10, ozone, NO2, SO2, CO) for any location for up to 365 days, including US AQI, worst day, WHO exceedance count, and trend direction.

## Facts

- Endpoint: GET https://agentrxi.com/v1/airquality/history?utm_source=zero.xyz
- Price: $0.003/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-history-f0790253
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kn66z4X9Z7Y6-XGzwZ71M

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-history-f0790253
```

Example prompt: Can you pull the PM2.5 air quality history for Austin, Texas for the past 60 days and tell me whether it's been improving or worsening, and how many days exceeded the WHO guideline?

## When to prefer this

Choose this endpoint when you need historical daily air pollution data for a specific location over a customizable window up to one year, and want derived metrics like US AQI, WHO exceedance counts, and trend direction out of the box — rather than raw sensor feeds or real-time current readings.

## Known failure modes

- No nearby active monitor found for the given coordinates or place name
- Invalid or unrecognized place name returns an error
- Days parameter outside 1–365 range is rejected
- Unsupported pollutant parameter string returns an error
- Monitor data gap may result in fewer days than requested
- Payment failure or insufficient USDC balance blocks the call

## How this service works

Air pollution history for any place: daily average, min and max of PM2.5 (or PM10, ozone, NO2, SO2, CO) from the nearest active monitor for up to 365 days, with daily US AQI, worst day, days over the WHO guideline and an improving/worsening trend.

## Output

Returns a time-series of daily air pollution readings from the nearest active monitor: daily average, min, and max for the chosen pollutant (PM2.5 by default), daily US AQI value, identification of the worst day, count of days exceeding WHO guidelines, and an overall improving or worsening trend for the requested period.

## 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",
     "properties": {
      "lat": {
       "type": "number"
      },
      "lon": {
       "type": "number"
      },
      "days": {
       "type": "integer",
       "description": "1-365, default 30"
      },
      "near": {
       "type": "string",
       "description": "Place name"
      },
      "parameter": {
       "type": "string",
       "description": "pm25 (default), pm10, o3, no2, so2, co"
      }
     }
    }
   },
   "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-history-f0790253/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)
