{"uid":"cap__1MNUi3j7FHt9-1H196VV","slug":"one-engine-array-difference-4023f998","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/t3?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.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_wrKCcqk_iPZU7msPk4b1H","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 arrays, returning elements in the input array that are not present in the comparison array.","exampleAgentPrompt":"Take my list [1, 2, 3, 4, 5] and remove any elements that also appear in [2, 4, 6] — give me back just the ones unique to my original list.","exampleUseCases":[{"title":"Filter already-processed IDs","prompt":"I have a list of user IDs I need to process, and another list of IDs already handled — give me back only the ones that haven't been processed yet by diffing these two arrays."},{"title":"Find missing SKUs in catalog","prompt":"Here's my master product SKU list and here's the list of SKUs that already exist in the database — tell me which SKUs from the master list are missing from the database."},{"title":"Deduplicate new entries against existing","prompt":"I have a new batch of email addresses to add and an existing subscriber list — return only the email addresses from the new batch that aren't already in the subscriber list."}],"resultDescription":"Returns a JSON object containing the array of elements from the 'values' input that do not appear in the 'other' comparison array. Supports pagination via size and offset parameters for large arrays up to 1000 items.","failureModes":["Input array exceeds 1000 items — request rejected","Missing required 'values' field — validation error","Malformed JSON array input — parse error","Payment not included or insufficient — 402 Payment Required","Network timeout on Cloudflare Worker edge"],"whenToPreferThis":"Use this endpoint when you need a simple, low-cost ($0.001 USDC) pay-per-call array difference computation without standing up your own infrastructure. Ideal for autonomous agents on Base using x402 payments that need lightweight set-subtraction logic as a utility step in a larger workflow, especially when the arrays are moderate in size (up to 1000 items).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:14.724Z","isFirstParty":false,"canonicalSlug":"one-engine-array-difference-777bd7ed"}