# Page Links Extractor

> Page Links Extractor is a paid API for AI agents from apexfaucet.xyz, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-19).

Fetches a webpage and returns up to 200 unique absolute URLs found on the page, with anchor text, internal/external classification, nofollow/sponsored/ugc flags, and link frequency counts.

## Facts

- Endpoint: GET https://apexfaucet.xyz/api/x402/page-links?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/page-links-extractor-5d8feb0b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a2uawTVty6uar8QGXyjnX

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 page-links-extractor-5d8feb0b
```

Example prompt: Can you grab all the links from https://example.com/blog and tell me which ones are external, which have nofollow, and what the anchor text is for each?

## When to prefer this

Choose this endpoint when you need a fast, structured list of links from a static HTML page without running JavaScript. It is ideal for SEO audits, link graph analysis, outbound link discovery, and nofollow/rel attribute inspection. It is not suitable for JavaScript-heavy single-page applications where links are rendered dynamically, or for pages requiring authentication.

## Known failure modes

- URL not publicly accessible (private network, authentication-gated) — returns error
- Host not on allowed ports (80/443/8080/8443) — rejected
- Non-http(s) scheme — rejected
- Page exceeds 1.5 MB read limit — only first 1.5 MB parsed
- JavaScript-rendered content not visible — only static HTML analyzed
- Host DNS resolution failure — returns error
- Request timeout on slow servers — returns error

## How this service works

APEX. Pass ?url= and get the links on a page: up to 200 unique absolute URLs in page order, each with anchor text (80 chars), internal or external, nofollow/sponsored/ugc flags and how often it appears, plus counts of internal, external, nofollow, #fragment and mailto/tel/javascript links. Reads the HTML as served (no JavaScript run), first 1.5 MB. Public http(s) hosts on ports 80/443/8080 only.

## Output

A JSON object with an ok boolean, a paid amount in USDC, and a data object containing: up to 200 unique absolute URLs in page order, each with its anchor text (truncated to 80 chars), internal/external classification, nofollow/sponsored/ugc rel flags, and occurrence count; plus aggregate counts for internal links, external links, nofollow links, fragment (#) links, and mailto/tel/javascript 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "pattern": "^https?://",
       "description": "The public http(s) page whose links to list."
      }
     }
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "properties": {
   "ok": {
    "type": "boolean"
   },
   "data": {
    "type": "object"
   },
   "paid": {
    "type": "number"
   }
  }
 },
 "example": {
  "ok": true,
  "data": {
   "ok": true,
   "url": "https://en.wikipedia.org/wiki/Web_crawler",
   "counts": {
    "ugc": 0,
    "noHref": 0,
    "external": 178,
    "internal": 316,
    "nofollow": 116,
    "sponsored": 0,
    "uniqueUrls": 494,
    "anchorsFound": 766,
    "fragmentOnly": 150,
    "skippedNonHttp": {
     "tel": 0,
     "other": 0,
     "mailto": 0,
     "javascript": 1
    }
   },
   "isHtml": true,
   "status": 200,
   "finalUrl": "https://en.wikipedia.org/wiki/Web_crawler",
   "returned": 200,
   "reachable": true,
   "redirects": 0,
   "truncated": false,
   "contentType": "text/html; charset=UTF-8",
   "baseHrefUsed": null
  },
  "paid": 0.002
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/page-links-extractor-5d8feb0b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apexfaucet.xyz](https://www.zero.xyz/host/apexfaucet.xyz/llms.txt)
