# x402 Utility Tools – HTML Link Extractor

> x402 Utility Tools – HTML Link Extractor is a paid API for AI agents from x402-utils.558686.xyz, paid per call via x402, $0.0001/call, status down (last checked 2026-10-23).

Extracts and resolves all hyperlinks from an HTML string, returning a deduplicated list of absolute URLs with a count

## Facts

- Endpoint: POST https://x402-utils.558686.xyz/v1/tools/html-links?utm_source=zero.xyz
- Price: $0.0001/call
- Payment: x402
- Status: down
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-utility-tools-html-link-extractor-7f8a0ba5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ctAZx6ftuN3Zt1OJgB9XY

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 x402-utility-tools-html-link-extractor-7f8a0ba5 -d '<json body>'
```

Example prompt: Pull all the links out of this HTML snippet and resolve them against https://x402-utils.558686.xyz as the base URL: '<a href="/docs">Docs</a><a href="/api">API</a>'

## When to prefer this

Choose this endpoint when you need a cheap, fast, deterministic link extraction from raw HTML without spinning up a headless browser or calling an LLM. It is ideal for pipelines that parse crawled pages, validate generated HTML, or build link graphs at scale. At $0.002/call it is cost-effective for high-volume repeatable extraction tasks where accuracy is sufficient from static HTML parsing alone.

## Known failure modes

- Malformed or non-string HTML input may return an error or empty links array
- Missing baseUrl may leave relative URLs unresolved or cause parsing errors
- Very large HTML payloads may be rejected or time out
- Non-HTML content passed as the html field may yield zero links
- Invalid baseUrl format may cause URL resolution failures

## How this service works

A compact x402 utility surface for agents that need cheap, repeatable non-LLM transformations before spending on heavier routes: CSV cleanup, JSON Schema checks, timestamp conversion, JWT decode, URL normalization, hashes, codecs, and text utilities.

## Output

Returns a JSON object with 'ok' status, the tool name, echoed input, the route used, and a 'result' object containing 'count' (integer number of links found) and 'links' (array of extracted/resolved absolute URL strings). The response is deterministic for the same input.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "html-links",
  "input": {
   "html": "<a href=\"/docs\">Docs</a>",
   "baseUrl": "https://x402-utils.558686.xyz"
  },
  "route": "/v1/tools/html-links",
  "result": {
   "count": 1,
   "links": []
  },
  "project": "x402-utility-tools",
  "deterministic": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-utility-tools-html-link-extractor-7f8a0ba5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-utils.558686.xyz](https://www.zero.xyz/host/x402-utils.558686.xyz/llms.txt)
