# Energy Readings Two-Measure Correlation

> Energy Readings Two-Measure Correlation 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-19).

Computes the statistical correlation between kWh consumption and cost across up to 200 dated energy meter readings

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-analytics-energy-readings-correlation?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/energy-readings-two-measure-correlation-49712207
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h71i2GQo47bpH7W2fPcbT

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 energy-readings-two-measure-correlation-49712207 -d '<json body>'
```

Example prompt: Can you run a two-measure correlation between kWh and cost for my energy meter data? I have readings from meters group-a and group-b across dates 2026-10-01 through 2026-10-04 with up to 4 rows.

## When to prefer this

Choose this endpoint when you have structured energy meter records with both kWh and cost fields and need a fast, bounded statistical correlation between those two numeric measures. It is ideal for up to 200 rows of local numeric computation with no external dependencies. Prefer it over general-purpose stats APIs when you already have the data formatted with row_id, meter, date, kwh, and cost fields and want a single correlation deliverable at low cost ($0.01 USDC per call).

## Known failure modes

- Empty rows array or missing required fields (row_id, meter, date, kwh, cost) causes validation error
- Exceeding 200 rows returns a schema violation error
- Invalid date format (not YYYY-MM-DD) triggers pattern mismatch
- Numeric values outside ±1,000,000,000,000 bounds cause rejection
- Insufficient non-null numeric pairs may yield undefined or degenerate correlation result

## How this service works

Energy readings - Two-measure correlation: Two-measure correlation for Energy readings. 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 two-measure correlation deliverable.

## Output

Returns a bounded two-measure correlation deliverable quantifying the statistical relationship between kWh and cost values across the supplied energy meter records, including local numeric processing and data-quality indicators. No external enrichment or forecasting is applied.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/energy-readings-two-measure-correlation-49712207/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)
