# Air Quality Observations — String Normalisation + Secondary-Measure Weighted Mean

> Air Quality Observations — String Normalisation + Secondary-Measure Weighted Mean 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-31).

Normalises station group strings and computes observation-count-weighted mean concentrations across up to 200 air quality observation rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-weather-10-034?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/air-quality-observations-string-normalisation-secondary-measure-4a3d07b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_itFhPPBRURtkl9ghg4xv2

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-string-normalisation-secondary-measure-4a3d07b8 -d '<json body>'
```

Example prompt: I have a batch of air quality readings — can you normalise the station group names and compute the observation-count weighted mean concentration for these rows? Here are 4 records: row-1 on 2026-10-01 station group-a concentration 10 count 1, row-2 on 2026-10-02 station group-b concentration 20 count 2, row-3 on 2026-10-03 station group-a concentration 15 count 3, row-4 on 2026-10-04 station group-b concentration 30 count 4 — I want the weighted mean on the concentration field.

## When to prefer this

Choose this endpoint when you have a batch of air quality observation records (up to 200 rows) that need both string normalisation on station group labels AND a weighted mean computation in a single call. It is well-suited for lightweight, offline analytical preprocessing without any live data lookup, prediction, or external service dependency. Prefer it over general-purpose analytics tools when you want a low-cost ($0.01 USDC for two reports) turnkey solution scoped specifically to air quality observation schemas.

## Known failure modes

- Missing required fields (row_id, station_group, date, concentration, observation_count) cause validation errors
- Exceeding 200 rows returns an error or truncation
- Invalid date format (not YYYY-MM-DD) fails schema validation
- Null values in concentration or observation_count may affect weighted mean calculation
- Invalid enum value for field parameter (only 'concentration' or 'observation_count' accepted)
- Payment failure via x402 protocol results in no response

## How this service works

Air quality observations — String normalisation + Secondary-measure weighted mean: String normalisation + Secondary-measure weighted mean for supplied air quality observations records (concentration, observation_count). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.

## Output

Returns two analytical reports per call: (1) normalised/cleaned station_group string values for each input row, and (2) a secondary-measure weighted mean of the selected field (e.g. concentration) using observation_count as the weight, grouped or summarised across the supplied rows. Results are computed locally with no external lookups.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/air-quality-observations-string-normalisation-secondary-measure-4a3d07b8/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)
