# Delivery Timing Secondary-Measure Weighted Mean

> Delivery Timing 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 distance-weighted mean of delivery minutes (or distance) across up to 200 typed delivery records, grouped by route and date, using local numeric processing.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-analytics-delivery-timing-weighted-average?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/delivery-timing-secondary-measure-weighted-mean-19ecea87
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vtInimQt63DsYqpYZ4cKB

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 delivery-timing-secondary-measure-weighted-mean-19ecea87 -d '<json body>'
```

Example prompt: Calculate a distance-weighted mean of delivery_minutes for these 4 delivery records: route group-a on 2026-10-01 took 10 minutes over 1 km, group-b on 2026-10-02 took 20 minutes over 2 km, group-a on 2026-10-03 took 15 minutes over 3 km, and group-b on 2026-10-04 took 30 minutes over 4 km — weight the average by distance_km.

## When to prefer this

Choose this endpoint when you need a distance-weighted (or secondary-measure-weighted) average of delivery timing data across a bounded set of typed records (up to 200), with no need for external enrichment or forecasting. It is ideal for logistics analytics pipelines where local, reproducible numeric aggregation is required and you already have structured route/date/timing data ready to submit.

## Known failure modes

- Missing required fields (row_id, route, date, delivery_minutes, distance_km) cause validation errors
- More than 200 rows submitted returns a bounds error
- Null values in the weight field (distance_km) may produce undefined or skipped weighting behavior
- Invalid date format (non-YYYY-MM-DD) causes schema rejection
- All-null numeric fields result in no computable mean

## How this service works

Delivery timing - Secondary-measure weighted mean: Secondary-measure weighted mean for Delivery timing. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded secondary-measure weighted mean deliverable.

## Output

A single weighted mean value for the selected field (delivery_minutes or distance_km), computed by weighting each record's value by the secondary measure (distance_km or delivery_minutes respectively), across all submitted rows — returned as a numeric deliverable with data-quality processing applied locally.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delivery-timing-secondary-measure-weighted-mean-19ecea87/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)
