# CoCo JSON Query Tool

> CoCo JSON Query Tool is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Executes a named query against a JSON data payload and returns the extracted result

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/json-query?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-json-query-tool-e3fa16c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rIZ37HQeA8Z3e0m8dI1uo

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 coco-json-query-tool-e3fa16c2
```

Example prompt: Query this JSON data for the 'name' field: {"name": "Alice", "age": 30} — run the query 'name' and give me the result.

## When to prefer this

Use this endpoint when you need to extract a specific value or field from a JSON data structure using a simple named query expression, particularly in lightweight agentic workflows where you want to offload JSON parsing to a remote tool. Suitable for one-off field lookups on small JSON payloads.

## Known failure modes

- Missing or malformed 'data' query parameter returns an error or empty result
- Invalid query expression that doesn't match any key in the JSON returns null or empty result
- Malformed JSON in the 'data' parameter causes a parse error
- Missing required 'query' parameter results in a bad request response

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

A JSON object containing two fields: 'query' (the query expression that was run) and 'result' (the extracted value from the provided JSON data).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "data": {
       "type": "string"
      },
      "query": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "query",
      "result"
     ]
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "name",
  "result": "example"
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-json-query-tool-e3fa16c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
