{"uid":"cap_pdmfHLmfgx13L1Flm5PEY","slug":"delx-commerce-set-union-ebfa73c6","name":"Delx Commerce — Set Union","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/set-union?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"array","description":"Input field: a."},"b":{"type":"array","description":"Input field: b."}}},"responseSchema":{"type":"json","example":{"count":3,"items":[1,2,3],"schema":"delx/util-set-union/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3PpsveLkByJyLdVQj3vmN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the mathematical union of two arrays, returning a deduplicated set of all unique elements from both inputs.","exampleAgentPrompt":"Can you compute the union of these two lists for me — [1, 2, 3, 4] and [3, 4, 5, 6] — and give me back all the unique elements?","exampleUseCases":[{"title":"Merging tag lists from two sources","prompt":"I have two lists of tags from different systems — [\"billing\",\"urgent\",\"vip\"] and [\"urgent\",\"support\",\"refund\"] — can you merge them into one deduplicated list of all unique tags?"},{"title":"Combining user ID sets","prompt":"I've got two sets of user IDs: [101, 202, 303] from one campaign and [202, 404, 505] from another. Can you give me the full set of unique user IDs across both?"},{"title":"Finding all distinct categories","prompt":"I have product categories from two different catalogs — [\"electronics\",\"books\",\"clothing\"] and [\"books\",\"toys\",\"clothing\",\"sports\"] — merge them into one list with no repeats."}],"resultDescription":"Returns a JSON object with a count of unique items, an array of those unique items representing the mathematical union of inputs A and B, and a schema identifier string ('delx/util-set-union/v1').","failureModes":["Malformed input (non-array values for a or b) may result in a 400 error","Payment failure via x402 protocol will block execution","Empty arrays return an empty union with count 0","Non-homogeneous array types may produce unexpected deduplication behavior"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call set union operation with no setup, no API key, and verifiable USDC-based payment via x402. Ideal for agents that occasionally need set operations without spinning up data-processing infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:40.822Z","isFirstParty":false,"canonicalSlug":"delx-commerce-set-union-ebfa73c6"}