# ONE Engine Array Unique

> ONE Engine Array Unique is a paid API for AI agents from one-search.one-engine.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Removes duplicate values from a JSON array, returning only the unique elements and their count.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/array/unique?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/one-engine-array-unique-6eaf1f1d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5kOH5dKc6weP7xSf6UWyt

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 one-engine-array-unique-6eaf1f1d -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call deduplication operation on arrays of up to 1000 items within an autonomous agent workflow on Base. It is ideal for pipelines where spinning up custom code is impractical and where a frictionless $0.001 USDC micro-payment via x402 is preferable to managing a full data processing service. Best for simple scalar or mixed-type arrays rather than complex object deduplication.

## Known failure modes

- Array exceeds 1000-item limit — request rejected
- Malformed or non-array input in 'values' field — validation error
- Payment failure via x402 — 402 response before processing begins
- Empty array input — returns count 0 and empty values array

## How this service works

Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.

## Output

Returns a JSON object with two fields: 'count' (integer, the number of unique values) and 'values' (array containing only the distinct elements from the input, with duplicates removed).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "array",
   "description": "JSON array, maximum 1000 items"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "values": [
   1,
   2,
   3
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-array-unique-6eaf1f1d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from one-search.one-engine.workers.dev](https://www.zero.xyz/host/one-search.one-engine.workers.dev/llms.txt)
