{"uid":"cap_X3Zye6K2SuApzy3pBmh4K","slug":"delx-commerce-array-unique-arr-uniq-5e09d06b","name":"Delx Commerce — Array Unique (arr-uniq)","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/arr-uniq?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"array","description":"Input field: items."}}},"responseSchema":{"type":"json","example":{"count":3,"items":[1,2,3],"schema":"delx/util-arr-uniq/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HeMv9yUT60ISKoAjTQcUo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Removes duplicate values from an array and returns the deduplicated list with a count, paid per-call via USDC microtransaction.","exampleAgentPrompt":"Can you deduplicate this list for me and tell me how many unique items there are: [1, 2, 2, 3, 3, 3, 4]?","exampleUseCases":[{"title":"Deduplicating product SKU lists","prompt":"I have a list of product SKUs from two merged catalogs and there are tons of repeats — can you remove all the duplicates and tell me how many unique SKUs remain? Here's the list: ['SKU-001','SKU-002','SKU-001','SKU-003','SKU-002']."},{"title":"Unique user IDs from event log","prompt":"I've got a raw event log with user IDs and many users appear multiple times. Can you give me a deduplicated list of just the unique user IDs from this array: [101, 202, 101, 303, 202, 404]?"},{"title":"Cleaning up tag arrays before storage","prompt":"Before I save this post's tags to the database, can you strip out any repeated tags so I only store unique ones? The tags are: ['javascript','api','javascript','agent','api','tools']."}],"resultDescription":"Returns a JSON object with three fields: 'items' (the deduplicated array), 'count' (the number of unique items), and 'schema' (a version identifier string 'delx/util-arr-uniq/v1'). Payment is processed via x402 protocol in USDC on Base or Solana at $0.001 per call.","failureModes":["Missing or non-array 'items' field — likely returns a 4xx validation error","Empty array input — returns count 0 and empty items array","Payment failure via x402 — returns HTTP 402 if USDC payment is not accepted","Malformed JSON body — returns 400 bad request","Network timeout — transient 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a simple, trustless, pay-per-call array deduplication with no signup or API key overhead, especially in agent pipelines that already use x402/USDC microtransactions on Base or Solana. It's ideal for lightweight data-cleaning steps inside automated workflows where you want verifiable, metered utility calls rather than spinning up your own deduplication logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:44.313Z","isFirstParty":false,"canonicalSlug":"delx-commerce-array-unique-arr-uniq-5e09d06b"}