{"uid":"cap_hV7ktcT6Xs-FEPwQQN5GA","slug":"one-engine-array-difference-d66f9fae","name":"ONE Engine Array Difference","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/array/difference/t6?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["values"],"properties":{"size":{"type":"integer"},"other":{"type":"array","description":"Optional comparison array"},"offset":{"type":"integer"},"values":{"type":"array","description":"JSON array with at most 1000 items"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dTH1Zxk5KCEcAbILMy9OW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the difference between two arrays, returning elements present in the first array but not in the second.","exampleAgentPrompt":"I have two lists of product IDs — take the first list [101, 102, 103, 104] and remove any IDs that appear in the second list [102, 104], then return what's left.","exampleUseCases":[{"title":"Deduplicating new user signups","prompt":"I have today's list of registered user IDs and a list of IDs we already have in our database — can you subtract the existing IDs from the new ones so I only see genuinely new signups?"},{"title":"Finding unprocessed job queue items","prompt":"Here's my full queue of task IDs and here's the list of tasks we've already completed — can you diff them and tell me which tasks still need to be processed?"},{"title":"Identifying missing product SKUs","prompt":"I have a master catalog of SKUs and a list of what's currently in stock — give me the difference so I know which SKUs are out of stock or missing from inventory."}],"resultDescription":"Returns a JSON object containing the array of elements present in the 'values' input array but absent from the 'other' comparison array, effectively the set difference (A minus B).","failureModes":["Input 'values' array exceeds 1000-item limit — request rejected","Missing required 'values' field — validation error returned","Malformed JSON body — parse error","Payment not included or insufficient — 402 Payment Required response","Non-array value passed for 'values' or 'other' — schema validation failure"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call array difference computation without spinning up your own infrastructure. It is ideal for autonomous agents operating on Base/x402 that need fast set subtraction on arrays up to 1000 items, and where a serverless utility call is cheaper than implementing custom logic. Prefer alternatives if you need difference on arrays larger than 1000 items, need symmetric difference, or require union/intersection operations instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:16.550Z","isFirstParty":false,"canonicalSlug":"one-engine-array-difference-777bd7ed"}