# Delx Commerce Median Calculator

> Delx Commerce Median 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 median value of a submitted array of up to 10,000 numeric samples, returning the result with count and schema identifier.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/median?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-median-calculator-b4ad4e67
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lo1MvgdiFAgk263GuIXhh

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-median-calculator-b4ad4e67 -d '<json body>'
```

Example prompt: Calculate the median of these numbers for me: [3, 7, 2, 9, 6, 1, 8, 4, 5].

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use median calculation without signing up for a full statistical service. It is ideal for agents that need verifiable, on-demand numeric statistics with USDC micropayment settlement on Base or Solana, especially when handling up to 10,000 data points and wanting exact, auditable pricing per call.

## Known failure modes

- Empty array submitted — requires at least 1 value
- Array exceeds 10,000 items limit — request rejected
- Non-numeric values in array — schema validation failure
- Payment failure via x402 — 402 response returned before computation
- Malformed JSON body — 400 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 containing the computed median value, the count of input numbers processed, and a schema identifier string ('delx/median/v1') for result verification.

## 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": {
  "count": 5,
  "median": 6,
  "schema": "delx/median/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-median-calculator-b4ad4e67/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)
