# Delx Commerce — JSON Array Dedupe

> Delx Commerce — JSON Array Dedupe 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 integers from a JSON array and returns the deduplicated list with a count of removed items, processed in-memory without data retention.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-array-dedupe?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-json-array-dedupe-d35e561f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jYys9iB2-xVpglWdhh9VR

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-json-array-dedupe-d35e561f -d '<json body>'
```

Example prompt: Can you deduplicate this list of integers for me — [4, 7, 2, 7, 4, 9, 2, 1] — and tell me how many duplicates were removed?

## When to prefer this

Choose this endpoint when you need a lightweight, privacy-preserving, verifiable deduplication of an integer array (up to 256 items) without signing up for a service. Ideal for AI agents that need transparent, pay-per-call utility operations with cryptographic evidence of in-memory-only processing. Prefer it over general-purpose code execution when auditability and no data retention are priorities.

## Known failure modes

- Array exceeds 256 items — rejected with validation error
- Non-integer values in the array — schema validation failure
- Malformed JSON body — request parsing error
- Payment not included or invalid — 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 containing the deduplicated integer array under `result.items`, the count of removed duplicates as `result.removed_count`, the operation name, a status of `pass`, and a verifiable evidence block including whether data was retained (always false), the SHA256 hash of the input, and the number of external calls made (always 0).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {
    "type": "integer"
   },
   "maxItems": 256,
   "description": "Items supplied to JSON Array Dedupe; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "items": [
    1,
    2,
    3
   ],
   "removed_count": 1
  },
  "schema": "delx/util-json-array-dedupe/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "3c42996d5af9c5b6946b4d3a9f46200e1fc9c64301af9df720d1d5348499b73c",
   "external_calls": 0
  },
  "operation": "data_batch:json_array_dedupe"
 }
}
```

## More

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