# Machine Shop – HTML Link Extractor

> Machine Shop – HTML Link Extractor is a paid API for AI agents from api.pay-forge.online, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-20).

Extracts and returns all hyperlinks (URL and anchor text) from a supplied HTML document string

## Facts

- Endpoint: POST https://api.pay-forge.online/v1/html-links?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/machine-shop-html-link-extractor-62124230
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FuVuQr-nD3xuiRQtQluqy

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 machine-shop-html-link-extractor-62124230 -d '<json body>'
```

Example prompt: Extract all the hyperlinks from this HTML — including each link's URL and display text: <paste HTML here>. Use https://example.com as the base URL for resolving relative links.

## When to prefer this

Choose this endpoint when you have raw HTML content and need a structured list of all hyperlinks it contains, especially when you want anchor text alongside URLs. It is well-suited for agents processing fetched page source, inspecting API response documents, or auditing HTML snippets without needing a live browser or full crawl.

## Known failure modes

- HTML exceeds 50,000 character limit — request is rejected
- Malformed or non-HTML input returns an empty links array or parsing error
- Missing base_url means relative links are returned unresolved
- No links found in document returns an empty array

## How this service works

Turn Apify product scrape results into safe catalog updates with Catalog Update Gate. Find evidence in supplied documents, compare snapshots, extract typed JSON fields, inspect x402 quotes and assess API migrations. Preview inputs, evidence and cost for free. No live web search, scheduled monitoring or third-party purchasing.

## Output

A JSON object containing a 'links' array, where each element has a 'url' field (the resolved hyperlink destination) and a 'text' field (the visible anchor text). Relative URLs are resolved against the provided base_url if supplied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "title": "Html",
   "maxLength": 50000
  },
  "base_url": {
   "type": "string",
   "title": "Base Url",
   "default": "",
   "maxLength": 2048
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "links": [
   {
    "url": "https://example.com",
    "text": "Example"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/machine-shop-html-link-extractor-62124230/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.pay-forge.online](https://www.zero.xyz/host/api.pay-forge.online/llms.txt)
