# Delx Commerce — Set Intersection

> Delx Commerce — Set 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 arrays, returning the common elements and their count

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/set-intersect?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-set-intersection-9725291a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__FUXahLvMUIYgTHy0NOvR

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-set-intersection-9725291a -d '<json body>'
```

Example prompt: Find the common elements between these two lists: [1, 2, 3, 4] and [2, 4, 6, 8].

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use set intersection computation without standing up your own infrastructure, especially in agent workflows using x402 micropayments on Base or Solana. It is ideal for lightweight utility operations where no signup or API key is required.

## Known failure modes

- Missing or non-array inputs for 'a' or 'b' fields returns an error
- Empty arrays return count 0 and empty items array
- Payment failure or insufficient USDC balance blocks request
- Malformed JSON body results in 400 error

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the count of intersecting elements and an array of the items present in both input arrays, tagged with schema identifier 'delx/util-set-intersect/v1'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "array",
   "description": "Input field: a."
  },
  "b": {
   "type": "array",
   "description": "Input field: b."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "items": [
   2
  ],
  "schema": "delx/util-set-intersect/v1"
 }
}
```

## More

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