{"uid":"cap_04jPOVMOcM7-18xZGYhMS","slug":"one-engine-array-difference-ce2f552e","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/t9?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.018","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.018/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-AElLEAwre6GfyZTQ5INE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.018","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 primary array that are not present in the comparison array.","exampleAgentPrompt":"Can you find me the difference between these two arrays — items in the first list that aren't in the second? First list: [1, 2, 3, 4, 5], comparison list: [3, 4, 5, 6, 7].","exampleUseCases":[{"title":"Filter out already-processed IDs","prompt":"I have a list of all user IDs from today's batch and a list of IDs we already processed yesterday. Can you give me only the ones we haven't handled yet? Today's list: [101, 102, 103, 104, 105], already processed: [102, 104]."},{"title":"Find missing product SKUs","prompt":"Here are the SKUs we have in our warehouse inventory: ['SKU001','SKU002','SKU003','SKU004'] and here are the SKUs listed in our catalog: ['SKU002','SKU004','SKU005','SKU006']. Which SKUs are in the warehouse but not in the catalog?"},{"title":"Identify new subscribers since last export","prompt":"I exported subscriber emails last week and now I have a fresh list. Can you tell me which emails are in the new list but weren't in the old one? New list: ['a@x.com','b@x.com','c@x.com'], old list: ['a@x.com','b@x.com']."}],"resultDescription":"Returns a JSON object containing the array of elements that appear in the primary `values` array but not in the `other` comparison array — effectively the set difference A minus B. May also include metadata about the result size or offset depending on the parameters provided.","failureModes":["Input array exceeds 1000-item limit — request rejected","Missing required `values` field — returns validation error","Non-array value passed where array is expected — schema error","Payment not provided or insufficient — 402 Payment Required response","Network timeout on Cloudflare Worker — transient 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a fast, low-cost, pay-per-call set difference computation without standing up your own infrastructure. It's ideal for autonomous agents that occasionally need to diff small-to-medium arrays (up to 1000 items) on the fly without a persistent backend. Prefer this over rolling your own logic when operating in a cost-sensitive, stateless agent pipeline using x402 micropayments on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:38.618Z","isFirstParty":false,"canonicalSlug":"one-engine-array-difference-777bd7ed"}