{"uid":"cap_r0SzPhfRuD0F4llDBh2Ex","slug":"one-engine-array-unique-t2-4b2cfcef","name":"ONE Engine Array Unique (t2)","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/t2?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.0007","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.0007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Gzh6a5c92xhj4VBrT_Mzm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0007","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the unique elements from a JSON array, with optional comparison against a second array, offset, and size limit.","exampleAgentPrompt":"Can you deduplicate this list of user IDs for me: [101, 202, 101, 303, 202, 404] — just give me the unique values, up to 10 results starting from the first?","exampleUseCases":[{"title":"Deduplicating product tag lists","prompt":"I have this list of product tags that has a lot of repeats: [\"sale\",\"new\",\"sale\",\"featured\",\"new\",\"clearance\"]. Can you strip out the duplicates and give me just the unique ones?"},{"title":"Finding new items not in baseline","prompt":"Here's my current inventory list and a baseline list from last week — can you find which items are in the current list but not the baseline, so I know what's new?"},{"title":"Paginating unique values from large array","prompt":"I have an array of 500 customer IDs with lots of duplicates. Can you give me the unique ones, but only return 50 at a time starting at offset 100?"}],"resultDescription":"A JSON object containing the deduplicated array of unique values from the input, optionally filtered against a comparison array, and sliced by offset and size parameters.","failureModes":["Input array exceeds 1000 items — request rejected","Malformed JSON array input — parsing error returned","Payment not provided or insufficient — 402 Payment Required response","Missing required 'values' field — validation error","Network timeout on Cloudflare Worker edge"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call deduplication or set-difference operation on a JSON array without standing up your own compute. It is ideal for agents that occasionally need to clean up lists, find new items relative to a known set, or paginate through unique values — especially within the x402/Base micropayment ecosystem where per-call billing at $0.0007 USDC is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:22.889Z","isFirstParty":false,"canonicalSlug":"one-engine-array-unique-t2-4b2cfcef"}