{"uid":"cap_WOo3Vd35jghBJ2x8TQzMb","slug":"one-engine-array-difference-top-10-9e798d4a","name":"ONE Engine Array Difference (Top 10)","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/t10?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.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yyF0dvxNxTwBx1g9YbtZI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the difference between two arrays — elements in the primary array not present in the comparison array — returning up to the top 10 results.","exampleAgentPrompt":"Find the difference between these two arrays — items in [1, 2, 3, 4, 5] that aren't in [3, 4, 5, 6, 7] — and give me up to 10 results.","exampleUseCases":[{"title":"New product SKUs not yet in catalog","prompt":"I have a list of incoming SKUs from a vendor and our existing catalog SKUs — find me all the vendor SKUs that don't already exist in our catalog, up to 10 results."},{"title":"Unread notification IDs filtering","prompt":"Here are all notification IDs the user received: [101, 102, 103, 104, 105] and here are the ones they already read: [102, 104]. Give me the unread ones."},{"title":"Missing feature flags between environments","prompt":"I have two lists of feature flags — one from staging and one from production. Which flags are in staging but not yet in production? Show me up to 10."}],"resultDescription":"A JSON object containing an array of elements that appear in the primary `values` array but not in the `other` comparison array, limited to the top 10 results (paginated via offset).","failureModes":["Primary `values` array exceeds 1000 items — request rejected","Malformed or non-array input for `values` or `other` — validation error","Payment not included or insufficient — HTTP 402 returned","Empty `values` array — returns empty difference result","Network timeout on Cloudflare Worker edge"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call set-difference computation on arrays of up to 1000 items without standing up your own infrastructure. Ideal for autonomous agents that need to compare two lists on-the-fly (e.g. filtering seen vs unseen IDs, removing blacklisted items) and want a paginated top-10 slice of results. Prefer this over local computation when the agent environment is stateless or constrained.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:42:41.154Z","isFirstParty":false,"canonicalSlug":"one-engine-array-difference-top-10-9e798d4a"}