{"uid":"cap_UNezITVbli_vwZZwP5B-9","slug":"one-engine-array-intersection-47781b97","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/t8?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.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fwRreiURFHVPVKeiD5VmQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 the intersection of these two arrays for me: [1, 2, 3, 4, 5] and [3, 4, 5, 6, 7] — return only the elements they have in common.","exampleUseCases":[{"title":"Find shared user IDs across datasets","prompt":"I have two lists of user IDs — one from our email subscribers [101, 202, 303, 404, 505] and one from our paying customers [303, 404, 606, 707]. Can you find which user IDs appear in both lists?"},{"title":"Detect overlapping product tags","prompt":"I have a set of tags from Product A: ['sale', 'electronics', 'featured', 'clearance'] and tags from Product B: ['featured', 'new', 'electronics', 'bundle']. What tags do both products share?"},{"title":"Match common skills between candidates","prompt":"Compare these two skill lists and tell me what skills overlap: candidate one has ['Python', 'SQL', 'Docker', 'Kubernetes'] and candidate two has ['SQL', 'Docker', 'React', 'TypeScript']."}],"resultDescription":"Returns a JSON object containing the array of elements found in both the primary 'values' array and the 'other' comparison array. The result represents the mathematical set intersection of the two inputs.","failureModes":["Missing required 'values' field returns a 400 error","Array exceeds 1000-item limit causing rejection","Payment not included or insufficient USDC causes 402 payment required response","Non-array value passed for 'values' or 'other' causes schema validation error","Empty intersection returns an empty array (not an error)"],"whenToPreferThis":"Use this endpoint when you need a quick, low-cost ($0.01 USDC) server-side array intersection without spinning up compute infrastructure. Ideal for AI agents that need to compare two lists on-the-fly within a workflow, especially when the arrays are up to 1000 items and you want a pay-per-call model rather than a persistent service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:09.730Z","isFirstParty":false,"canonicalSlug":"one-engine-array-intersection-47781b97"}