{"uid":"cap_rPFk6K313GWToDphbEAC8","slug":"one-engine-array-union-a69d3eec","name":"ONE Engine Array Union","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/array/union?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"array"},"b":{"type":"array"}}},"responseSchema":{"type":"json","example":{"count":3,"values":[1,2,3]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0011","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.0011/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0011","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0011","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-X6SPI6POjLEFygpWT4AC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0011","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the union of two arrays, returning all unique values that appear in either array.","exampleAgentPrompt":"Compute the union of these two arrays for me: [1, 2, 3, 4] and [3, 4, 5, 6] — I just need all the unique values combined.","exampleUseCases":[{"title":"Merging tag lists across content items","prompt":"I have two lists of tags from different blog posts — [\"javascript\",\"react\",\"frontend\"] and [\"react\",\"node\",\"backend\"] — can you give me the full set of unique tags combined?"},{"title":"Deduplicating product ID collections","prompt":"I've got two batches of product IDs from different sales channels: [101, 202, 303] and [202, 303, 404, 505]. Can you merge them into one deduplicated list?"},{"title":"Combining user permission sets","prompt":"Take these two permission arrays — [\"read\",\"write\"] and [\"write\",\"delete\",\"admin\"] — and give me the union so I know all distinct permissions a user would have."}],"resultDescription":"A JSON object containing the count of unique elements and an array of all values (deduplicated) that appear in either input array A or array B, e.g. {\"count\": 3, \"values\": [1, 2, 3]}.","failureModes":["Missing or malformed array inputs return an error","Non-array values for 'a' or 'b' fields may cause validation failures","Payment failure via x402 prevents execution","Empty arrays on both sides return count 0 and empty values array"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap, pay-per-call set union operation on two arbitrary arrays without spinning up your own logic. It is ideal for autonomous agents that need lightweight, stateless array math on Base-settled micropayments with no server overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:09.733Z","isFirstParty":false,"canonicalSlug":"one-engine-array-union-a69d3eec"}