{"uid":"cap_0DLb49AB3_j76Gt9vfcfE","slug":"delx-commerce-json-depth-check-e0823f60","name":"Delx Commerce JSON Depth Check","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/json-depth-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5hd4TmrlVikjPNr7RbRHD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks the nesting depth of a JSON object and verifies whether it falls within a specified maximum depth budget","exampleAgentPrompt":"Check the depth of this JSON object and tell me if it's within a maximum depth of 5: {\"a\":{\"b\":{\"c\":{\"d\":1}}}}","exampleUseCases":[{"title":"Validate API payload nesting before forwarding","prompt":"I'm about to send this nested JSON config to a downstream service that only accepts a maximum depth of 4 — can you confirm whether this object stays within that limit? {\"env\":{\"prod\":{\"db\":{\"host\":\"localhost\"}}}}"},{"title":"Guard against deeply nested user-submitted JSON","prompt":"A user just submitted this JSON and I want to make sure it's not deeply nested beyond 6 levels before I process it — run a depth check with maximum depth 6 on this: {\"level1\":{\"level2\":{\"level3\":{\"level4\":{\"level5\":{\"level6\":{\"level7\":\"deep\"}}}}}}}"},{"title":"Audit JSON schema depth for schema compliance","prompt":"Can you measure how deep this JSON schema object is nested? I need to know the actual depth and whether it's within my budget of 3 levels: {\"definitions\":{\"user\":{\"properties\":{\"address\":{\"type\":\"string\"}}}}}"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:38.294Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-depth-check-e0823f60"}