# Delx Commerce — JSON Array Intersection

> Delx Commerce — JSON Array Intersection 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).

Computes the intersection of two integer arrays, returning shared elements and their count, with cryptographic evidence of no data retention.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-array-intersection?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-intersection-6554ebb8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nSTL5u4Ngp20zyWvlr-Wn

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-intersection-6554ebb8 -d '<json body>'
```

Example prompt: Find the common integers between these two lists: [1, 2, 3, 4, 5] and [2, 3, 6, 7] — I need the shared values and how many there are.

## When to prefer this

Choose this endpoint when you need a trustless, verifiable set intersection computation on two integer arrays with cryptographic proof of no data retention — ideal for privacy-sensitive agent workflows or when auditability of the computation is required. At $0.001 USDC per call with no signup, it suits lightweight agent pipelines that need deterministic utility math without spinning up infrastructure.

## Known failure modes

- Arrays exceeding 256 items will be rejected
- Non-integer array elements will fail schema validation
- Missing 'left' or 'right' fields will cause a bad request error
- Payment failure via x402 will prevent execution
- Malformed JSON body will return a parse error

## 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 with the intersection items as an integer array, the count of shared elements, a status field ('pass'), and an evidence block confirming no data was retained (retained: false), the SHA-256 hash of the input, and that zero external calls were made. Schema is labeled 'delx/util-json-array-intersection/v1'.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "count": 2,
   "items": [
    2,
    3
   ]
  },
  "schema": "delx/util-json-array-intersection/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "3935c5e3bdec4177763cd3e7cf434284e8981e33d97a90a0407de0251171a40d",
   "external_calls": 0
  },
  "operation": "data_batch:json_array_intersection"
 }
}
```

## More

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