{"uid":"cap_dHDaW3bpVG2UuXH45q8rD","slug":"one-engine-array-unique-top-10-c1483337","name":"ONE Engine Array Unique Top-10","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/t10?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.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4hgqOrEaaDW3TYl_zrW57","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the top-10 unique values from a JSON array, optionally filtered against a comparison array with offset support.","exampleAgentPrompt":"I have this list of 500 product tags and I want to find the top 10 unique values — can you deduplicate it and return just the distinct top items?","exampleUseCases":[{"title":"Deduplicate survey response tags","prompt":"I collected 800 survey responses and each one has a category tag — can you deduplicate that list and give me the top 10 most distinct tags?"},{"title":"Find unique items not in reference list","prompt":"I have a big array of user-submitted keywords and a reference list of known ones — can you find the top 10 unique keywords that aren't already in my reference list?"},{"title":"Paginate unique values from log data","prompt":"I've got an array of 1000 log event types and I want to page through the unique ones — give me the top 10 unique event types starting from offset 20."}],"resultDescription":"A JSON object containing the top-10 unique values extracted from the input array, with optional deduplication against a provided comparison array and support for pagination via offset.","failureModes":["Array exceeds 1000-item limit — request rejected","Malformed JSON array input — validation error","Missing required 'values' field — 400 Bad Request","Payment not included or insufficient — 402 Payment Required","Offset out of bounds — empty or partial result set"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap, pay-per-call deduplication and top-N extraction on a JSON array without standing up your own data pipeline. Ideal for autonomous agents processing moderate-sized lists (up to 1000 items) that need unique value extraction in real time, especially when comparing against a second array to filter already-known values.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:35.223Z","isFirstParty":false,"canonicalSlug":"one-engine-array-unique-top-10-c1483337"}