# Page Link Extractor

> Page Link Extractor is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Extracts all de-duplicated, absolute URLs with anchor text from a public webpage, including internal/external link counts, feed declarations, and a sitemap hint.

## Facts

- Endpoint: GET https://api.agentstools.dev/links
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/page-link-extractor-dfe5e516
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hlgcnh0wgz0yuqh8h9dv4

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-link-extractor-dfe5e516
```

Example prompt: Can you pull all the links from https://example.com/blog — just the ones staying on the same host — so I can see what pages they link to internally, along with anchor text and any feeds they declare?

## When to prefer this

Use this endpoint when an agent needs to enumerate all hyperlinks on a single public page for crawling, site mapping, feed discovery, or link analysis — especially when you need de-duplicated absolute URLs with anchor text and internal/external classification in one call, without building a custom scraper.

## Known failure modes

- Non-public or paywalled URL returns access error
- Invalid or malformed URL returns validation error
- Timeout if the target page is slow or unresponsive
- Page with no links returns empty link array
- Private/intranet URLs not reachable by the crawler

## How this service works

Extract every link from a public page for crawling agents: de-duplicated absolute URLs with anchor text, internal/external counts, declared feeds and a sitemap hint.

## Output

A structured response containing de-duplicated absolute URLs paired with anchor text, counts of internal vs external links, any declared RSS/Atom/JSON feeds found on the page, and a hint about the site's sitemap location.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Public http(s) URL"
      },
      "same_host_only": {
       "type": "boolean",
       "description": "Keep only links on the same host (default false)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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