{"uid":"cap_J-HsfslBQvQWpoSENkcxV","slug":"one-engine-array-intersection-20fbd755","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/v1/array/intersection?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"array"},"b":{"type":"array"}}},"responseSchema":{"type":"json","example":{"count":2,"values":[2,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_o5xmz0_zKIE4CiWHfIUb7","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 intersection of two arrays, returning shared elements and their count.","exampleAgentPrompt":"Find the common elements between these two lists: [1, 2, 3, 4, 5] and [2, 3, 6, 7] — give me the shared values and how many there are.","exampleUseCases":[{"title":"Deduplicating shared user segments","prompt":"I have two lists of user IDs — one from last month's campaign and one from this month's. Can you find which user IDs appear in both lists so I know who was targeted twice?"},{"title":"Finding overlapping product tags","prompt":"I have a list of tags from product category A and another list from product category B. Which tags appear in both? I want the shared ones and a count."},{"title":"Checking mutual permissions","prompt":"Here are two permission sets: ['read', 'write', 'delete', 'admin'] and ['read', 'write', 'execute']. What permissions do both sets have in common?"}],"resultDescription":"A JSON object with a 'count' integer indicating how many elements are shared between the two input arrays, and a 'values' array listing those shared elements.","failureModes":["Missing one or both arrays returns a validation error","Non-array input types cause schema mismatch errors","Empty arrays on either side return count 0 and empty values","Payment failure via x402 returns HTTP 402 and the call is not processed"],"whenToPreferThis":"Use this endpoint when you need a quick, low-cost programmatic intersection of two arrays without spinning up local compute or a database query. Ideal for autonomous agents that need set overlap on the fly and want to pay per call rather than maintain infrastructure. Best for small-to-medium arrays where a simple shared-element computation suffices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:25.426Z","isFirstParty":false,"canonicalSlug":"one-engine-array-intersection-47781b97"}