# API Contracts Secondary-Measure Weighted Mean and Keyed Dataset Comparison

> API Contracts Secondary-Measure Weighted Mean and Keyed Dataset Comparison 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-25).

Computes a secondary-measure weighted mean and performs a keyed dataset comparison on up to 200 API contract records with fields_checked and incompatible_fields metrics.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-software-19-186?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-25
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-contracts-secondary-measure-weighted-mean-and-keyed-dataset-cbf35bd5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_t2qcrlxZ8sPNICthK_jEo

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 api-contracts-secondary-measure-weighted-mean-and-keyed-dataset-cbf35bd5 -d '<json body>'
```

Example prompt: I have two sets of API contract records — a primary set and a comparison set — each with up to 200 rows including component names, dates, fields_checked, and incompatible_fields. Can you run a weighted mean on fields_checked and also compare the two datasets by key to highlight differences?

## When to prefer this

Choose this endpoint when you need simultaneous weighted mean computation and dataset comparison on API contract records in a single call. It is ideal for software teams tracking field compatibility across API versions, comparing two datasets of up to 200 rows each, and needing two analytical outputs (weighted mean + keyed diff) without external data lookups or predictions.

## Known failure modes

- Missing required fields (row_id, component, date, fields_checked, or incompatible_fields) causes validation error
- Exceeding 200 rows in either dataset returns an error
- Invalid date format (not YYYY-MM-DD) causes rejection
- Null values in numeric fields may affect weighted mean accuracy
- Mismatched row_ids between primary and comparison datasets may reduce comparison coverage

## How this service works

API contracts — Secondary-measure weighted mean + Keyed dataset comparison: Secondary-measure weighted mean + Keyed dataset comparison for supplied api contracts records (fields_checked, incompatible_fields). 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

Returns two analytical reports: (1) a weighted mean calculation for the selected secondary measure (fields_checked or incompatible_fields) across the supplied rows, and (2) a keyed dataset comparison highlighting differences between the primary and secondary datasets by row key, including per-component breakdowns.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-contracts-secondary-measure-weighted-mean-and-keyed-dataset-cbf35bd5/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)
