{"uid":"cap_j3tjIwyfn4l02L4hb571p","slug":"array-intersection-t9-3c3d404f","name":"Array Intersection (T9)","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/t9?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.018","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.018/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qd2pch9MptQ6KKjoUB-RP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.018","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 common elements between these two arrays: [1, 2, 3, 4, 5] and [3, 4, 5, 6, 7] — return up to 100 results.","exampleUseCases":[{"title":"Matching user tags across datasets","prompt":"I have two lists of user interest tags — one from their profile and one from their recent activity. Can you find which tags appear in both lists? Here they are: profile tags are ['travel','food','music','sports','tech'] and activity tags are ['music','gaming','travel','art']."},{"title":"Filtering product SKUs in common","prompt":"I need to find which product SKUs are available in both my warehouse inventory and my online store catalog. Warehouse list: ['SKU001','SKU002','SKU003','SKU005'] and store list: ['SKU002','SKU003','SKU004','SKU006']."},{"title":"Finding shared permissions between roles","prompt":"I have two permission sets — one for the editor role and one for the reviewer role — and I want to know which permissions they share. Editor permissions: ['read','write','publish','delete'] and reviewer permissions: ['read','comment','publish','approve']."}],"resultDescription":"Returns a JSON object containing the array of elements that appear in both the primary `values` array and the `other` comparison array, representing the set intersection. May support pagination via `size` and `offset` parameters to limit result size.","failureModes":["Missing required `values` field returns validation error","Array exceeds 1000-item limit causes rejection","Malformed JSON array in input causes parse error","Payment failure or insufficient USDC balance returns 402","Network timeout on large array processing"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call array intersection with no setup or infrastructure required, especially within agent pipelines using x402/Base micropayments. Ideal for lightweight set operations on arrays up to 1000 items where spinning up custom code is overkill.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:17.045Z","isFirstParty":false,"canonicalSlug":"array-intersection-t9-3c3d404f"}