# JSON Path Value Extractor

> JSON Path Value Extractor is a paid API for AI agents from json-data-tools.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Extracts a single value from a JSON document by a dot/bracket path expression, returning the value and its type, with precise error reporting if the path breaks.

## Facts

- Endpoint: GET https://json-data-tools.x402tookit.com/json-path?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-path-value-extractor-7b0d5ce0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7VHNMKljLKJxR4_L4FLD3

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 json-path-value-extractor-7b0d5ce0
```

Example prompt: From this JSON — {"users":[{"name":"Alice","age":30},{"name":"Bob","age":25}]} — extract the value at path $.users[0].name and tell me what type it is.

## When to prefer this

Choose this endpoint when you need to extract a single, specific value from a JSON document using a path expression and want precise diagnostics if the path fails. It is ideal for processing API responses, debugging pipeline data, or safely navigating deeply nested structures where you need the type alongside the value. Prefer it over full JSON parsing or transformation endpoints when you only need one targeted field and clear error location reporting.

## Known failure modes

- Invalid JSON input — returns parse error with position
- Path does not exist — reports exactly which segment of the path broke and what was found at that point
- Malformed path expression — returns error describing invalid path syntax
- Empty json or path parameters — returns validation error
- Array index out of bounds — reports the index and actual array length

## How this service works

Extract one value from JSON by a simple path such as a.b[0].c, with its type; reports exactly where a path breaks.

## Output

Returns the extracted value as a string, its data type (string, number, boolean, null, object, array), and the source path. If the path does not resolve, reports exactly where it breaks — which segment failed and what was found instead.

## 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",
     "required": [
      "json",
      "path"
     ],
     "properties": {
      "json": {
       "type": "string",
       "description": "The JSON text"
      },
      "path": {
       "type": "string",
       "description": "Path like $.users[0].name"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "type": {
       "type": [
        "null",
        "string"
       ]
      },
      "value": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ]
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-path-value-extractor-7b0d5ce0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from json-data-tools.x402tookit.com](https://www.zero.xyz/host/json-data-tools.x402tookit.com/llms.txt)
