{"uid":"cap_2p6Yf1jNpllAyga51p63D","slug":"delx-commerce-unique-sorted-array-utility-dbddf2e5","name":"Delx Commerce — Unique Sorted Array Utility","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/unique-sorted?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-unique-sorted/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_PG7G-BYmR9y9h6dWHJD8Z","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 elements from an array and returns them in sorted order, with a count of unique items.","exampleAgentPrompt":"Take this list [5, 3, 1, 3, 2, 5, 1] and remove all the duplicates, then sort what's left — tell me how many unique values there are too.","exampleUseCases":[{"title":"Deduplicating a tag list","prompt":"I have this list of tags from user submissions: ['python','javascript','python','rust','javascript','go'] — remove the duplicates and sort them alphabetically so I can store a clean version."},{"title":"Counting unique product SKUs","prompt":"Here's a list of scanned product SKUs from today's inventory: [1042, 2031, 1042, 3005, 2031, 4001] — can you get me just the unique ones in order and tell me how many there are?"},{"title":"Cleaning survey response options","prompt":"I collected these numeric ratings from a survey: [3,5,4,3,2,5,4,1,2] — deduplicate and sort them so I can see what distinct values respondents actually submitted."}],"resultDescription":"Returns a JSON object with: 'items' (an array of deduplicated, sorted elements), 'count' (the number of unique items), and 'schema' identifier ('delx/util-unique-sorted/v1').","failureModes":["Missing or non-array 'items' field returns a validation error","Empty array input may return count 0 with empty items array","Non-comparable mixed types in array may cause sorting errors","Payment failure via x402 prevents endpoint execution","Network timeout on large arrays"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-call utility to deduplicate and sort a list without setting up auth or subscriptions. Ideal for agents that encounter array deduplication as a one-off step in a pipeline and want verifiable, micropayment-priced execution on Base or Solana via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:51.972Z","isFirstParty":false,"canonicalSlug":"delx-commerce-unique-sorted-array-utility-dbddf2e5"}