# Shipment Costs Trailing Mean Series

> Shipment Costs Trailing Mean Series 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).

Computes a trailing (rolling) mean series over shipment cost or weight records grouped by carrier, returning smoothed time-series values for up to 200 rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-analytics-shipment-costs-rolling?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/shipment-costs-trailing-mean-series-cc91122c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sbK3lb1DpskJ8whziFWeE

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 shipment-costs-trailing-mean-series-cc91122c -d '<json body>'
```

Example prompt: Calculate a trailing mean series for my shipment cost data — I have 4 rows with carriers group-a and group-b dated 2026-10-01 through 2026-10-04 with shipping costs 1 through 4, and I want a rolling window of 3 on the shipping_cost field.

## When to prefer this

Choose this endpoint when you need a fast, local rolling/trailing mean computation on structured shipment records (up to 200 rows) without requiring external data enrichment or forecasting. Ideal for smoothing noisy cost or weight time-series data in logistics workflows where you control the input data and need a bounded, deterministic statistical series returned quickly at low cost ($0.01 USDC).

## Known failure modes

- Fewer than 1 row supplied — minimum item constraint violated
- Window size larger than number of rows — insufficient data for any mean calculation
- Invalid date format not matching YYYY-MM-DD pattern — schema validation error
- Numeric field values outside allowed range (±1 trillion) — rejected by schema
- More than 200 rows supplied — maxItems constraint exceeded
- Missing required fields (row_id, carrier, date, weight_kg, shipping_cost) — request rejected
- Payment not provided or insufficient — x402 payment required error

## How this service works

Shipment costs - Trailing mean series: Trailing mean series for Shipment costs. 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 trailing mean series deliverable.

## Output

Returns a bounded trailing mean series derived from the supplied shipment records, showing smoothed numeric values for the selected field (weight_kg or shipping_cost) computed over the specified rolling window, with one output value per record after the initial window is filled.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/shipment-costs-trailing-mean-series-cc91122c/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)
