# Delx Commerce Sort Keys

> Delx Commerce Sort Keys is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Returns the sorted keys of a JSON object along with a count and the original object

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/sort-keys?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-sort-keys-b7ea5598
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7hbVhNtLasp5xe867S3Vw

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-sort-keys-b7ea5598 -d '<json body>'
```

Example prompt: Sort the keys of this JSON object for me: {"banana": 2, "apple": 5, "cherry": 1} — I need them in alphabetical order with a count.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

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'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "object": {
   "type": "object",
   "description": "Input field: object."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "keys": [
   "a",
   "b"
  ],
  "count": 2,
  "object": {
   "a": 2,
   "b": 1
  },
  "schema": "delx/util-sort-keys/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-sort-keys-b7ea5598/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
