# Web Traffic Secondary-Measure Weighted Mean

> Web Traffic 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).

Calculates a secondary-measure weighted mean (e.g. conversions-weighted sessions) across up to 200 web traffic records grouped by channel and date.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-analytics-web-traffic-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/web-traffic-secondary-measure-weighted-mean-9cc01178
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jMoyA7bn2850oznGDcqwC

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 web-traffic-secondary-measure-weighted-mean-9cc01178 -d '<json body>'
```

Example prompt: I have web traffic data for two channels over the past week — compute the secondary-measure weighted mean of sessions (weighted by conversions) across these rows: group-a on 2026-10-01 had 10 sessions and 1 conversion, group-b on 2026-10-02 had 20 sessions and 2 conversions, group-a on 2026-10-03 had 15 sessions and 3 conversions, and group-b on 2026-10-04 had 30 sessions and 4 conversions.

## When to prefer this

Choose this endpoint when you have structured web traffic records with both sessions and conversions and need a statistically sound weighted average that accounts for traffic volume differences across channels or dates. Prefer this over simple arithmetic means when you want higher-traffic periods or channels to contribute proportionally more to the result.

## Known failure modes

- Empty or missing rows array returns validation error
- Row count exceeding 200 items rejected
- Invalid date format (not YYYY-MM-DD) causes schema validation failure
- Null values in both sessions and conversions may produce undefined weighted mean
- Missing required fields (row_id, channel, date) cause request rejection

## How this service works

Web traffic - Secondary-measure weighted mean: Secondary-measure weighted mean for Web traffic. 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

Returns a single weighted mean value computed from the supplied web traffic records, where one numeric field (sessions or conversions) is weighted by the other secondary measure across all provided rows.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web-traffic-secondary-measure-weighted-mean-9cc01178/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)
