# Delx Commerce JSON Depth Check

> Delx Commerce JSON Depth Check 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).

Checks the nesting depth of a JSON object and verifies whether it falls within a specified maximum depth budget

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-depth-check?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-depth-check-e0823f60
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0DLb49AB3_j76Gt9vfcfE

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-depth-check-e0823f60 -d '<json body>'
```

Example prompt: Check the depth of this JSON object and tell me if it's within a maximum depth of 5: {"a":{"b":{"c":{"d":1}}}}

## When to prefer this

Choose this endpoint when you need a lightweight, verifiable, pay-per-use utility to measure JSON nesting depth without setting up any authentication or account. It is ideal for agent workflows that occasionally need depth validation and want cryptographic proof (SHA-256 input hash) that the data was not retained, with no external calls made during processing. Prefer it over custom code when you need an auditable, third-party depth check with a guaranteed price of $0.001 USDC.

## Known failure modes

- Input JSON object exceeds 128 properties limit — returns validation error
- Missing or invalid 'value' field — returns schema error
- Non-integer 'maximum_depth' value — returns type error
- Malformed request body — returns 400-level error
- Payment not fulfilled via x402 — returns 402 Payment Required

## 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 containing the computed nesting depth of the input, a boolean indicating whether it falls within the specified maximum depth budget, a status field ('pass' or similar), an evidence block with a SHA-256 hash of the input and confirmation that no data was retained or external calls made, and a schema version identifier.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "object",
   "description": "Value supplied to JSON Depth Check; used only for this bounded calculation and processed in memory without retention.",
   "maxProperties": 128,
   "additionalProperties": true
  },
  "maximum_depth": {
   "type": "integer",
   "description": "Maximum Depth supplied to JSON Depth Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "depth": 3,
   "within_budget": true
  },
  "schema": "delx/util-json-depth-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "5e44e9f3ca3a7644d94366cd0375126198b9408327e0f22b573182f0b3a699d3",
   "external_calls": 0
  },
  "operation": "data_batch:json_depth_check"
 }
}
```

## More

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