{"uid":"cap_tIorxLqwrBb1Q6imQHQnW","slug":"one-engine-array-difference-a27cedb4","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/t4?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.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ylbDZRsJTRhxADthZ3_DI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","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":"Can you find which items from my first list [1, 2, 3, 4, 5] are NOT in my second list [2, 4, 6] — give me the difference array?","exampleUseCases":[{"title":"Deduplicating new product IDs","prompt":"I have a list of incoming product IDs [101, 102, 103, 104] and a list of IDs already in our catalog [102, 104]. Can you tell me which product IDs are new and not yet in the catalog?"},{"title":"Finding missing user permissions","prompt":"Here are the permissions a user should have: ['read', 'write', 'delete', 'admin'], and here are the ones they actually have: ['read', 'write']. What permissions are they missing?"},{"title":"Identifying unprocessed records","prompt":"I have a list of order IDs that came in today [5001, 5002, 5003, 5004, 5005] and a list of ones already processed [5002, 5004]. Which order IDs still need to be processed?"}],"resultDescription":"Returns a JSON object containing the computed difference — elements present in the 'values' array but absent from the 'other' comparison array. The result reflects any pagination applied via 'size' (max items) and 'offset' parameters.","failureModes":["Missing required 'values' field returns a validation error","Providing more than 1000 items in 'values' array exceeds the limit and may return an error","Malformed array input (non-array type) causes a schema validation failure","Payment not included or insufficient USDC causes HTTP 402 response","Network timeout on Cloudflare Workers edge"],"whenToPreferThis":"Prefer this endpoint when you need a lightweight, pay-per-call array difference computation without standing up your own infrastructure. Ideal for autonomous agents needing set subtraction on small-to-medium lists (up to 1000 items) at minimal cost ($0.0015 USDC). Choose this over general-purpose code execution when you want a simple, deterministic, no-setup utility callable directly via x402 micropayments on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:14.693Z","isFirstParty":false,"canonicalSlug":"one-engine-array-difference-777bd7ed"}