{"uid":"cap_th9nF1OJSjnEcvoLj5515","slug":"one-engine-array-intersection-top-10-63e5bae8","name":"ONE Engine Array Intersection (Top 10)","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/t10?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.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CHN1cHqKPT7cBBu2Mv9bq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the top 10 intersecting elements between two arrays, with optional offset and size controls.","exampleAgentPrompt":"I have two lists of product IDs — find the top 10 items that appear in both: [101, 202, 303, 404, 505, 606] and [303, 404, 707, 808, 101].","exampleUseCases":[{"title":"Overlapping customer segments","prompt":"I have a list of VIP customer IDs and a list of customers who clicked the promo email — find me the top 10 IDs that appear in both lists so I can target them first."},{"title":"Common tags across content sets","prompt":"Here are two sets of article tags from different categories — give me the top 10 tags that appear in both so I can find cross-category themes: [\"ai\",\"cloud\",\"security\",\"data\",\"ux\"] and [\"data\",\"mobile\",\"ai\",\"devops\",\"ux\"]."},{"title":"Shared SKUs between suppliers","prompt":"I've got two arrays of product SKUs from two different suppliers — find the top 10 SKUs that both carry so I know where I have dual-source options."}],"resultDescription":"Returns a JSON object containing an array of up to 10 elements (or size if specified) that appear in both the primary 'values' array and the optional 'other' comparison array, starting from the given offset. The response is an additionalProperties-open object, likely with a results or data field containing the matched items.","failureModes":["values array exceeds 1000 items — request rejected","values field missing — 400 bad request","payment not provided or insufficient — 402 Payment Required","malformed JSON body — parsing error","empty intersection returns empty array","offset beyond result count returns empty results"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call set intersection on up to 1000 items and want only the top 10 results (with optional pagination via offset/size). Ideal for agents that need lightweight, stateless array comparison without setting up a database or running custom code. Best when arrays are small-to-medium and the result set is naturally bounded to the top 10.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:05.455Z","isFirstParty":false,"canonicalSlug":"one-engine-array-intersection-top-10-63e5bae8"}