# centralcity.ai JSON Path Extractor

> centralcity.ai JSON Path Extractor is a paid API for AI agents from centralcity.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-19).

Extracts values from a JSON document using a dot-bracket path expression (e.g. items[*].price), returning up to 1000 matches.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_rkxfinzvukkyhxux?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/centralcity-ai-json-path-extractor-7c6d3ae7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sum7zmTQV5GnOKFEnjk5B

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 centralcity-ai-json-path-extractor-7c6d3ae7 -d '<json body>'
```

Example prompt: Pull out all the price values from this JSON using the path items[*].price — here's the document: {"items":[{"name":"apple","price":1.2},{"name":"banana","price":0.5}]}

## When to prefer this

Use this endpoint when you need to extract one or more values from a JSON document using a path expression without writing custom parsing code. Ideal for agents processing API responses, config files, or structured data payloads where the schema is known and a dot-bracket path can target the desired fields. Prefer this over general-purpose code execution when you want a lightweight, deterministic, pay-per-call extraction without spinning up a runtime.

## Known failure modes

- Invalid JSON input returns an error — JSON must be well-formed and under 64 KiB
- Malformed or unsupported path expression returns an error or empty result
- Path matches nothing — returns an empty array
- JSON document exceeds 64 KiB size limit — rejected with an error
- More than 1000 matches — only the first 1000 are returned

## How this service works

Picks values out of a JSON document by a path such as items[*].price or a.b[0].c, at most 1000 matches.

## Output

An array of up to 1000 values matched by the given path expression within the JSON document, such as strings, numbers, objects, or arrays found at the specified location.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "json": {
   "type": "string",
   "description": "The JSON document, at most 64 KiB."
  },
  "path": {
   "type": "string",
   "description": "The path: names joined by dots, [n] for an array index, [*] or .* for every item, [\"name\"] for any key; an optional leading $."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/centralcity-ai-json-path-extractor-7c6d3ae7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from centralcity.ai](https://www.zero.xyz/host/centralcity.ai/llms.txt)
