# OpenAPI Path Diff Lite

> OpenAPI Path Diff Lite 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).

Diffs path keys between two OpenAPI path maps, returning added, removed, and common route counts as deterministic JSON.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/openapi-path-diff
- 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/openapi-path-diff-lite-bf2a6ee3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ulMiMFbpM2-jnRiasGBy6

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 openapi-path-diff-lite-bf2a6ee3 -d '<json body>'
```

Example prompt: Compare these two OpenAPI path maps and tell me which routes were added, which were removed, and how many are in common — here's paths_a with my old spec routes and paths_b with the new ones.

## When to prefer this

Use this endpoint when you need a fast, deterministic, zero-dependency comparison of OpenAPI route keys — no API keys, no external calls, no storage side effects. Prefer it over full OpenAPI diff tools when you only care about path key changes (added/removed routes), not schema-level diffs, and when you want a cheap ($0.001 USDC), reproducible result suitable for CI pipelines or agent workflows.

## Known failure modes

- Missing or malformed paths_a / paths_b objects result in a validation error
- Non-object values for either paths map will be rejected
- Payment not provided or rejected by x402 protocol returns a 402 response
- Empty path maps produce empty added/removed arrays with common_count of 0

## How this service works

Diff path keys between two OpenAPI path maps. Call when detecting added/removed routes between specs. Returns added, removed, common_count as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

A deterministic JSON object with three fields: 'added' (array of route paths present in paths_b but not paths_a), 'removed' (array of route paths present in paths_a but not paths_b), and 'common_count' (integer count of routes present in both maps).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "paths_a": {
   "type": "object",
   "description": "OpenAPI paths map A"
  },
  "paths_b": {
   "type": "object",
   "description": "OpenAPI paths map B"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "added": [
   "/c"
  ],
  "schema": "delx/util-openapi-path-diff/v1",
  "removed": [
   "/a"
  ],
  "common_count": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openapi-path-diff-lite-bf2a6ee3/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)
