# Environment Screen Air Quality History

> Environment Screen Air Quality History is a paid API for AI agents from environment-screen.x402tookit.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-02).

Returns daily mean PM2.5, PM10, ozone, NO2, and US AQI values over a date range plus a count of days exceeding a given AQI threshold.

## Facts

- Endpoint: GET https://environment-screen.x402tookit.com/air-quality-history?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/environment-screen-air-quality-history-11aaa6f7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B1SkAH8DyI5ILElMkCfCe

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 environment-screen-air-quality-history-11aaa6f7
```

Example prompt: Can you pull the daily air quality history for Los Angeles (34.05, -118.24) from January 1 to March 31, 2024, and tell me how many days the US AQI exceeded 100?

## When to prefer this

Use this endpoint when you need historical air quality trends over a multi-day period (up to 92 days) for a specific geographic coordinate, including daily breakdowns of multiple pollutants (PM2.5, PM10, ozone, NO2) and a threshold-based day count. Prefer it over current-conditions endpoints when the user needs retrospective analysis, trend data, or exposure assessment over time rather than a real-time snapshot.

## Known failure modes

- Missing required parameters (lat, lon, start, end) returns a 400 error
- Date range exceeding 92 days returns an error
- Start date before 2013 may return no data or an error
- Invalid coordinate values outside valid lat/lon bounds may fail
- Network or upstream data provider unavailability may return degraded or null fields
- Payment failure (x402) returns a 402 Payment Required response

## How this service works

Daily mean PM2.5, PM10, ozone, NO2 and US AQI over a date range, plus the count of days above an AQI threshold.

## Output

Returns a structured object containing: daily records with PM2.5 mean, PM10 mean, ozone mean, NO2 mean, US AQI mean and max; summary statistics (mean PM2.5, PM10, ozone, US AQI across the period); the worst day by max AQI; the count of days exceeding the specified AQI threshold; a text summary and verdict; data source URL; and a degraded flag if data quality is reduced.

## 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",
      "lon",
      "start",
      "end"
     ],
     "properties": {
      "end": {
       "type": "string",
       "description": "Last day, YYYY-MM-DD, at most 92 days after start"
      },
      "lat": {
       "type": "number",
       "description": "Latitude"
      },
      "lon": {
       "type": "number",
       "description": "Longitude"
      },
      "start": {
       "type": "string",
       "description": "First day, YYYY-MM-DD (2013 onward)"
      },
      "threshold": {
       "type": "integer",
       "description": "US AQI level to count days above (default 100, range 0-500)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "end": {
       "type": [
        "null",
        "string"
       ]
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "daily": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "date": {
          "type": [
           "null",
           "string"
          ]
         },
         "hours": {
          "type": [
           "null",
           "number"
          ]
         },
         "pm10Mean": {
          "type": [
           "null",
           "number"
          ]
         },
         "usAqiMax": {
          "type": [
           "null",
           "number"
          ]
         },
         "ozoneMean": {
          "type": [
           "null",
           "number"
          ]
         },
         "pm2_5Mean": {
          "type": [
           "null",
           "number"
          ]
         },
         "usAqiMean": {
          "type": [
           "null",
           "number"
          ]
         },
         "nitrogenDioxideMean": {
          "type": [
           "null",
           "number"
          ]
         }
        }
       }
      },
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/environment-screen-air-quality-history-11aaa6f7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from environment-screen.x402tookit.com](https://www.zero.xyz/host/environment-screen.x402tookit.com/llms.txt)
