# Agent Prep – JSON Path Listing

> Agent Prep – JSON Path Listing is a paid API for AI agents from agent-prep.annushka1190.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Enumerates all JSON paths, their types, and values from an arbitrary JSON object, returning a flat list of dot-notation paths.

## Facts

- Endpoint: POST https://agent-prep.annushka1190.workers.dev/v1/json/paths
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-prep-json-path-listing-4e195aad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vsOhf5cgv-ailbDoAJUFW

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 agent-prep-json-path-listing-4e195aad -d '<json body>'
```

Example prompt: Can you give me a flat list of every JSON path, its type, and value from this object: {"user":{"id":42,"name":"Alice","address":{"city":"London"}}}?

## When to prefer this

Choose this endpoint when you need to programmatically enumerate all paths in an arbitrary or unknown JSON structure before passing data to an LLM — especially when you want to inspect field names, types, and values without writing custom traversal code. Ideal for pre-processing API responses, debugging unfamiliar schemas, or building field selectors for pipelines. Prefer it over manual parsing when the JSON depth or shape is unknown and you need a flat, inspectable list quickly.

## Known failure modes

- Missing 'input' field in request body returns a validation error
- Non-object body (array or primitive) may not be supported as top-level input
- Deeply nested or very large JSON objects may exceed processing limits
- Invalid JSON in the request body will return a parse error
- Payment not included or incorrect USDC amount will result in a 402 Payment Required response

## How this service works

Pre-LLM utilities for AI agents: structural JSON diff, JSON path listing, token estimation, text chunking, and truncation. Pay with USDC via x402 — no API keys.

## Output

Returns a JSON object with a 'paths' array. Each element contains a 'path' (dot-notation string key), 'type' (the JSON type of the value, e.g. number, string, boolean, object, array), and 'value' (the actual value at that path). This gives a fully flattened, traversable map of the input JSON structure.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "const": "json"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "paths": [
   {
    "path": "a",
    "type": "number",
    "value": 1
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-prep-json-path-listing-4e195aad/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-prep.annushka1190.workers.dev](https://www.zero.xyz/host/agent-prep.annushka1190.workers.dev/llms.txt)
