# Delx Unique Sorted

> Delx Unique Sorted is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Deduplicates and sorts a JSON array, returning unique items in stable sorted order with a count

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/unique-sorted
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-unique-sorted-2dcbe58d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LJNaGIceXkmlyTYbawS_y

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-unique-sorted-2dcbe58d -d '<json body>'
```

Example prompt: Deduplicate and sort this list for me: ["banana", "apple", "cherry", "apple", "banana", "date"] — I need the unique items in stable sorted order with a count.

## When to prefer this

Choose this endpoint when you need a deterministic, stable, deduplicated and sorted version of a JSON array without any network lookups or external data retention — ideal for agent set math, canonical key normalization, or preflight deduplication steps at minimal cost ($0.001 USDC). Prefer it over client-side logic when you want a consistent, auditable transformation in a pipeline.

## Known failure modes

- Non-array input returns a validation error
- Empty array returns an empty sorted list with count 0
- Malformed JSON body causes a 400-level error
- Payment not submitted or insufficient USDC balance causes a 402 Payment Required response

## How this service works

Unique and sort a JSON list. Call when you need stable unique keys for agent set math. Returns sorted unique items and count for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns a sorted array containing only unique items from the input, plus an integer count of those unique items. No data is retained; processing is local and first-party only.

## 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-unique-sorted-2dcbe58d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
