{"uid":"cap_r1y9Vkj7E5k2U2tFk7eHk","slug":"one-engine-array-intersection-2cc7b7f5","name":"ONE Engine Array Intersection","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/intersection/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_qfp4ivBFloIXpzcxslkrT","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 intersection of two arrays, returning elements common to both input sets.","exampleAgentPrompt":"Find the common elements between these two arrays: [1, 2, 3, 4, 5] and [3, 4, 5, 6, 7] — return up to 10 results starting from the first one.","exampleUseCases":[{"title":"Matching user permissions across roles","prompt":"I have two lists of permission IDs — one for role A and one for role B — can you find which permissions they share? Here's role A: [\"read\",\"write\",\"delete\",\"admin\"] and role B: [\"read\",\"write\",\"publish\"]."},{"title":"Finding mutual followers or contacts","prompt":"Compare these two user ID lists and tell me who appears in both — list A is [101,205,340,512,678] and list B is [205,340,900,678,111]."},{"title":"Deduplicating product tag overlap","prompt":"I've got two product tag arrays and need to know which tags they have in common — array one is [\"sale\",\"new\",\"featured\",\"clearance\"] and array two is [\"new\",\"clearance\",\"trending\"]."}],"resultDescription":"Returns a JSON object containing the array of elements that appear in both the primary 'values' array and the 'other' comparison array, respecting optional 'size' (max results) and 'offset' (pagination) parameters.","failureModes":["Missing required 'values' field returns a 400-level error","Input array exceeding 1000 items may be rejected or truncated","Payment failure via x402 protocol results in 402 response","Malformed JSON body causes parsing error","Empty intersection returns an empty array (not an error)"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a cheap, fast, pay-per-call set intersection on up to 1000-element arrays without standing up any infrastructure. Ideal for lightweight pipelines where spinning up a database or full computation engine is overkill and cost-per-call billing via USDC on Base is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:47.624Z","isFirstParty":false,"canonicalSlug":"one-engine-array-intersection-47781b97"}