{"uid":"cap_lux0p5oVJym2p4IgJxhrh","slug":"one-engine-array-unique-t1-35c550a9","name":"ONE Engine Array Unique (T1)","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/unique/t1?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.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RciJkn4h91qt4smKCHVVy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the unique (deduplicated) elements from a JSON array, with optional comparison against a second array.","exampleAgentPrompt":"Deduplicate this array for me and return only the unique values: [\"apple\", \"banana\", \"apple\", \"cherry\", \"banana\", \"date\"].","exampleUseCases":[{"title":"Deduplicating product tag lists","prompt":"I have a list of product tags with lots of repeats — can you remove all the duplicates and give me just the unique tags? The list is [\"sale\", \"new\", \"sale\", \"featured\", \"new\", \"clearance\"]."},{"title":"Finding unique user IDs from event logs","prompt":"I've got an array of user IDs from event logs and there are tons of duplicates. Can you give me just the unique user IDs from this list: [101, 202, 101, 303, 202, 404, 101]?"},{"title":"Comparing two arrays for unique items","prompt":"I have two lists of email addresses and I want to see which emails appear in the first list but not in the second. First list: [\"a@x.com\", \"b@x.com\", \"c@x.com\"], comparison list: [\"b@x.com\", \"c@x.com\", \"d@x.com\"]."}],"resultDescription":"A JSON object containing the unique (deduplicated) elements from the input array, with duplicates removed. If an optional comparison array is provided, the result reflects elements unique relative to that comparison set. The response may also include pagination metadata based on the offset and size parameters.","failureModes":["Input array exceeds 1000 items — request rejected","Missing required 'values' field — validation error","Malformed JSON array in values — parse error","Payment not received or insufficient USDC — 402 response","Network timeout on Cloudflare Worker — transient 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call deduplication operation on a JSON array of up to 1000 items without setting up any infrastructure. It is ideal for agents that need quick, cheap set operations mid-workflow without running custom code. Prefer it over building local deduplication logic when operating in a stateless or sandboxed agent environment where executing code is not possible.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:31.133Z","isFirstParty":false,"canonicalSlug":"one-engine-array-unique-t1-35c550a9"}