# Data Freshness Trailing Mean Series & Secondary-Measure Weighted Mean

> Data Freshness Trailing Mean Series & 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-18).

Computes a trailing mean series and a record-count-weighted mean for supplied data freshness records (age_minutes, record_count) across up to 200 rows, returning two independent analytical reports.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-analytics-06-151?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/data-freshness-trailing-mean-series-secondary-measure-weighted-mean-d097a622
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_L6PbwIpMHxMYDX81NrUv-

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 data-freshness-trailing-mean-series-secondary-measure-weighted-mean-d097a622 -d '<json body>'
```

Example prompt: Can you run a trailing mean series and a record-count-weighted mean on my data freshness records? I have about 50 rows with age_minutes and record_count by dataset group and date, and I want a window size of 7 days focused on the age_minutes field.

## When to prefer this

Choose this endpoint when you need both a smoothed rolling/trailing mean time series AND a weighted mean in a single API call for data freshness metrics (age_minutes and record_count). It is purpose-built for data quality and pipeline freshness analytics on batches up to 200 rows, with no external lookups or predictions involved. Prefer this over general-purpose stats APIs when your data is specifically structured around dataset group freshness monitoring.

## Known failure modes

- Fewer than 1 or more than 200 rows submitted — request rejected
- Invalid date format (not YYYY-MM-DD) — validation error
- Window size outside range 2–200 — validation error
- Null values in age_minutes or record_count may affect weighted mean calculation
- Field value not one of the allowed enum values (age_minutes, record_count) — schema error
- Missing required fields (row_id, dataset_group, date) — request rejected

## How this service works

Data freshness — Trailing mean series + Secondary-measure weighted mean: Trailing mean series + Secondary-measure weighted mean for supplied data freshness records (age_minutes, record_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

Two independent analytical reports: (1) a trailing mean series computed over the specified window for the chosen field (age_minutes or record_count), and (2) a record-count-weighted mean for the supplied data freshness rows — both derived from the user-supplied dataset without any live lookup or external data.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/data-freshness-trailing-mean-series-secondary-measure-weighted-mean-d097a622/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)
