{"uid":"cap_6F2Ol7tdED9WmYu4QD8Zz","slug":"one-engine-array-unique-filter-b38b058b","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/t7?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.0065","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.0065/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JysYEsVnDFxFv_8MIwgBR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0065","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 offset, size, and comparison array support.","exampleAgentPrompt":"I have this list of product IDs with duplicates — can you deduplicate it and return only the unique ones? The array is [101, 202, 101, 303, 202, 404] and I only need the first 3 unique results.","exampleUseCases":[{"title":"Deduplicate customer ID list","prompt":"I have a list of customer IDs pulled from two sources and there are a lot of repeats — can you remove the duplicates and give me just the unique IDs? Here's the full list: [1001, 1002, 1001, 1003, 1004, 1002, 1005]."},{"title":"Filter unique tags before publishing","prompt":"Before I save these article tags to the database, can you strip out any duplicates? The tag list is ['javascript','web','javascript','typescript','web','nodejs'] and I want just the unique ones."},{"title":"Compare arrays and extract unique values","prompt":"I have two arrays of email addresses and I want to find the unique values across the first list — can you deduplicate ['a@x.com','b@x.com','a@x.com','c@x.com'] and optionally cross-reference with ['b@x.com','d@x.com']?"}],"resultDescription":"A JSON object containing the deduplicated array of unique elements extracted from the input values array, optionally filtered by offset and limited by size, with optional comparison against a second array.","failureModes":["Array exceeds 1000 item limit — request rejected","Malformed JSON array in values field — validation error","Payment failure via x402 — 402 response, call not processed","Missing required 'values' field — schema validation error","Non-array value passed as 'values' — type error"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, serverless deduplication of a JSON array (up to 1000 items) without standing up your own compute — especially useful in autonomous agent pipelines on Base where x402 micropayments are already supported. Prefer it over custom code when you want a stateless, pay-per-call utility that integrates seamlessly into agentic workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:26.402Z","isFirstParty":false,"canonicalSlug":"one-engine-array-unique-filter-1141d8f8"}