{"uid":"cap_rDiaWHRve7FOFebfFHXK6","slug":"json-array-group-by-key-b26d627c","name":"JSON Array Group By Key","description":"JSON Array Group By Key: JSON Array Group By Key groups object rows by a selected top-level key from bounded caller-supplied values without an external provider. Call JSON Array Group By Key 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 Group By Key as versioned deterministic JSON. Price: $0.001 USDC via x4…","url":"https://api.delx.ai/api/v1/x402/json-array-group-by-key","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"key":{"type":"string","maxLength":8192,"description":"Key supplied to JSON Array Group 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 Group By Key; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"groups":[{"items":[{"id":1,"team":"a"},{"id":3,"team":"a"}],"value":"a"},{"items":[{"id":2,"team":"b"}],"value":"b"}],"group_count":2},"schema":"delx/util-json-array-group-by-key/v1","status":"pass","evidence":{"retained":false,"input_sha256":"e13f35d5b81a3f1808078d9bbb061844639be95ac142b8481906eb21ac179980","external_calls":0},"operation":"data_batch:json_array_group_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_Rjdusxe2f7pHhREI9uJb6","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":"Groups an array of JSON objects by a specified top-level key, returning counts and grouped results as deterministic versioned JSON.","exampleAgentPrompt":"Group this list of order records by their 'status' field and tell me how many are in each group: [{\"status\":\"pending\",\"id\":1},{\"status\":\"shipped\",\"id\":2},{\"status\":\"pending\",\"id\":3}].","exampleUseCases":[{"title":"Summarize orders by status","prompt":"I have a JSON array of 50 orders, each with a 'status' field that can be pending, shipped, or delivered — can you group them by status and tell me the count in each group?"},{"title":"Partition user list by role","prompt":"Take this array of user objects and group them by the 'role' field so I can see how many admins, editors, and viewers I have."},{"title":"Bucket log events by severity","prompt":"Here's a batch of log entries as a JSON array — group them by the 'severity' key so I can see how many are info, warning, and error."}],"resultDescription":"A versioned deterministic JSON object containing the grouped data as a map from each unique key value to its array of matching records, along with per-group counts and normalized values. The response adheres to a versioned result contract for reproducibility.","failureModes":["Key not found at top level of objects — returns empty groups or error indicating missing key","Array exceeds 256 items limit — request rejected","Object in array exceeds 128 properties limit — request rejected","Key string exceeds 8192 character limit — request rejected","Malformed JSON input — parsing error returned","Payment failure via x402 — 402 response before processing"],"whenToPreferThis":"Use this endpoint when an agent needs to group or partition a bounded in-memory JSON array by a known top-level key without setting up a database query or external aggregation service. Ideal for preprocessing structured data before handing it to a downstream tool with a stricter contract, or when you need deterministic versioned output for reproducibility. Best for arrays up to 256 objects with up to 128 properties each.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:09:59.452Z","isFirstParty":false}