{"uid":"cap_W10R9Lhhk9m4583Eqd0uu","slug":"one-engine-array-unique-filter-t4-3483fe00","name":"ONE Engine Array Unique Filter (t4)","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/t4?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.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bzP3EtAlwEHN_CGMbATzm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","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, offset, and size controls.","exampleAgentPrompt":"I have this list of product IDs with duplicates — can you deduplicate it and return only the unique values? Here's the array: [101, 202, 101, 303, 202, 404].","exampleUseCases":[{"title":"Deduplicating user tag lists","prompt":"I've collected tags from multiple form submissions and there are lots of repeats — can you take this array of tags and give me back only the unique ones? Here's the list: ['sale','new','featured','sale','new','exclusive','featured','trending']."},{"title":"Comparing two datasets for unique entries","prompt":"I have two arrays of customer IDs — a current list and a previous list — and I want to find which IDs appear uniquely. Can you run a unique filter on [1001,1002,1003,1004] compared against [1002,1004,1006]?"},{"title":"Paginated deduplication of large dataset","prompt":"I have an array of 500 event codes with duplicates and I only want the first 20 unique values starting from offset 0. Here's the array — can you deduplicate it and return just those 20?"}],"resultDescription":"Returns a JSON object containing the deduplicated array of unique values from the input, respecting any provided comparison array, offset, and size constraints. The result set contains at most 'size' elements starting from 'offset', with duplicates removed.","failureModes":["Input array exceeds 1000 items — request rejected","Malformed JSON array in 'values' field — validation error","Payment failure via x402 on Base — 402 response, no result returned","Invalid types in 'offset' or 'size' (non-integer) — schema validation error","Empty 'values' array — may return empty result set"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call deduplication operation on a JSON array of up to 1000 items, especially within an autonomous agent workflow on Base using x402 micropayments. Prefer it over building custom deduplication logic when you want a simple utility call with optional comparison-array set operations and pagination controls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:41.449Z","isFirstParty":false,"canonicalSlug":"one-engine-array-unique-filter-t4-3483fe00"}