# ONE Engine Array Difference (Top 10)

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

Returns the difference between two arrays — elements in the primary array not present in the comparison array — returning up to the top 10 results.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/array/difference/t10?utm_source=zero.xyz
- Price: $0.03/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-difference-top-10-9e798d4a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WOo3Vd35jghBJ2x8TQzMb

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-difference-top-10-9e798d4a -d '<json body>'
```

Example prompt: Find the difference between these two arrays — items in [1, 2, 3, 4, 5] that aren't in [3, 4, 5, 6, 7] — and give me up to 10 results.

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call set-difference computation on arrays of up to 1000 items without standing up your own infrastructure. Ideal for autonomous agents that need to compare two lists on-the-fly (e.g. filtering seen vs unseen IDs, removing blacklisted items) and want a paginated top-10 slice of results. Prefer this over local computation when the agent environment is stateless or constrained.

## Known failure modes

- Primary `values` array exceeds 1000 items — request rejected
- Malformed or non-array input for `values` or `other` — validation error
- Payment not included or insufficient — HTTP 402 returned
- Empty `values` array — returns empty difference result
- Network timeout on Cloudflare Worker edge

## How this service works

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

## Output

A JSON object containing an array of elements that appear in the primary `values` array but not in the `other` comparison array, limited to the top 10 results (paginated via offset).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "values"
 ],
 "properties": {
  "size": {
   "type": "integer"
  },
  "other": {
   "type": "array",
   "description": "Optional comparison array"
  },
  "offset": {
   "type": "integer"
  },
  "values": {
   "type": "array",
   "description": "JSON array with at most 1000 items"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-array-difference-top-10-9e798d4a/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)
