# Text-to-HTML Ratio Decision

> Text-to-HTML Ratio Decision is a paid API for AI agents from webtechnik.halowerk.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-17).

Passively fetches a public URL and evaluates whether its text-to-HTML ratio meets an accepted threshold, returning an observation, verdict, evidence source, limitations, and recommended action.

## Facts

- Endpoint: POST https://webtechnik.halowerk.com/v1/text-html-ratio-decision?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-to-html-ratio-decision-a0e75b11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jKzBqicWQzmSegzxbcW0w

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 text-to-html-ratio-decision-a0e75b11 -d '<json body>'
```

Example prompt: Can you check the text-to-HTML ratio for https://example.com and tell me whether it passes the standard threshold, with the actual observation and what I should do about it?

## When to prefer this

Use this endpoint when you need a lightweight, passive, single-criterion verdict on whether a public webpage's text-to-HTML ratio meets an established threshold — without crawling, login, or side effects. Prefer it over a full site audit when you only need this specific metric, or as part of a checklist-style pipeline that assembles individual quality signals. It is especially useful in CI/CD pre-launch gates, SEO content checks, or agent-driven monitoring loops for content density regressions.

## Known failure modes

- Target URL is unreachable or returns a non-200 status — check will fail with no observation
- Target is behind authentication or a paywall — passive check cannot access content
- Highly JavaScript-rendered pages may yield inaccurate ratios since only static HTML is fetched
- Malformed or non-HTTP(S) URL input causes validation error
- Very large pages may hit fetch timeouts or size limits

## How this service works

Text-to-HTML ratio decision fetches current public evidence from the supplied target and evaluates the documented criterion. It returns the observation, threshold, verdict, exact evidence source, limitations and a mode-specific action. The check is passive: no login attempt, payload injection, exploit, purchase, form submission or load test is performed.

## Output

Returns an observation of the measured text-to-HTML ratio, the accepted threshold, a pass/fail verdict, the exact evidence source (the fetched URL), any limitations of the passive check, and a mode-specific recommended action to remediate or confirm the finding.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "target": {
   "type": "string",
   "maxLength": 2048,
   "minLength": 3,
   "description": "Public HTTP(S) URL or domain to inspect. A bare domain is normalized to HTTPS."
  },
  "context": {
   "type": "object",
   "description": "Optional non-secret correlation labels returned unchanged only in the request lifecycle.",
   "maxProperties": 12,
   "additionalProperties": {
    "type": [
     "string",
     "number",
     "boolean",
     "null"
    ]
   }
  },
  "baseline": {
   "type": [
    "object",
    "null"
   ],
   "description": "Optional baseline returned by a previous snapshot call.",
   "additionalProperties": true
  },
  "compare_url": {
   "type": "string",
   "maxLength": 2048,
   "minLength": 3,
   "description": "Optional public comparison URL. Used by change and monitoring services."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-to-html-ratio-decision-a0e75b11/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from webtechnik.halowerk.com](https://www.zero.xyz/host/webtechnik.halowerk.com/llms.txt)
