# Air Quality Observations – Numeric Row Ordering

> Air Quality Observations – Numeric Row Ordering 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-15).

Sorts up to 200 air quality observation records by a chosen numeric field (PM2.5 or humidity) and returns a ranked row order with descriptive analytics.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ar-analytics-air-quality-observations-sort?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/air-quality-observations-numeric-row-ordering-b65bac59
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qXCECBcvA5VGLK6GQALPH

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-numeric-row-ordering-b65bac59 -d '<json body>'
```

Example prompt: Sort these 4 air quality readings by PM2.5: station Alpha on 2025-01-01 with PM2.5 12.5 and humidity 45, station Beta on 2025-01-01 with PM2.5 8.2 and humidity 60, station Gamma on 2025-01-02 with PM2.5 31.0 and humidity 55, station Delta on 2025-01-02 with PM2.5 19.7 and humidity 40 — rank them from lowest to highest PM2.5.

## When to prefer this

Choose this endpoint when you have a batch of up to 200 air quality observation records and need them sorted and ranked by either PM2.5 or humidity — purely as a local, self-contained analytic operation with no external data enrichment, forecasting, or cross-dataset joins required. It is ideal for quick descriptive ranking tasks within a bounded dataset.

## Known failure modes

- Empty or missing rows array returns validation error
- Row count exceeding 200 items rejected with maxItems error
- Invalid date format (not YYYY-MM-DD) triggers pattern validation failure
- Unrecognized field value outside enum ['pm25','humidity_percent'] returns error
- Null numeric values may affect sort ordering or produce warnings
- Missing required fields (row_id, station, date, pm25, humidity_percent) cause schema rejection

## How this service works

Air quality observations - Numeric row ordering: Numeric row ordering 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 numeric row ordering report.

## Output

Returns a numerically ordered ranking of the submitted air quality observation rows based on the chosen field (PM2.5 or humidity_percent), including local descriptive analytics such as ordering positions and summary statistics — no external enrichment or forecasting is applied.

## 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-numeric-row-ordering-b65bac59/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)
