# Delx Commerce Percentile Calculator

> Delx Commerce Percentile 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 Nth percentile of a provided numeric dataset, returning the percentile value and sample count.

## Facts

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

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-percentile-calculator-cc4db7c4 -d '<json body>'
```

Example prompt: Calculate the 95th percentile of these response times in milliseconds: [120, 340, 210, 89, 450, 310, 670, 150, 280, 95] — I need the p95 value.

## When to prefer this

Choose this endpoint when you need a fast, pay-per-call percentile computation without account setup, especially inside an agent workflow that already handles x402 micropayments in USDC. Ideal for on-demand statistical analysis of numeric datasets up to 10,000 values, where reproducible, verifiable results and exact pricing matter.

## Known failure modes

- Empty array input — request rejected (minItems: 1 required)
- Array exceeds 10,000 items — request rejected (maxItems: 10000)
- Non-numeric values in array — parsing or validation error
- Percentile out of 0–100 range — validation error
- Payment failure or insufficient USDC balance — 402 payment required response

## 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 percentile value (`value`), the requested percentile rank (`p`), the count of input samples (`count`), and a schema identifier (`schema: 'delx/percentile/v1'`).

## 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."
  },
  "percentile": {
   "type": "number",
   "maximum": 100,
   "minimum": 0,
   "description": "Optional percentile in 0–100 (e.g. 95 for p95). Handler default when omitted."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "p": 50,
  "count": 5,
  "value": 6,
  "schema": "delx/percentile/v1"
 }
}
```

## More

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