{"uid":"cap_Y472G3bjwJvx3Z3AMru5z","slug":"json-array-difference-3b39bac1","name":"JSON Array Difference","description":"JSON Array Difference: JSON Array Difference returns left-side values absent from the right JSON array from bounded caller-supplied values without an external provider. Call JSON Array Difference before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Array Difference as versioned deterministic JSON. Price: $0.001 USDC via…","url":"https://api.delx.ai/api/v1/x402/json-array-difference","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_UrztkYPA43WVLFCf3k06J","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 of two integer arrays, returning elements present in the left array but absent from the right array.","exampleAgentPrompt":"Can you find which numbers from my left array [1, 2, 3, 4, 5] are missing from my right array [2, 4, 6]?","exampleUseCases":[{"title":"Detecting missing IDs before batch upload","prompt":"I have a list of product IDs I want to submit: [101, 102, 103, 104, 105], and the downstream system already has [102, 104]. Can you figure out which IDs I still need to send?"},{"title":"Reconciling two sets of transaction codes","prompt":"My left list of transaction codes is [10, 20, 30, 40, 50] and the confirmed list is [20, 40]. Which codes from my left list haven't been confirmed yet?"},{"title":"Filtering fulfilled order items","prompt":"Here are the items I ordered: [7, 14, 21, 28, 35], and the fulfilled items are [14, 28]. Tell me which ordered items are still outstanding."}],"resultDescription":"Returns a versioned deterministic JSON object containing the array of integers present in the left input but absent from the right input, along with counts of differing elements and normalized values. The result is processed in-memory without data retention.","failureModes":["Input arrays exceed 256 items — request rejected","Non-integer values in arrays — schema validation failure","Malformed JSON body — 400 bad request","Payment not included or insufficient — 402 payment required","Empty arrays provided — returns empty difference with zero count"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, in-memory set difference computation on bounded integer arrays (up to 256 items each) without standing up your own compute or relying on a general-purpose code executor. Ideal for pre-flight checks before handing structured data to downstream tools with strict contracts, reconciliation tasks, or filtering already-processed IDs from a pending batch.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:14:48.156Z","isFirstParty":false}