{"uid":"cap_jYys9iB2-xVpglWdhh9VR","slug":"delx-commerce-json-array-dedupe-d35e561f","name":"Delx Commerce — JSON Array Dedupe","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/json-array-dedupe?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"integer"},"maxItems":256,"description":"Items supplied to JSON Array Dedupe; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"items":[1,2,3],"removed_count":1},"schema":"delx/util-json-array-dedupe/v1","status":"pass","evidence":{"retained":false,"input_sha256":"3c42996d5af9c5b6946b4d3a9f46200e1fc9c64301af9df720d1d5348499b73c","external_calls":0},"operation":"data_batch:json_array_dedupe"}},"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_EY2Y3HlNvCsUayyc1SyQy","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 integers from a JSON array and returns the deduplicated list with a count of removed items, processed in-memory without data retention.","exampleAgentPrompt":"Can you deduplicate this list of integers for me — [4, 7, 2, 7, 4, 9, 2, 1] — and tell me how many duplicates were removed?","exampleUseCases":[{"title":"Clean up duplicate IDs before processing","prompt":"I have a list of product IDs with duplicates: [101, 203, 101, 405, 203, 606]. Can you deduplicate them and tell me how many were removed?"},{"title":"Deduplicate aggregated event codes","prompt":"We collected event type codes from multiple sources and ended up with duplicates: [5, 12, 7, 5, 3, 12, 9, 7, 1]. Remove the duplicates and show me the clean list."},{"title":"Verify unique user IDs in a batch","prompt":"I merged two user ID lists and need to know if there are duplicates — here's the combined array: [1001, 1002, 1003, 1001, 1004, 1002]. Deduplicate it for me."}],"resultDescription":"Returns a JSON object containing the deduplicated integer array under `result.items`, the count of removed duplicates as `result.removed_count`, the operation name, a status of `pass`, and a verifiable evidence block including whether data was retained (always false), the SHA256 hash of the input, and the number of external calls made (always 0).","failureModes":["Array exceeds 256 items — rejected with validation error","Non-integer values in the array — schema validation failure","Malformed JSON body — request parsing error","Payment not included or invalid — 402 payment required response"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, privacy-preserving, verifiable deduplication of an integer array (up to 256 items) without signing up for a service. Ideal for AI agents that need transparent, pay-per-call utility operations with cryptographic evidence of in-memory-only processing. Prefer it over general-purpose code execution when auditability and no data retention are priorities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:52.480Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-array-dedupe-d35e561f"}