# ONE Engine Array Difference

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

Computes the difference between two arrays, returning elements present in the first array but not in the second.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/array/difference/t4?utm_source=zero.xyz
- Price: $0.0015/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-a27cedb4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tIorxLqwrBb1Q6imQHQnW

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-a27cedb4 -d '<json body>'
```

Example prompt: Can you find which items from my first list [1, 2, 3, 4, 5] are NOT in my second list [2, 4, 6] — give me the difference array?

## When to prefer this

Prefer this endpoint when you need a lightweight, pay-per-call array difference computation without standing up your own infrastructure. Ideal for autonomous agents needing set subtraction on small-to-medium lists (up to 1000 items) at minimal cost ($0.0015 USDC). Choose this over general-purpose code execution when you want a simple, deterministic, no-setup utility callable directly via x402 micropayments on Base.

## Known failure modes

- Missing required 'values' field returns a validation error
- Providing more than 1000 items in 'values' array exceeds the limit and may return an error
- Malformed array input (non-array type) causes a schema validation failure
- Payment not included or insufficient USDC causes HTTP 402 response
- Network timeout on Cloudflare Workers edge

## How this service works

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

## Output

Returns a JSON object containing the computed difference — elements present in the 'values' array but absent from the 'other' comparison array. The result reflects any pagination applied via 'size' (max items) and 'offset' parameters.

## 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-a27cedb4/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)
