# x402 Web Tools – Page Link Extractor

> x402 Web Tools – Page Link Extractor is a paid API for AI agents from web.kagurazaka.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-29).

Extracts every distinct link from a public web page as absolute URLs with anchor text, classified as internal or external and nofollow, up to 500 links.

## Facts

- Endpoint: GET https://web.kagurazaka.dev/v1/links?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-web-tools-page-link-extractor-e1274e5f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_d0rGSoDwTvqn7aICD0UdP

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-web-tools-page-link-extractor-e1274e5f
```

Example prompt: Can you pull all the links from https://www.example.com/blog and tell me which ones are external and whether any are marked nofollow?

## When to prefer this

Choose this endpoint when you need a structured, classified list of all hyperlinks on a specific public page — including anchor text and internal/external/nofollow flags — without needing full page content. Ideal for SEO audits, link graph analysis, competitor research, and content verification tasks. Prefer over a full page scraper when you only need link metadata, not body text.

## Known failure modes

- URL is not publicly accessible or returns a non-200 status — endpoint may return an error or empty links array
- Page has no anchor tags — returns empty links array with zero counts
- URL parameter missing — request rejected with validation error
- Page exceeds size limits or has too many links — truncated at 500 links
- JavaScript-rendered links may not be captured if the page requires JS execution
- Malformed or non-HTTPS URL — request rejected per schema constraint

## How this service works

Every distinct link on a public web page as absolute URLs with their anchor text, marked internal or external and nofollow, up to 500.

## Output

A JSON object containing an array of up to 500 link objects (each with absolute URL, anchor text, internal boolean, nofollow boolean), plus summary counts for unique, external, and internal links.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "https URL of the page"
      },
      "only": {
       "enum": [
        "all",
        "internal",
        "external"
       ],
       "type": "string",
       "description": "which links to return (default all)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "links": {},
      "unique": {},
      "external": {},
      "internal": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "links": [
   {
    "url": "https://github.com/x402-foundation/x402",
    "text": "GitHub",
    "internal": false,
    "nofollow": false
   }
  ],
  "unique": 19,
  "external": 17,
  "internal": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-web-tools-page-link-extractor-e1274e5f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from web.kagurazaka.dev](https://www.zero.xyz/host/web.kagurazaka.dev/llms.txt)
