# Delx Commerce — Percentage Calculation (pct-of)

> Delx Commerce — Percentage Calculation (pct-of) 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).

Calculates what percentage a 'part' value is of a 'whole' value, returning the numeric percentage result.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/pct-of?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-percentage-calculation-pct-of-e8b074ad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3ROEQqUUwQiy8NoXM2lve

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-percentage-calculation-pct-of-e8b074ad -d '<json body>'
```

Example prompt: What percentage is 1 out of 4? I need the exact numeric percent value.

## When to prefer this

Choose this endpoint when an AI agent needs a quick, verifiable, pay-per-use arithmetic percentage calculation without requiring signup or account management. It is ideal for lightweight automation workflows needing trustless, on-chain-paid utility math. Prefer it over building custom logic when you need auditable, micropayment-gated computation with no infrastructure overhead.

## Known failure modes

- Missing 'part' or 'whole' fields returns a validation error
- Passing 0 as the 'whole' value may cause a division-by-zero error or undefined result
- Non-integer inputs may be rejected per schema
- Payment failure via x402 protocol blocks the request before computation
- Network or service unavailability returns a 402 or 5xx 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 original 'part' and 'whole' inputs echoed back, a schema identifier string ('delx/util-pct-of/v1'), and a 'percent' number representing what percentage the part is of the whole (e.g. part=1, whole=4 → percent=25).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "part": {
   "type": "integer",
   "description": "Input field: part."
  },
  "whole": {
   "type": "integer",
   "description": "Input field: whole."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "part": 1,
  "whole": 4,
  "schema": "delx/util-pct-of/v1",
  "percent": 25
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-percentage-calculation-pct-of-e8b074ad/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)
