{"uid":"cap_lEblB2P-H0UzIWrrxaUMV","slug":"one-engine-array-difference-25852f09","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/t7?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.0065","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.0065/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_t13UKQYbWoFp_Lsip2aBn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0065","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":"Find me the difference between these two arrays — items in [1, 2, 3, 4, 5] that are NOT in [3, 4, 5, 6, 7] — and return up to 100 results starting from offset 0.","exampleUseCases":[{"title":"Detect missing product SKUs","prompt":"I have a list of expected SKUs [\"SKU001\",\"SKU002\",\"SKU003\",\"SKU004\"] and a list of SKUs we actually received [\"SKU002\",\"SKU004\"]. Can you find which expected SKUs are missing from the received list?"},{"title":"Find unprocessed user IDs","prompt":"I have a full list of user IDs [101,102,103,104,105,106] and a list of IDs that have already been emailed [102,105]. Which user IDs have NOT been emailed yet?"},{"title":"Identify removed permissions","prompt":"Yesterday's permission set was [\"read\",\"write\",\"delete\",\"admin\"] and today's is [\"read\",\"write\"]. Which permissions were removed?"}],"resultDescription":"Returns a JSON object containing the array of elements present in the primary 'values' array but absent from the 'other' comparison array, subject to optional size and offset pagination parameters.","failureModes":["Input array exceeds 1000-item limit — request rejected","Missing required 'values' field — validation error returned","Non-array type passed for 'values' or 'other' — schema validation failure","Payment failure via x402 — 402 Payment Required response","Empty result when all elements of 'values' exist in 'other'"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call set-difference operation on JSON arrays of up to 1000 items without standing up your own compute. Ideal for agent workflows on Base (x402) where you want micro-payment billing per call and no subscription overhead. Best for simple membership exclusion checks rather than complex multi-set algebra.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:49.822Z","isFirstParty":false,"canonicalSlug":"one-engine-array-difference-777bd7ed"}