{"uid":"cap_R6KvL2L2Myy_AV1-_oAtz","slug":"delx-commerce-json-array-index-by-key-f513eee7","name":"Delx Commerce — JSON Array Index By Key","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-index-by-key?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"key":{"type":"string","maxLength":8192,"description":"Key supplied to JSON Array Index By Key; used only for this bounded calculation and processed in memory without retention."},"items":{"type":"array","items":{"type":"object","maxProperties":128,"additionalProperties":true},"maxItems":256,"description":"Items supplied to JSON Array Index By Key; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"index":{"\"a\"":{"id":"a","value":1},"\"b\"":{"id":"b","value":2}},"duplicate_keys":[]},"schema":"delx/util-json-array-index-by-key/v1","status":"pass","evidence":{"retained":false,"input_sha256":"3ba5729409fe1785540d75284648b16e6e90027012b970c2a4b84dc9207b7c6b","external_calls":0},"operation":"data_batch:json_array_index_by_key"}},"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_AyUleyOmgcahZBOBzQsgh","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":"Indexes an array of JSON objects by a specified key field, returning a dictionary keyed by each object's key value, with duplicate key detection.","exampleAgentPrompt":"I have a list of product objects like [{\"id\":\"a\",\"value\":1},{\"id\":\"b\",\"value\":2}] — index them by the 'id' field so I can do fast lookups by product ID.","exampleUseCases":[{"title":"Build lookup map from API response","prompt":"I just fetched a list of user records from our database as a JSON array, each with a 'userId' field. Can you index them by 'userId' so I can look up any user instantly without scanning the whole list?"},{"title":"Detect duplicate keys in dataset","prompt":"I have an array of 200 invoice objects, each supposed to have a unique 'invoiceNumber'. Index them by 'invoiceNumber' and tell me if any duplicates show up."},{"title":"Restructure config entries by name","prompt":"I have a JSON array of config entries, each with a 'name' key. Transform it into a dictionary indexed by 'name' so my agent can quickly pull up any config by its name."}],"resultDescription":"Returns a JSON object with an 'index' property containing the key-indexed dictionary (each unique key maps to its corresponding object), a 'duplicate_keys' array listing any keys that appeared more than once, a status field ('pass'), evidence metadata including input SHA-256 hash and a flag confirming no data retention, and an operation identifier.","failureModes":["Key field not present in one or more objects — missing keys may be omitted from index or cause an error","Array exceeds 256 items — request rejected","Object exceeds 128 properties — request rejected","Key string exceeds 8192 characters — rejected","Payment not included or insufficient USDC — 402 response blocking execution","Malformed JSON input — parsing error returned"],"whenToPreferThis":"Choose this endpoint when you need a fast, verifiable, pay-per-call utility to convert a JSON array into a key-indexed dictionary without setting up any account or SDK. It is ideal for AI agents that need deterministic data restructuring with cryptographic evidence of processing (SHA-256 input hash, no-retention confirmation), priced at a fixed $0.001 USDC per call on Base or Solana. Prefer it over writing custom indexing logic inline when auditability or reproducibility of the transformation matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:02.003Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-array-index-by-key-f513eee7"}