{"uid":"cap_jO5R3nqFZxiH71fiS5PdW","slug":"one-engine-array-intersection-t4-8aa03d45","name":"ONE Engine Array Intersection (T4)","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/t4?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.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hHp965LJju89hIDUfPTQ3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","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, with optional offset and size pagination controls.","exampleAgentPrompt":"Find the common elements between these two arrays for me: [1, 2, 3, 4, 5] and [3, 4, 5, 6, 7] — return just the first 10 results starting from offset 0.","exampleUseCases":[{"title":"Shared user ID overlap detection","prompt":"I have a list of user IDs who signed up this month and another list of IDs who made a purchase — find me the ones that appear in both lists so I can target them for a loyalty reward."},{"title":"Filtering product catalog by availability","prompt":"I've got a list of product SKUs the customer wants and another list of SKUs we currently have in stock — give me only the ones that appear in both so I know what I can actually fulfill."},{"title":"Deduplicating matched tags across two datasets","prompt":"Compare these two tag arrays and tell me which tags show up in both: the first is from our content library and the second is from our ad campaign targeting list — I want the overlap, up to 20 results."}],"resultDescription":"Returns a JSON object containing the array of elements that appear in both the primary 'values' array and the optional 'other' comparison array. Results may be paginated using 'size' and 'offset' parameters.","failureModes":["Missing required 'values' field returns a 400-level error","Array exceeding 1000 items may be rejected or truncated","Mismatched data types between arrays may yield empty intersection","Payment not included or insufficient USDC triggers 402 Payment Required","Malformed JSON input returns a parse error"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap, pay-per-call array intersection without spinning up your own set-logic computation — especially in agentic pipelines on Base where x402 micropayments are already supported. It supports pagination via size/offset, making it suitable for large result sets. Prefer it over in-memory set logic when the agent environment is stateless or when you want a consistent, hosted utility with predictable pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:58.960Z","isFirstParty":false,"canonicalSlug":"one-engine-array-intersection-t4-8aa03d45"}