# VeritonHTMLJSON

> VeritonHTMLJSON is a paid API for AI agents from veriton-html-json-api.netlify.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Extracts structured JSON (title, meta, headings, links, images) from a raw HTML string, with optional CSS selector filtering.

## Facts

- Endpoint: POST https://veriton-html-json-api.netlify.app/v1/html-to-json
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/veritonhtmljson-fa6bf5dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_va_P9mxPxOTsU4mASLcTy

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 veritonhtmljson-fa6bf5dc -d '<json body>'
```

Example prompt: Parse this HTML and give me all the headings, links, and images as structured JSON — and only return up to 20 results for each category.

## When to prefer this

Use this endpoint when you already have raw HTML in hand and need it quickly decomposed into structured JSON fields — especially when you want to filter by a specific CSS selector rather than extracting everything. It is purpose-built for agent pipelines that receive HTML from a fetch/scrape step and need structured metadata without running a full browser.

## Known failure modes

- Malformed or empty HTML input returns an error or empty fields
- CSS selector that matches nothing returns empty arrays for that category
- Limit of 0 or negative integer may return empty or error response
- Extremely large HTML documents may time out or hit size limits
- Invalid selector syntax may cause a parsing error

## How this service works

Extract structured JSON from an HTML string for agents (title, meta, headings, links, images, optional CSS selector). $0.02 USDC/call on Base.

## Output

A structured JSON object containing the page title, meta tag data, headings (h1-h6), all links (href + anchor text), and image URLs found in the HTML, filtered to the specified CSS selector and capped at the given limit.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "description": "Raw HTML document or fragment"
  },
  "limit": {
   "type": "integer",
   "default": 40,
   "description": "Max matches"
  },
  "selector": {
   "type": "string",
   "description": "Optional CSS selector"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/veritonhtmljson-fa6bf5dc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from veriton-html-json-api.netlify.app](https://www.zero.xyz/host/veriton-html-json-api.netlify.app/llms.txt)
