# Forest Web – Extract Anchor Links from HTML Page

> Forest Web – Extract Anchor Links from HTML Page is a paid API for AI agents from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Fetches a single static HTML page and returns a deduplicated, normalized set of all public HTTP(S) anchor links, classified as same-origin or cross-origin.

## Facts

- Endpoint: POST https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/page/links?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forest-web-extract-anchor-links-from-html-page-4971b4c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ReWyYzVXgcWOTXXBaITHE

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 forest-web-extract-anchor-links-from-html-page-4971b4c7 -d '<json body>'
```

Example prompt: Can you pull all the anchor links from https://example.com/blog and tell me which ones are same-origin versus cross-origin?

## When to prefer this

Choose this endpoint when you need a fast, bounded extraction of all anchor links from a single static HTML page without triggering further crawls. It is ideal for pre-crawl link discovery, outbound link auditing, or building a one-level link graph. Prefer it over full crawlers when you only need one page's links and want deterministic, deduplicated, normalized results at low cost.

## Known failure modes

- Non-public or paywalled URLs return no links or an access error
- URLs that serve JavaScript-rendered content (SPAs) return few or no links since only static HTML is parsed
- Invalid or malformed URL input is rejected by pattern validation
- Pages over response size limits may be truncated
- Network timeouts or unreachable hosts produce fetch errors
- HTTPS certificate errors on the target host may cause failures

## How this service works

Extract a bounded normalized set of public HTTP(S) anchor links from one static HTML page. Forest resolves relative and base URLs, deduplicates by final absolute URL and classifies returned links as same-origin or cross-origin. One page fetch only; no linked URL is requested or crawled. Base mainnet USDC

## Output

A bounded, deduplicated list of absolute HTTP(S) anchor link URLs extracted from the target page, each classified as same-origin or cross-origin relative to the input URL. Relative and base-tag URLs are resolved to their final absolute forms. No linked URLs are fetched or crawled — only the source page is retrieved.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "pattern": "^https?://",
   "maxLength": 2048,
   "minLength": 1,
   "description": "Public HTTP(S) URL to inspect, resolve, or compare."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forest-web-extract-anchor-links-from-html-page-4971b4c7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run](https://www.zero.xyz/host/http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/llms.txt)
