{"uid":"cap_7hbVhNtLasp5xe867S3Vw","slug":"delx-commerce-sort-keys-b7ea5598","name":"Delx Commerce Sort Keys","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/sort-keys?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"object":{"type":"object","description":"Input field: object."}}},"responseSchema":{"type":"json","example":{"keys":["a","b"],"count":2,"object":{"a":2,"b":1},"schema":"delx/util-sort-keys/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_HvZDInfxNfQZHIXX00syv","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":"Returns the sorted keys of a JSON object along with a count and the original object","exampleAgentPrompt":"Sort the keys of this JSON object for me: {\"banana\": 2, \"apple\": 5, \"cherry\": 1} — I need them in alphabetical order with a count.","exampleUseCases":[{"title":"Normalize API response key order","prompt":"Take this API response object and sort all its keys alphabetically so I can compare it consistently: {\"zoneId\": \"us-east\", \"accountId\": \"abc123\", \"createdAt\": \"2024-01-01\"}."},{"title":"Count and sort config fields","prompt":"I have a config object {\"timeout\": 30, \"retries\": 3, \"host\": \"localhost\", \"port\": 8080} — can you sort its keys and tell me how many there are?"},{"title":"Prepare object for canonical serialization","prompt":"Sort the keys of this object so I can produce a deterministic hash of it: {\"userId\": \"u1\", \"action\": \"login\", \"timestamp\": 1700000000}."}],"resultDescription":"Returns a JSON object with: a 'keys' array containing all keys of the input object sorted alphabetically, a 'count' integer with the number of keys, the original 'object', and a 'schema' string identifying the response format as 'delx/util-sort-keys/v1'.","failureModes":["Non-object input (e.g. array or primitive) may result in an error or unexpected behavior","Empty object returns keys=[] and count=0","Missing 'object' field in request body causes a validation error","Payment failure via x402 prevents the call from completing"],"whenToPreferThis":"Use this when you need a quick, pay-per-use, no-signup utility to sort the keys of a JSON object and get a count — especially in agent pipelines where deterministic key ordering is needed for hashing, comparison, or canonical serialization. Prefer this over writing custom sorting logic when operating in an environment that supports x402 micropayments on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:05.138Z","isFirstParty":false,"canonicalSlug":"delx-commerce-sort-keys-b7ea5598"}