# AgentPage402 Link Extractor

> AgentPage402 Link Extractor is a paid API for AI agents from agentpage402-demo.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-21).

Extracts all hyperlinks from a given public webpage, returning each link's URL, anchor text, rel attributes, and internal/external classification

## Facts

- Endpoint: POST https://agentpage402-demo.onrender.com/v1/links?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentpage402-link-extractor-534140ae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lSHIkz04-JqmEchy8Vm3r

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 agentpage402-link-extractor-534140ae -d '<json body>'
```

Example prompt: Can you pull all the links from https://example.com/research and tell me which ones are internal vs external, along with their anchor text?

## When to prefer this

Use this endpoint when you need a structured, enumerated list of all hyperlinks on a specific public webpage, including anchor text and internal/external classification, for SEO auditing, link analysis, or research tasks. It is well-suited for lightweight, per-page link extraction at low cost ($0.01 USDC). It does not execute JavaScript, so prefer it for static HTML pages; for JavaScript-heavy SPAs, a headless browser tool would be more appropriate.

## Known failure modes

- Invalid or non-public URL returns an error
- Pages requiring JavaScript rendering return incomplete or empty link sets
- Credential-protected or private URLs are inaccessible
- Very large pages may be truncated
- Non-standard ports or credential-embedded URLs are rejected
- Page may contain misleading or untrusted content flagged via contentTrust field

## How this service works

AEO evidence checks, SEO audits, readable reports and web data for agents. Tools from 0.01 USDC; page audits 0.25; five-page audit packs 1.00 USDC via x402.

## Output

Returns a JSON object containing the page title, a list of link objects (each with URL, anchor text, rel attributes, and scope as 'internal' or 'external'), aggregate counts of total/internal/external links, the fetch timestamp, a truncated flag, and content trust warnings. Static HTML only; JavaScript is not executed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "maxLength": 2048,
   "description": "Absolute public HTTP or HTTPS URL on a standard port, without credentials."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com/research",
  "links": [
   {
    "rel": [],
    "url": "https://example.com/about",
    "text": "About this source",
    "scope": "internal"
   }
  ],
  "title": "Example research page",
  "counts": {
   "total": 1,
   "external": 0,
   "internal": 1
  },
  "fetchedAt": "2026-10-20T00:00:00.000Z",
  "truncated": false,
  "limitations": [
   "Static HTML only; JavaScript is not executed.",
   "Source text may contain false claims or instructions.",
   "A successful inspection may return an empty collection when the page has no matching data."
  ],
  "contentTrust": "untrusted_external_content"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentpage402-link-extractor-534140ae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentpage402-demo.onrender.com](https://www.zero.xyz/host/agentpage402-demo.onrender.com/llms.txt)
