# Air Quality Observations – Date by Category Pivot

> Air Quality Observations – Date by Category Pivot is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-19).

Pivots up to 200 air quality observation records by date and station category, returning a descriptive analytics table for PM2.5 or humidity.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ar-analytics-air-quality-observations-pivot?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/air-quality-observations-date-by-category-pivot-c1a74e06
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zBf_5MDTpz3DwhBF1vqKR

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 air-quality-observations-date-by-category-pivot-c1a74e06 -d '<json body>'
```

Example prompt: Pivot my air quality observation data by date and station — I have 4 records with station names, dates, and PM2.5 readings, and I want a date-by-station breakdown using PM2.5 as the pivot field.

## When to prefer this

Choose this endpoint when you have raw air quality observation records (up to 200 rows) with station identifiers and dates and need a quick local descriptive pivot table by date and category — no external enrichment, forecasting, or machine learning required. Prefer this over general analytics tools when you specifically need a bounded date-by-category cross-tab of PM2.5 or humidity for environmental monitoring or reporting workflows.

## Known failure modes

- Input array exceeds 200 rows — request will be rejected
- Missing required fields (row_id, station, date, pm25, humidity_percent) on any row causes validation failure
- Invalid date format (not YYYY-MM-DD) triggers pattern validation error
- Invalid field enum value (not 'pm25' or 'humidity_percent') causes rejection
- Empty rows array (minItems: 1 violated) returns an error
- Payment of 0.01 USDC not provided or insufficient funds causes x402 payment failure

## How this service works

Air quality observations - Date by category pivot: Date by category pivot for Air quality observations. Up to 200 supplied typed records. Local descriptive analytics; no enrichment or forecast. One of 25 new profiles across 20 shared operations in this industry. 0.01 USDC includes one bounded date by category pivot report.

## Output

A bounded date-by-category pivot report (up to 200 rows) showing the selected field (PM2.5 or humidity) aggregated by date and station category. The output is a descriptive analytics table — no forecasts or enrichment — suitable for identifying patterns and comparing values across station groups and time periods.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "station",
     "date",
     "pm25",
     "humidity_percent"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "pm25": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "station": {
      "type": "string",
      "default": "",
      "maxLength": 80
     },
     "humidity_percent": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "pm25": 10,
     "row_id": "row-1",
     "station": "group-a",
     "humidity_percent": 1
    },
    {
     "date": "2026-10-02",
     "pm25": 20,
     "row_id": "row-2",
     "station": "group-b",
     "humidity_percent": 2
    },
    {
     "date": "2026-10-03",
     "pm25": 15,
     "row_id": "row-3",
     "station": "group-a",
     "humidity_percent": 3
    },
    {
     "date": "2026-10-04",
     "pm25": 30,
     "row_id": "row-4",
     "station": "group-b",
     "humidity_percent": 4
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "pm25",
    "humidity_percent"
   ],
   "type": "string",
   "default": "pm25"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/air-quality-observations-date-by-category-pivot-c1a74e06/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
