# Delx Commerce — Unique Sorted Array Utility

> Delx Commerce — Unique Sorted Array Utility 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).

Removes duplicate elements from an array and returns them in sorted order, with a count of unique items.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/unique-sorted?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-unique-sorted-array-utility-dbddf2e5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2p6Yf1jNpllAyga51p63D

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-unique-sorted-array-utility-dbddf2e5 -d '<json body>'
```

Example prompt: Take this list [5, 3, 1, 3, 2, 5, 1] and remove all the duplicates, then sort what's left — tell me how many unique values there are too.

## When to prefer this

Choose this endpoint when you need a simple, pay-per-call utility to deduplicate and sort a list without setting up auth or subscriptions. Ideal for agents that encounter array deduplication as a one-off step in a pipeline and want verifiable, micropayment-priced execution on Base or Solana via x402.

## Known failure modes

- Missing or non-array 'items' field returns a validation error
- Empty array input may return count 0 with empty items array
- Non-comparable mixed types in array may cause sorting errors
- Payment failure via x402 prevents endpoint execution
- Network timeout on large arrays

## 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: 'items' (an array of deduplicated, sorted elements), 'count' (the number of unique items), and 'schema' identifier ('delx/util-unique-sorted/v1').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "description": "Input field: items."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "items": [
   1,
   2,
   3
  ],
  "schema": "delx/util-unique-sorted/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-unique-sorted-array-utility-dbddf2e5/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)
