{"uid":"cap_owlZCBHFIOKN-HbIR75es","slug":"one-engine-array-unique-55684075","name":"ONE Engine Array Unique","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/t6?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.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_T10xbNk6gdW1aVjGLBkFW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","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, optionally compared against a second array.","exampleAgentPrompt":"Deduplicate this list of values for me — remove any repeated entries and return only the unique ones: [\"apple\", \"banana\", \"apple\", \"cherry\", \"banana\", \"date\"].","exampleUseCases":[{"title":"Deduplicating collected user tags","prompt":"I've gathered tags from user submissions and there are lots of duplicates — can you run this array through the unique filter and give me back only the distinct tag names? Here's the list: [\"travel\", \"food\", \"travel\", \"tech\", \"food\", \"music\", \"tech\"]."},{"title":"Finding new items not in existing list","prompt":"I have a fresh batch of product IDs and I want to know which ones aren't already in my catalog. Can you compare this new array [\"SKU-001\", \"SKU-002\", \"SKU-003\", \"SKU-004\"] against my existing catalog [\"SKU-001\", \"SKU-003\"] and return only the new unique ones?"},{"title":"Cleaning a dataset of repeated entries","prompt":"Before I process this dataset, I need to strip out all duplicate entries. Please deduplicate this array of 50 email addresses and return just the unique ones, starting from offset 0 and limiting to 25 results."}],"resultDescription":"Returns a JSON object containing the deduplicated array of unique values extracted from the input, with duplicates removed. If a comparison array is provided, the result reflects uniqueness relative to that reference set. Supports pagination via size and offset parameters.","failureModes":["Array exceeds 1000-item limit — request rejected","Malformed JSON array input — validation error returned","Missing required 'values' field — bad request error","Network or worker timeout on large arrays","Payment failure via x402 — 402 response before processing begins"],"whenToPreferThis":"Choose this endpoint when you need a cheap, fast, pay-per-call deduplication of a JSON array without setting up a dedicated data pipeline or calling a heavier data processing service. Ideal for AI agents performing ad-hoc data cleaning steps mid-workflow, especially when the array is under 1000 items and you want sub-cent pricing via x402 on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:49.823Z","isFirstParty":false,"canonicalSlug":"one-engine-array-unique-55684075"}