# JSONPath Field Extractor

> JSONPath Field Extractor is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Extract one or more specific values from a JSON blob using dot-notation or bracket-path expressions (e.g. items[2].name, meta.total).

## Facts

- Endpoint: POST https://api.24klabs.ai/api/jsonpath-extract
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/jsonpath-field-extractor-27773053
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Pn7EyNDgl1ljWSlYgIO6K

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-field-extractor-27773053 -d '<json body>'
```

Example prompt: I have a big JSON response from an API and I only need the value at data.users[0].email — can you extract just that field from the blob without returning the whole object?

## When to prefer this

Use this endpoint when you have a large or complex JSON payload and only need one or a few specific values — it avoids transmitting or processing the full object. Ideal for post-processing API responses inline inside an agent workflow when you know the exact path to the data. Prefer this over general-purpose JSON parsing when you want a lightweight, cost-effective extraction step without writing code.

## Known failure modes

- Path not found in JSON — returns null or an error if the specified key or index does not exist
- Malformed JSON input — error if the input blob is not valid JSON
- Invalid path syntax — error if the dot/bracket expression is not parseable
- Type mismatch — accessing an index on a non-array or a key on a non-object node

## How this service works

Extract one or many values from a JSON blob by dot/bracket path (e.g. items[2].name, meta.total). Pull just the fields you need instead of shipping the whole object.

## Output

Returns the extracted value(s) corresponding to the provided dot/bracket path(s) — could be a string, number, boolean, array, or nested object depending on what the path resolves to. Returns only the requested fields rather than the full JSON payload.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object"
  },
  "paths": {
   "type": "array"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "results": [
   {
    "path": "items[1].name",
    "found": true,
    "value": "b"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/jsonpath-field-extractor-27773053/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
