# AgentShelf Extract Links

> AgentShelf Extract Links is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Extracts all unique, de-duplicated hyperlinks (up to 500) from a public URL or provided HTML content

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/extract-links?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-extract-links-958f80e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5vM7INkdOlzSrGMEt78_j

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 agentshelf-extract-links-958f80e9 -d '<json body>'
```

Example prompt: Can you pull all the unique links from https://example.com/sitemap and give me a de-duplicated list of up to 500 absolute URLs?

## When to prefer this

Use this endpoint when you need a comprehensive, de-duplicated set of all hyperlinks (absolute URLs, up to 500) from a page — not just anchors, canonical tags, or stylesheet links. If you only need anchor hrefs or link[href] elements specifically, prefer the cheaper sibling endpoints. Try the free sandbox POST /v1/sandbox/extract-links first before paying $0.003 USDC.

## Known failure modes

- URL is private, local, or a metadata address (SSRF-safe rejection)
- URL is unreachable or returns a non-200 response
- HTML input exceeds 200,000 character limit
- No links found on the page — returns empty list
- URL string too short (under 8 chars) or too long (over 2048 chars)
- Payment not provided or USDC balance insufficient

## How this service works

Call when an agent needs absolute, de-duplicated links (cap 500) from a public URL or provided HTML. Exact $0.003 USDC. Prefer unpaid POST /v1/sandbox/extract-links first.

## Output

A list of up to 500 absolute, de-duplicated hyperlink URLs extracted from the target page or HTML. Links are normalized to absolute form and duplicates are removed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "examples": [
    "https://example.com/"
   ],
   "maxLength": 2048,
   "minLength": 8,
   "description": "Public http(s) URL to fetch. When html is also sent, this is only the base for relative links. Provide url or html."
  },
  "html": {
   "type": "string",
   "examples": [
    "<a href='/about'>About</a><a href='https://example.com/docs' rel='nofollow'>Docs</a>"
   ],
   "maxLength": 200000,
   "minLength": 1,
   "description": "HTML to parse locally instead of fetching. When both html and url are set, html is used. Provide html or url."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-extract-links-958f80e9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
