# Agent Web Tools – Extract All Links from a Page

> Agent Web Tools – Extract All Links from a Page is a paid API for AI agents from agent-web-tools.agent-web-tools.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-20).

Fetches all absolute, deduplicated hyperlinks from a given web page URL and returns them split into internal and external links.

## Facts

- Endpoint: GET https://agent-web-tools.agent-web-tools.workers.dev/v1/links?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-web-tools-extract-all-links-from-a-page-1fcd9bcd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7jK3FcqRIPctVukbzrgVA

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 agent-web-tools-extract-all-links-from-a-page-1fcd9bcd
```

Example prompt: Can you pull all the links from https://example.com/blog and tell me which ones are internal versus external?

## When to prefer this

Choose this endpoint when you specifically need a structured list of internal vs. external links from a page, without needing the full page content or metadata. It is more targeted than a full page extraction and cheaper than a full crawl. Ideal for link audits, SEO analysis, site mapping, and discovering outbound references from a specific URL.

## Known failure modes

- Non-public or non-HTTP/HTTPS URLs (e.g. localhost, non-standard ports) are rejected
- Pages behind authentication or paywalls return no links or partial results
- Heavy JavaScript-rendered pages may return fewer links if content is not in initial HTML
- Rate limiting or network timeouts on the target URL can cause failures
- Malformed URLs in the query parameter return a validation error

## How this service works

All links on a page, absolute and deduplicated, split into internal and external.

## Output

Returns two lists of absolute, deduplicated URLs: one for internal links (same domain) and one for external links (different domains), extracted from all anchor tags on the given page.

## 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": "Public http(s) URL (ports 80/443)"
      }
     }
    }
   },
   "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/agent-web-tools-extract-all-links-from-a-page-1fcd9bcd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-web-tools.agent-web-tools.workers.dev](https://www.zero.xyz/host/agent-web-tools.agent-web-tools.workers.dev/llms.txt)
