{"uid":"cap_QXTrbEGLHlyJBu5fwZfdn","slug":"one-engine-array-difference-777bd7ed","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/v1/array/difference?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"array"},"b":{"type":"array"}}},"responseSchema":{"type":"json","example":{"count":2,"values":[1,3]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0011","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.0011/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0011","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0011","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xGLbZ8Q9Cf2MNIPzVNwXv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0011","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 array A that are not present in array B.","exampleAgentPrompt":"I have two lists of numbers — list A is [1, 2, 3, 4] and list B is [2, 4] — can you find which elements are in A but not in B?","exampleUseCases":[{"title":"Detect new items in updated dataset","prompt":"I have yesterday's product IDs in one list and today's in another — can you tell me which product IDs are new today that weren't there yesterday? Yesterday: [101,102,103,104], Today: [102,104,105,106]."},{"title":"Find unacknowledged user IDs","prompt":"Here are the user IDs who signed up this week: [201,202,203,204,205]. And here are the ones who've already completed onboarding: [202,205]. Which users still haven't finished onboarding?"},{"title":"Compare permission sets for access audit","prompt":"I have the full set of required permissions [\"read\",\"write\",\"delete\",\"admin\"] and the permissions a user currently has [\"read\",\"write\"]. Which permissions are they still missing?"}],"resultDescription":"Returns a JSON object with a 'count' integer indicating how many elements are in the difference, and a 'values' array containing the elements that appear in array A but not in array B.","failureModes":["Missing or malformed 'a' or 'b' fields in request body returns an error","Non-array types passed for 'a' or 'b' may cause a validation error","Payment failure via x402 protocol will result in a 402 response before computation","Empty arrays return count: 0 and empty values array","Large arrays may hit payload or processing limits"],"whenToPreferThis":"Use this endpoint when an AI agent needs a quick, cheap, pay-per-call array difference computation without setting up local logic or libraries — especially in agentic workflows on Base where micro-payments via x402 are already in use. Ideal for lightweight data pipeline steps where spinning up code execution is overkill.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:47.870Z","isFirstParty":false,"canonicalSlug":"one-engine-array-difference-777bd7ed"}