# Delx Commerce — Arithmetic Mean Calculator

> Delx Commerce — Arithmetic Mean Calculator is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Computes the arithmetic mean (average) of a list of up to 10,000 numeric values, returning the result with count metadata.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/mean?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-arithmetic-mean-calculator-a5f8b947
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PJLkrj-2En9tKpHn57lOX

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 delx-commerce-arithmetic-mean-calculator-a5f8b947 -d '<json body>'
```

Example prompt: Calculate the mean of these numbers for me: 4, 8, 15, 16, 23, 42.

## When to prefer this

Choose this endpoint when you need a simple, pay-per-use arithmetic mean computation without setting up a data science library or service, especially in agent workflows that already use x402 micropayments on Base or Solana. Ideal for lightweight statistical summarization of up to 10k numeric samples with verifiable delivery and no signup overhead.

## Known failure modes

- Empty array input returns an error (minItems: 1 required)
- Array exceeding 10,000 elements is rejected (maxItems: 10000 cap)
- Non-numeric values in array cause validation failure
- Payment failure via x402 prevents endpoint access
- Malformed JSON body returns a 400-level error

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with the computed arithmetic mean as a number, the count of values processed, and a schema identifier ('delx/mean/v1') for verifiable result provenance.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "maxItems": 10000,
   "minItems": 1,
   "description": "Numeric samples for stats tools (mean/median/stdev/percentile). Cap 10k numbers."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mean": 6,
  "count": 5,
  "schema": "delx/mean/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-arithmetic-mean-calculator-a5f8b947/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
