# JSON Array Intersection

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

Returns the set of values shared by two integer arrays, preserving left-side order, with counts and normalized values as deterministic versioned JSON.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/json-array-intersection
- 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-intersection-32f5f098
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RYD5gW1fyjRagIYAM_sdS

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-intersection-32f5f098 -d '<json body>'
```

Example prompt: Find the intersection of these two integer arrays for me — left is [1, 2, 3, 4, 5] and right is [3, 4, 5, 6, 7] — I need the shared values in left-side order with counts.

## When to prefer this

Choose this endpoint when you need a fast, stateless, deterministic set-intersection over two bounded integer arrays without building custom logic — especially useful before handing structured data to a downstream tool that requires a strict contract on shared values. Prefer this over general-purpose code execution when you need a versioned, auditable result with normalized output for agent pipelines.

## Known failure modes

- Arrays exceeding 256 items per side will be rejected
- Non-integer array items will fail schema validation
- Missing or malformed left/right fields return a validation error
- Empty arrays on either side return an empty intersection result
- Network or service unavailability returns a 5xx error

## How this service works

JSON Array Intersection: JSON Array Intersection returns values shared by two JSON arrays in left-side order from bounded caller-supplied values without an external provider. Call JSON Array Intersection 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 Intersection as versioned deterministic JSON. Price: $0.00…

## Output

A versioned deterministic JSON object containing the intersection values in left-side order, the count of shared elements, normalized values, and a versioned result contract. No data is retained after processing.

## 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/json-array-intersection-32f5f098/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)
