# Delx Commerce — Array Unique (arr-uniq)

> Delx Commerce — Array Unique (arr-uniq) 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 values from an array and returns the deduplicated list with a count, paid per-call via USDC microtransaction.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/arr-uniq?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-array-unique-arr-uniq-5e09d06b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X3Zye6K2SuApzy3pBmh4K

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-array-unique-arr-uniq-5e09d06b -d '<json body>'
```

Example prompt: Can you deduplicate this list for me and tell me how many unique items there are: [1, 2, 2, 3, 3, 3, 4]?

## When to prefer this

Choose this endpoint when you need a simple, trustless, pay-per-call array deduplication with no signup or API key overhead, especially in agent pipelines that already use x402/USDC microtransactions on Base or Solana. It's ideal for lightweight data-cleaning steps inside automated workflows where you want verifiable, metered utility calls rather than spinning up your own deduplication logic.

## Known failure modes

- Missing or non-array 'items' field — likely returns a 4xx validation error
- Empty array input — returns count 0 and empty items array
- Payment failure via x402 — returns HTTP 402 if USDC payment is not accepted
- Malformed JSON body — returns 400 bad request
- Network timeout — transient 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 with three fields: 'items' (the deduplicated array), 'count' (the number of unique items), and 'schema' (a version identifier string 'delx/util-arr-uniq/v1'). Payment is processed via x402 protocol in USDC on Base or Solana at $0.001 per call.

## 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-arr-uniq/v1"
 }
}
```

## More

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