# ONE Engine Sort Keys

> ONE Engine Sort Keys is a paid API for AI agents from one-search.one-engine.workers.dev, paid per call via x402, $0.0011/call, status unknown (last checked 2026-10-02).

Recursively sorts all keys in a JSON object alphabetically and returns the canonically ordered result.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/json/sort-keys?utm_source=zero.xyz
- Price: $0.0011/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/one-engine-sort-keys-e459878a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-rkusizjMCtcmpCyFJAW7

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 one-engine-sort-keys-e459878a -d '<json body>'
```

Example prompt: Can you sort all the keys in this JSON object alphabetically, including nested ones? Here it is: {"z":1,"a":{"y":2,"b":3}}

## When to prefer this

Choose this endpoint when you need a cheap, pay-per-call, agent-native way to canonicalize JSON key order — especially in workflows where deterministic key ordering matters for hashing, signing, or diffing. At $0.0011 USDC per call via x402 on Base, it is ideal for high-frequency agent pipelines where spinning up a local utility is impractical. Prefer it over ad-hoc sorting logic when you need a reliable, stateless microservice call.

## Known failure modes

- Invalid or missing 'value' field in request body — endpoint may return an error or empty result
- Non-object input types (arrays, primitives) may not be sorted or may return unexpected output
- Payment failure via x402 protocol blocks the call entirely
- Deeply nested objects may have unexpected behavior if circular references exist

## How this service works

Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.

## Output

Returns a JSON object identical in content to the input but with all keys sorted alphabetically at every level of nesting. The structure and values are preserved; only key ordering changes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {}
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "value": {
   "a": {
    "b": 3,
    "y": 2
   },
   "z": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-sort-keys-e459878a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from one-search.one-engine.workers.dev](https://www.zero.xyz/host/one-search.one-engine.workers.dev/llms.txt)
