# Delx Commerce JSON Keys Extractor

> Delx Commerce JSON Keys Extractor 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).

Extracts and lists the top-level keys from a serialized JSON text string, returning their names and count.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-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-json-keys-extractor-b43fab89
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DMw_28yNM9vKd5GhZUBe6

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-json-keys-extractor-b43fab89 -d '<json body>'
```

Example prompt: Can you pull out all the top-level keys from this JSON for me: {"agent":"ready","status":"ok","count":5}?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-use, no-signup solution for extracting top-level key names from a JSON string — especially in agent workflows where USDC micropayment via x402 is already integrated and you want verifiable, per-call billing without subscription overhead.

## Known failure modes

- Invalid or malformed JSON input causes a parse error response
- Empty string input returns zero keys or an error
- Deeply nested JSON returns only top-level keys, not nested keys — users expecting full recursive key extraction may be surprised
- Payment failure or insufficient USDC balance results in HTTP 402 rejection before processing

## 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 containing an array of top-level key names found in the input JSON text, the count of those keys, and a schema identifier string (e.g. 'delx/json-keys/v1').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "json_text": {
   "type": "string",
   "description": "Serialized JSON text to inspect or reformat."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "keys": [
   "agent",
   "ready"
  ],
  "count": 2,
  "schema": "delx/json-keys/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-json-keys-extractor-b43fab89/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)
