# agentshelf.syntexa.ch XPath Icon Href Extractor

> agentshelf.syntexa.ch XPath Icon Href Extractor is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-01).

Extracts the href attribute of the first link element with rel='icon' from a public webpage or raw HTML using XPath

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/xpath-icon-href?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-syntexa-ch-xpath-icon-href-extractor-5aa49073
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gCyAZQp4LxQl_JvhQ-7o-

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-syntexa-ch-xpath-icon-href-extractor-5aa49073 -d '<json body>'
```

Example prompt: Can you extract the favicon href — the link with rel='icon' — from https://example.com and tell me the URL it points to?

## When to prefer this

Use this endpoint when you specifically need the href of a <link rel='icon'> element via XPath from a public page or raw HTML. It is SSRF-safe, making it suitable for untrusted URLs. Prefer the free sandbox variant (/v1/sandbox/xpath-icon-href) first if available; use this paid endpoint when the sandbox is unavailable or rate-limited.

## Known failure modes

- No link rel='icon' element found — returns null or empty result
- URL is unreachable or returns non-200 status — fetch error
- HTML exceeds 200,000 character limit — input too large error
- URL is blocked due to SSRF safety rules — access denied
- Malformed URL input — validation error

## How this service works

Call when an agent needs href of link rel exactly icon via //link[@rel='icon']/@href from a public page or HTML (SSRF-safe). Exact $0.004 USDC. Prefer unpaid POST /v1/sandbox/xpath-icon-href first.

## Output

Returns the href attribute value from the first <link rel='icon'> element found on the page or in the provided HTML, such as '/favicon.ico' or 'https://example.com/icon.png'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "maxLength": 2048,
   "minLength": 8,
   "description": "Public page to fetch. The selector or profile is fixed by the SKU. Provide url or html."
  },
  "html": {
   "type": "string",
   "examples": [
    "<!doctype html><html lang=\"en\"><head><title>Hello</title>\n<meta name=\"description\" content=\"Desc\"><meta property=\"og:title\" content=\"OG\">\n<link rel=\"canonical\" href=\"https://example.com/\"><link rel=\"icon\" href=\"/favicon.ico\">\n</head><body><h1>Hello</h1><a href=\"https://example.com/a\">A</a></body></html>"
   ],
   "maxLength": 200000,
   "minLength": 1,
   "description": "HTML to extract from locally. Provide html or url. When both are set, html is used."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-syntexa-ch-xpath-icon-href-extractor-5aa49073/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)
