{"uid":"cap_roOEdlMEeemfbeBdL3SYN","slug":"one-engine-array-intersection-t2-e0ffe8ec","name":"ONE Engine Array Intersection (t2)","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/t2?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.0007","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.0007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WJGJuqxgGyr4NwhO8lqUp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0007","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 present in both input arrays.","exampleAgentPrompt":"Find the common elements between these two arrays for me: [1, 2, 3, 4, 5] and [3, 4, 5, 6, 7] — return whatever values appear in both.","exampleUseCases":[{"title":"Shared customer segment finder","prompt":"I have two lists of customer IDs — one from last month's buyers and one from this month's — can you find which customer IDs appear in both lists? Here are the two arrays: [101, 204, 309, 412] and [204, 309, 500, 601]."},{"title":"Tag overlap detection","prompt":"I have two sets of product tags: ['electronics', 'wireless', 'portable', 'bluetooth'] and ['bluetooth', 'portable', 'gaming', 'rgb'] — which tags appear in both sets?"},{"title":"Permission intersection for access control","prompt":"Given these two permission sets — ['read', 'write', 'delete', 'admin'] and ['read', 'write', 'publish'] — what permissions does the user have in common with the required role?"}],"resultDescription":"Returns a JSON object containing the array of elements found in both the primary `values` array and the `other` comparison array, representing the computed set intersection.","failureModes":["Missing required `values` field returns validation error","Arrays exceeding 1000 items rejected","Malformed JSON arrays cause parsing errors","Payment failure (x402) blocks execution","Empty intersection returns empty array (not an error)"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, pay-per-call set intersection on two arrays of up to 1000 items each, without provisioning any infrastructure. Ideal for AI agents that need on-demand utility computation billed in micro-USDC via x402 on Base, particularly when you don't want to run custom code or maintain a backend service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:13.404Z","isFirstParty":false,"canonicalSlug":"one-engine-array-intersection-t2-e0ffe8ec"}