{"uid":"cap_rRmZzSgi1PmqwEUsRpSTu","slug":"one-engine-array-intersection-6b09ccb8","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/t5?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.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wo3o_k0GdHE7a2m157IPh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","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 JSON arrays, returning elements common to both","exampleAgentPrompt":"Find the common elements between these two arrays for me: [1, 2, 3, 4, 5] and [3, 4, 5, 6, 7] — return up to 10 results starting at offset 0.","exampleUseCases":[{"title":"Finding shared user IDs across datasets","prompt":"I have two lists of user IDs — one from our email subscribers and one from our app signups. Can you find which user IDs appear in both lists? Here's the subscriber list: [101, 202, 303, 404, 505] and the signup list: [202, 303, 606, 707, 101]."},{"title":"Matching product SKUs between inventories","prompt":"Compare these two product SKU arrays and tell me which SKUs exist in both: the warehouse list is ['SKU-A1','SKU-B2','SKU-C3','SKU-D4'] and the storefront list is ['SKU-B2','SKU-D4','SKU-E5','SKU-F6']."},{"title":"Filtering mutual tags across content items","prompt":"I have two sets of tags from different blog posts and I want to know which tags they share. Post A has tags ['javascript','react','typescript','node'] and Post B has ['python','react','typescript','django'] — what's the overlap?"}],"resultDescription":"A JSON object containing the array of elements that appear in both the primary `values` array and the `other` comparison array. Results may be paginated via `size` and `offset` parameters.","failureModes":["Missing required `values` field returns a validation error","Arrays exceeding 1000 items are rejected","Payment not included or insufficient USDC balance causes 402 Payment Required","Malformed JSON in either array causes a parse error","If `other` is omitted the behavior may default to self-intersection or return an empty result"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call array intersection computation without spinning up your own infrastructure. It's ideal for AI agents that need to compare two sets of up to 1000 items on demand, especially within x402-enabled payment flows on Base. Prefer this over building custom set logic when operating in an autonomous agent pipeline that already handles micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:12.612Z","isFirstParty":false,"canonicalSlug":"one-engine-array-intersection-47781b97"}