{"uid":"cap_9qDfTo8pcbYJJZgLU9WiY","slug":"one-engine-array-unique-filter-1141d8f8","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/t8?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.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2FpFtkWz6frzY16T-zs8s","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 elements from a JSON array, optionally comparing against a second array or paginating results.","exampleAgentPrompt":"I have a list of up to 1000 items with duplicates — can you deduplicate it and return only the unique values? Here's my array: [\"apple\", \"banana\", \"apple\", \"cherry\", \"banana\"].","exampleUseCases":[{"title":"Deduplicating user ID list","prompt":"I've got a list of user IDs pulled from multiple sources and there are a ton of duplicates — can you clean it up and give me just the unique IDs? Here's the full array of about 500 entries."},{"title":"Finding new items between two datasets","prompt":"I have yesterday's product catalog and today's catalog as two arrays — can you find which items appear in today's list that weren't in yesterday's? Compare the two and return only the new unique entries."},{"title":"Paginating unique tags from large dataset","prompt":"I have an array of 1000 tags from my content library with lots of repeats. Can you return just the unique ones, starting from offset 50 and limiting to 100 results?"}],"resultDescription":"A JSON object containing the filtered array of unique values extracted from the input, with duplicates removed. When a comparison array is provided, returns elements unique relative to that second array. Pagination via offset and size parameters allows retrieving subsets of the unique result set.","failureModes":["Input array exceeds 1000 items — request rejected","Malformed JSON array in 'values' field — validation error","Payment not included or insufficient — HTTP 402 response requiring x402 USDC payment on Base","Empty array input returns empty unique result","Network timeout on Cloudflare Workers edge"],"whenToPreferThis":"Use this endpoint when you need a low-cost, pay-per-call deduplication or set-difference operation on a JSON array of up to 1000 items, especially in autonomous agent workflows where you want to avoid running your own dedup logic or spinning up infrastructure. It is well-suited for lightweight array utility tasks billed per call via x402 on Base, making it economical for sporadic agent use cases without subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:35.204Z","isFirstParty":false,"canonicalSlug":"one-engine-array-unique-filter-1141d8f8"}