{"uid":"cap_gMTDQBHj3lOP-0v3n5bp_","slug":"one-engine-array-intersection-a21dd33d","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/t1?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.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MhTb2CQIZlVbjt7f7kG28","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","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 arrays.","exampleAgentPrompt":"Find all the elements that appear in both of these two arrays for me: [1, 2, 3, 4, 5] and [3, 4, 5, 6, 7] — return up to 10 results starting from the first.","exampleUseCases":[{"title":"Matching user IDs across datasets","prompt":"I have two lists of user IDs — one from our CRM and one from our email platform. Can you find all the IDs that appear in both lists so I know which users are in both systems? CRM list: [101, 202, 303, 404, 505] and email list: [202, 404, 606, 808]."},{"title":"Finding shared product tags","prompt":"I have two arrays of product tags — one from last month's bestsellers and one from this month's — find me the tags that appear in both: ['electronics','books','toys','sports'] and ['books','clothing','sports','home']."},{"title":"Cross-referencing blocked and active accounts","prompt":"Check which account IDs from my blocked list also show up in my active accounts list and return the overlapping ones. Blocked: [55, 77, 99, 111] and active: [77, 88, 99, 120, 130]."}],"resultDescription":"Returns a JSON object containing the array of elements common to both the primary 'values' array and the optional 'other' comparison array, respecting any specified size limit and offset for pagination.","failureModes":["Missing required 'values' field returns a validation error","Arrays exceeding 1000 items are rejected","Invalid JSON in array fields causes a parse error","Payment failure via x402 results in 402 Payment Required response","Empty intersection returns an empty array (not an error)"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call array intersection computation without spinning up your own infrastructure. Ideal for AI agents that occasionally need set operations on small-to-medium arrays (up to 1000 items) and want to avoid maintaining stateful services. Costs only $0.0005 USDC per call via x402 on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:08.523Z","isFirstParty":false,"canonicalSlug":"one-engine-array-intersection-47781b97"}