# Membership Activity Secondary-Measure Weighted Mean

> Membership Activity 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-15).

Computes a secondary-measure weighted mean (e.g. members weighted by renewals) across up to 200 membership activity records, grouped by tier and date.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-analytics-membership-weighted-average?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/membership-activity-secondary-measure-weighted-mean-13aa6452
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9Y8KqkgdNtJ6djJK_taG9

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 membership-activity-secondary-measure-weighted-mean-13aa6452 -d '<json body>'
```

Example prompt: Calculate the renewals-weighted mean of member counts for these membership records: row-1 on 2026-10-01 tier group-a with 10 members and 1 renewal, row-2 on 2026-10-02 tier group-b with 20 members and 2 renewals, row-3 on 2026-10-03 tier group-a with 15 members and 3 renewals — use members as the target field.

## When to prefer this

Choose this endpoint when you need a statistically sound weighted mean for membership activity data — specifically when one membership metric (e.g. member count) should be averaged with another metric (e.g. renewals) serving as the weight. Ideal for subscription analytics, churn reporting, and tier-level aggregation with up to 200 records processed locally without external enrichment.

## Known failure modes

- Missing required fields (row_id, tier, date, members, renewals) returns validation error
- More than 200 rows submitted exceeds maxItems limit
- Invalid date format (not YYYY-MM-DD) fails pattern validation
- Non-numeric values in members or renewals fields cause type errors
- Empty rows array (minItems:1 violated) returns error
- Invalid field enum value (not 'members' or 'renewals') rejected

## How this service works

Membership activity - Secondary-measure weighted mean: Secondary-measure weighted mean for Membership activity. 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 membership activity records, where one numeric field (members or renewals) is averaged using the other as the weight, across up to 200 typed rows with tier and date dimensions.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/membership-activity-secondary-measure-weighted-mean-13aa6452/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)
