{"uid":"cap_NC5Whp7EpFpP3Up_0OwOS","slug":"json-array-dedupe-0aaf7a94","name":"JSON Array Dedupe","description":"JSON Array Dedupe: JSON Array Dedupe removes duplicate JSON array values while preserving first occurrence from bounded caller-supplied values without an external provider. Call JSON Array Dedupe before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Array Dedupe as versioned deterministic JSON. Price: $0.001 USDC via x40…","url":"https://api.delx.ai/api/v1/x402/json-array-dedupe","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_S7iGQa9WBFPJBEFnmqC6l","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 a JSON integer array, preserving the first occurrence of each unique value and returning counts and normalized results.","exampleAgentPrompt":"Can you deduplicate this list of integers for me — [3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5] — and give me back only the unique values in their first-occurrence order?","exampleUseCases":[{"title":"Clean up duplicate order IDs","prompt":"I have a list of order IDs that may contain duplicates: [1021, 1034, 1021, 1099, 1034, 1200]. Can you deduplicate them and give me back just the unique IDs in the order they first appeared?"},{"title":"Normalize sensor readings before processing","prompt":"Before I send this batch of sensor readings to our analytics pipeline, can you remove any duplicate integer values from this array: [42, 7, 42, 15, 7, 99, 15, 3]?"},{"title":"Dedupe tag IDs before downstream API call","prompt":"I'm about to post a list of category tag IDs to our CMS but I think there are repeats — can you clean up [5, 12, 5, 8, 12, 20, 8, 33] and give me only the unique ones, preserving the original order?"}],"resultDescription":"Returns a versioned deterministic JSON object containing the deduplicated integer array (preserving first-occurrence order), counts of unique vs. duplicate values, and normalized output conforming to a versioned result contract.","failureModes":["Array exceeds 256-item maximum — request rejected","Non-integer values in the array — schema validation failure","Empty array input — may return empty result or validation error","Malformed JSON body — parse error response","Payment not included or insufficient — 402 Payment Required"],"whenToPreferThis":"Use this endpoint when an agent needs a lightweight, stateless, pay-per-call deduplication of integer arrays (up to 256 items) before handing structured data to a downstream tool with a strict contract. Prefer it over custom deduplication logic when you need a versioned, auditable result contract with counts included in the response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:15:15.188Z","isFirstParty":false}