# dataforge — JSONPath Query API

> dataforge — JSONPath Query API is a paid API for AI agents from dataforge.x.c00l.site, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Executes a JSONPath query against a structured data payload and returns matching values, paths, and JSON Pointers

## Facts

- Endpoint: POST https://dataforge.x.c00l.site/query
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dataforge-jsonpath-query-api-a8a83005
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kkUYce4r9klQg7TRFT_qT

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 dataforge-jsonpath-query-api-a8a83005 -d '<json body>'
```

Example prompt: Run a JSONPath query `$.store.book[*].author` against this JSON document and return all matching author names, their full paths, and JSON Pointer equivalents.

## When to prefer this

Choose this endpoint when you need to programmatically query a JSON document using JSONPath syntax and want both the matched values AND their structural locations (paths + JSON Pointers) in a single deterministic call. Prefer it over manual parsing or regex approaches when the document structure is nested and path provenance matters.

## Known failure modes

- Invalid JSONPath expression returns a parsing error
- Malformed or non-JSON input document causes a parse failure
- JSONPath expression matches nothing — returns count:0 with empty arrays
- Deeply nested documents with very large payloads may hit size limits
- Payment failure via x402 if USDC balance is insufficient

## How this service works

Deterministic conversion, JSONPath query, JSON Schema inference, declarative transforms and RFC 6902 diff/patch across CSV, TSV, JSON, JSONL, YAML, TOML, XML, INI and properties. Pay per call with x402 (USDC on Base).

## Output

Returns a JSON object containing: `count` (number of matches), `paths` (array of JSONPath strings pointing to each match), `matches` (array of matched values), and `pointers` (array of RFC 6901 JSON Pointer equivalents for each match).

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "paths": [
   "$.store.book[0].author"
  ],
  "matches": [
   "Nigel Rees"
  ],
  "pointers": [
   "/store/book/0/author"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dataforge-jsonpath-query-api-a8a83005/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dataforge.x.c00l.site](https://www.zero.xyz/host/dataforge.x.c00l.site/llms.txt)
