# 24K Labs JSONPath Extractor

> 24K Labs JSONPath 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).

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

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/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/24k-labs-jsonpath-extractor-08bfc149
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nJ27ZYhubf7rHIXX6jyRo

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 24k-labs-jsonpath-extractor-08bfc149 -d '<json body>'
```

Example prompt: From this JSON blob, extract the values at the paths 'meta.total' and 'items[0].name' for me: {"meta":{"total":42},"items":[{"name":"Widget A"},{"name":"Widget B"}]}

## When to prefer this

Use this endpoint when you need to surgically extract one or more specific fields from a JSON object without transmitting or processing the full payload. Ideal for pipelines that receive large API responses and need only a subset of fields, or when building lightweight data transformations that require path-based field selection. Prefer this over full JSON parsing libraries when operating in an agentic context where you want a simple, stateless micro-service call for field extraction.

## Known failure modes

- Invalid JSONPath expression returns an error or empty result
- Malformed JSON input causes a parsing error
- Path not found in JSON returns null or an explicit not-found response
- Deeply nested or very large JSON blobs may hit size limits
- Type mismatch when accessing array index on a non-array 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 expressions from the input JSON blob — either a single value or a set of matched values, scoped to exactly the fields requested.

## 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/24k-labs-jsonpath-extractor-08bfc149/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)
