# JSONPath Extract

> JSONPath Extract is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Evaluates a JSONPath expression against a JSON document and returns all matching values with a count

## Facts

- Endpoint: GET https://intel.rallylive.ca/dev/json-path
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/jsonpath-extract-e4cdfc11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6ax0KY2bNy83aXEwWsDq8

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 jsonpath-extract-e4cdfc11
```

Example prompt: I have a JSON document with a nested store structure — can you run the JSONPath expression $.store.book[*].author against it and tell me all the matching values and how many there are?

## When to prefer this

Choose this endpoint when you need to query or extract data from a JSON document using standard JSONPath syntax, especially when the document has deeply nested structures, arrays requiring negative indexing, wildcard traversal, or keys containing spaces. Ideal for agents that receive raw JSON API responses and need to pull out specific fields without writing custom parsing code. At $0.01 per call it is cost-effective for one-off or low-frequency extraction tasks.

## Known failure modes

- Invalid JSONPath expression syntax returns an error
- Malformed or unparseable JSON document causes a parse failure
- No matching nodes found returns an empty result set with count zero
- Missing required input parameter returns a 400-level error
- Payment not included or insufficient funds results in a 402 Payment Required response

## How this service works

JSONPath extraction: evaluates a path like $.store.book[*].author, $..price, $.items[-1], $['key with spaces'] against a JSON document and returns all matching values with a count. Handles recursive descent, wildcards, negative indexes and bracket keys. $0.01 per query.

## Output

Returns all values matched by the JSONPath expression within the provided JSON document, along with a count of how many matches were found. Supports recursive descent (..), wildcards (*), negative array indexes, and bracket-notation keys with spaces.

## 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": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/jsonpath-extract-e4cdfc11/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
