# Agent Data Tools: JSON Minify

> Agent Data Tools: JSON Minify is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Strips whitespace from a JSON string and returns the minified version along with before/after character counts

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/json/minify?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-json-minify-0f7390fe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KKuXLGiiNtGcu3iDCh1gg

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 agent-data-tools-json-minify-0f7390fe
```

Example prompt: Can you minify this JSON for me? {"name": "Alice", "age": 30} — I want it stripped of all whitespace so it's as compact as possible.

## When to prefer this

Use this endpoint when you need a quick, no-auth, pay-per-call JSON minification utility that also returns size statistics. Ideal for agents that need to compress JSON payloads inline without spinning up local processing, especially within the Agent Data Tools ecosystem where other crypto, web, and data tools are also available.

## Known failure modes

- Invalid or malformed JSON input causes a parse error response
- Empty text parameter results in an error
- Non-JSON text (e.g. XML, plain text) passed as input causes failure
- Very large JSON payloads may be rejected or time out

## How this service works

Remove all unnecessary whitespace from JSON and report the size before and after. Use to shrink payloads or prompts.

## Output

Returns a JSON object containing the minified JSON string, the character count before minification, and the character count after minification, allowing the caller to see the compression ratio achieved.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "text": {
   "type": "string",
   "description": "The JSON text"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": "number"
  },
  "before": {
   "type": "number"
  },
  "minified": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-json-minify-0f7390fe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
