{"uid":"cap_nywJUFUmHUshonenQs6h_","slug":"delx-commerce-set-difference-api-a0958889","name":"Delx Commerce Set Difference API","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/set-diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"array","description":"Input field: a."},"b":{"type":"array","description":"Input field: b."}}},"responseSchema":{"type":"json","example":{"count":2,"items":[1,3],"schema":"delx/util-set-diff/v1"}},"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_6ISyGgWOjrWepVaCnN_Mv","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 (elements in array A that are not in array B) and returns the unique items and count","exampleAgentPrompt":"Can you find all the items that are in my first list [1, 2, 3, 4, 5] but not in my second list [2, 4] — just give me the difference?","exampleUseCases":[{"title":"Find new customers since last week","prompt":"I have last week's customer ID list [101, 102, 103, 104] and today's full list [101, 102, 103, 104, 105, 106]. Which customer IDs are new this week — in today's list but not last week's?"},{"title":"Identify unassigned tasks in project","prompt":"Here are all the tasks in our sprint: ['design', 'build', 'test', 'deploy', 'review']. And here are the ones already assigned: ['build', 'test']. Which tasks still haven't been assigned to anyone?"},{"title":"Filter out already-seen recommendations","prompt":"I have a list of recommended products [42, 17, 88, 5, 63] and a list of products the user has already seen [17, 63]. Give me only the recommendations the user hasn't seen yet."}],"resultDescription":"Returns a JSON object containing the count of differing elements, an array of items present in array A but not in array B, and a schema identifier string ('delx/util-set-diff/v1') for verifying the response format.","failureModes":["Invalid or missing array inputs returns an error","Non-array types passed as inputs may cause a 400 error","Payment failure via x402 protocol results in a 402 response with payment details","Empty array A returns count 0 and empty items array","Large arrays may time out depending on server limits"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap ($0.001 USDC), pay-per-use set difference computation with no signup or account required. Ideal for AI agents that need to compute array differences programmatically as part of a workflow without spinning up custom code or using heavier data processing services. Best when you want verifiable, on-chain payment and guaranteed delivery via the x402 protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:45.383Z","isFirstParty":false,"canonicalSlug":"delx-commerce-set-difference-api-a0958889"}