# JSON Array Dedupe

> JSON Array Dedupe 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-15).

Removes duplicate values from a JSON integer array, preserving the first occurrence of each unique value and returning counts and normalized results.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/json-array-dedupe
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-array-dedupe-0aaf7a94
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NC5Whp7EpFpP3Up_0OwOS

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

Example prompt: Can you deduplicate this list of integers for me — [3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5] — and give me back only the unique values in their first-occurrence order?

## When to prefer this

Use this endpoint when an agent needs a lightweight, stateless, pay-per-call deduplication of integer arrays (up to 256 items) before handing structured data to a downstream tool with a strict contract. Prefer it over custom deduplication logic when you need a versioned, auditable result contract with counts included in the response.

## Known failure modes

- Array exceeds 256-item maximum — request rejected
- Non-integer values in the array — schema validation failure
- Empty array input — may return empty result or validation error
- Malformed JSON body — parse error response
- Payment not included or insufficient — 402 Payment Required

## How this service works

JSON Array Dedupe: JSON Array Dedupe removes duplicate JSON array values while preserving first occurrence from bounded caller-supplied values without an external provider. Call JSON Array Dedupe before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Array Dedupe as versioned deterministic JSON. Price: $0.001 USDC via x40…

## Output

Returns a versioned deterministic JSON object containing the deduplicated integer array (preserving first-occurrence order), counts of unique vs. duplicate values, and normalized output conforming to a versioned result contract.

## 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/json-array-dedupe-0aaf7a94/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)
