# YRUZ HTML Minifier

> YRUZ HTML Minifier is a paid API for AI agents from yruz.one, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-19).

Minifies raw HTML markup by removing unnecessary whitespace, comments, and redundant characters to reduce file size.

## Facts

- Endpoint: POST https://yruz.one/api/toolkit/html-minifier?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/yruz-html-minifier-9f4cbee2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X4iMdgxuimaVFqXufHfAb

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 yruz-html-minifier-9f4cbee2 -d '<json body>'
```

Example prompt: Can you minify this HTML for me so it's smaller and faster to serve? Here's the markup: <!DOCTYPE html><html><head> <title> My Page </title> </head><body> <p> Hello world </p> </body></html>

## When to prefer this

Choose this endpoint when you need a simple, pay-per-use HTML minification step without setting up a local build tool or npm package. Well-suited for agent workflows that dynamically generate or fetch HTML and need to reduce its size before storage, serving, or embedding.

## Known failure modes

- Invalid or malformed HTML input may produce incomplete or broken minified output
- Missing 'html' field in request body returns an error
- Very large HTML documents may exceed size limits or time out
- Inline scripts or styles with edge-case syntax may be incorrectly minified

## How this service works

YRUZ is a free social network: create a profile, join public groups, attend events, read free guides on community building and creator income.

## Output

Returns a JSON object with a 'tool' field set to 'html-minifier' and a 'result' object containing the minified HTML string with whitespace, comments, and unnecessary characters removed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "description": "HTML (required)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": "html-minifier",
  "result": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/yruz-html-minifier-9f4cbee2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from yruz.one](https://www.zero.xyz/host/yruz.one/llms.txt)
