{"uid":"cap_E7eYpbluxI5jmuBuyzlLk","slug":"delx-commerce-json-array-difference-8a2fee3f","name":"Delx Commerce — JSON Array Difference","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-array-difference?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"left":{"type":"array","items":{"type":"integer"},"maxItems":256,"description":"Left supplied to JSON Array Difference; 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 Difference; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"count":2,"items":[1,3]},"schema":"delx/util-json-array-difference/v1","status":"pass","evidence":{"retained":false,"input_sha256":"dfa0bc27e93c4ecbb96000cad1ce90953df1aea4a2be0fa5caddbb32e50aa899","external_calls":0},"operation":"data_batch:json_array_difference"}},"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_etyzkpsbedzVLD1BG-CMK","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":"Computes the set difference between two integer arrays (elements in left but not in right), returning the count and items.","exampleAgentPrompt":"What integers are in [1, 2, 3, 4] but not in [2, 4]? Give me the set difference between those two arrays.","exampleUseCases":[{"title":"Deduplicating new user IDs against existing ones","prompt":"I have a list of incoming user IDs [101, 102, 103, 104] and an existing set [102, 104] — which IDs are genuinely new and not already in our system?"},{"title":"Finding unprocessed task IDs in a pipeline","prompt":"My job queue has tasks [5, 10, 15, 20, 25] and the completed tasks are [10, 20] — tell me which task IDs still need to be processed."},{"title":"Comparing product catalog updates","prompt":"I have an updated product list with IDs [200, 201, 202, 203] and my current catalog has [201, 203] — which product IDs are new additions I don't have yet?"}],"resultDescription":"Returns a JSON object with the set difference result: an array of integers present in 'left' but not in 'right', along with a count of those items, the operation schema identifier, a pass/fail status, and an evidence block containing a SHA-256 hash of the input and confirmation that no data was retained or external calls were made.","failureModes":["Array exceeds 256-item maxItems limit — request rejected","Non-integer values in arrays — schema validation failure","Missing 'left' or 'right' fields — malformed request error","Payment not provided or insufficient USDC — 402 payment required response"],"whenToPreferThis":"Use this endpoint when you need a simple, verifiable, pay-per-call set difference computation on integer arrays without requiring any account setup. Ideal for AI agents that need on-demand, auditable arithmetic operations with cryptographic proof of non-retention, especially in cost-sensitive or trustless contexts where USDC micropayments per result are acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:56.950Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-array-difference-8a2fee3f"}