# Air Quality Observations – Grouped Numeric Summary

> Air Quality Observations – Grouped Numeric Summary 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-20).

Computes a grouped numeric summary (descriptive statistics) for up to 200 air quality observation records, segmented by station group, for a specified numeric field (PM2.5 or humidity).

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ar-analytics-air-quality-observations-group-summary?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/air-quality-observations-grouped-numeric-summary-5871b4c9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ym771kMWUEIUvftxlqJRd

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-grouped-numeric-summary-5871b4c9 -d '<json body>'
```

Example prompt: I have 4 air quality readings from two stations — station group-a had PM2.5 of 10 on 2026-10-01 and 15 on 2026-10-03, and group-b had 20 on 2026-10-02 and 30 on 2026-10-04 — can you give me a grouped numeric summary of the PM2.5 values by station?

## When to prefer this

Choose this endpoint when you have a batch of raw air quality observation records (up to 200) and need station-grouped descriptive statistics (mean, min, max, count, std dev) for either PM2.5 or humidity, without requiring any external enrichment, forecasting, or real-time data lookup. It is purpose-built for local, bounded analytics on pre-collected sensor data and is significantly cheaper than general-purpose analytics platforms.

## Known failure modes

- Fewer than 1 row supplied — request rejected with validation error
- More than 200 rows supplied — exceeds maxItems limit
- Invalid date format (not YYYY-MM-DD) — schema validation failure
- Missing required fields (row_id, station, date, pm25, humidity_percent) — schema error
- Field enum value not recognized (must be 'pm25' or 'humidity_percent') — validation error
- All numeric values null for selected field — summary may return empty or zero-count groups
- Payment not attached or insufficient — 402 Payment Required

## How this service works

Air quality observations - Grouped numeric summary: Grouped numeric summary 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 grouped numeric summary report.

## Output

A grouped descriptive analytics report broken down by station, showing numeric summary statistics (such as count, mean, min, max, and standard deviation) for the selected field (PM2.5 or humidity_percent) across each group present in the supplied records. No forecasting or external enrichment is included.

## 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-grouped-numeric-summary-5871b4c9/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)
