{"uid":"cap_l03SOGWYzvEXRyxlzGF4d","slug":"one-engine-array-unique-filter-19905f25","name":"ONE Engine Array Unique Filter","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/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_NPg8QtrrN-5tPXvn_yCZK","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":"Returns only the unique (deduplicated) elements from a JSON array, with optional comparison against a second array.","exampleAgentPrompt":"Deduplicate this list of values for me — I have an array of up to 1000 items and need only the unique ones back: [\"apple\", \"banana\", \"apple\", \"cherry\", \"banana\"].","exampleUseCases":[{"title":"Deduplicating user ID list","prompt":"I have a list of user IDs collected from multiple sources and there are lots of repeats — can you remove all the duplicates and give me back only the unique IDs? Here's the array: [101, 202, 101, 303, 202, 404]."},{"title":"Comparing two tag arrays for unique entries","prompt":"I've got two arrays of tags from different blog posts and I want to know which tags appear uniquely — compare [\"javascript\", \"react\", \"css\"] against [\"react\", \"python\", \"css\"] and return only the unique values."},{"title":"Cleaning up duplicate product SKUs","prompt":"Before I send this order data to our fulfillment system, can you deduplicate this array of product SKUs? I have up to 500 items and need only distinct SKUs returned: [\"SKU-001\", \"SKU-002\", \"SKU-001\", \"SKU-003\"]."}],"resultDescription":"An object containing the deduplicated array — only unique elements from the input values array are returned, with duplicates removed. If a comparison array is provided, uniqueness is evaluated relative to that second array. Supports pagination via size and offset parameters.","failureModes":["Array exceeds 1000-item limit — request rejected","Malformed or non-array values field — validation error","Payment failure via x402 — 402 response before processing","Empty array input — may return empty result","Network timeout on Cloudflare Worker — transient 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call array deduplication operation without standing up your own infrastructure. Ideal for autonomous agents performing data-cleaning steps in a pipeline, especially when the input is already a JSON array and the cost of $0.018 USDC per call is acceptable. Prefer this over building custom deduplication logic when simplicity and low overhead matter. The optional comparison array makes it useful for set-difference operations, not just simple deduplication.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:43.604Z","isFirstParty":false,"canonicalSlug":"one-engine-array-unique-filter-1141d8f8"}