# CSS Nav Href Extractor

> CSS Nav Href Extractor is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Extracts navigation anchor hrefs from a public webpage or raw HTML using CSS selector nav a[href], with SSRF protection.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/css-nav-href?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/css-nav-href-extractor-00a5542e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g4nhyRR-Ra6ZP6uLOsdqC

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 css-nav-href-extractor-00a5542e -d '<json body>'
```

Example prompt: Can you extract all the navigation links from https://example.com — I need the hrefs from the nav menu?

## When to prefer this

Use this endpoint when you need to specifically extract navigation anchor hrefs (nav a[href]) from a webpage or HTML fragment in an SSRF-safe way. Prefer the free sandbox POST /v1/sandbox/css-nav-href for testing or unpaid use. Choose this over general-purpose scraping tools when you only need nav-section links and want a lightweight, cost-predictable ($0.005 USDC) extraction without running your own browser or parser.

## Known failure modes

- URL is not publicly accessible or returns non-200 status
- SSRF protection blocks private/internal IP ranges or localhost URLs
- HTML input exceeds 200,000 character limit
- No nav a[href] elements found — returns empty list
- Malformed URL or HTML causing parse failure
- Network timeout fetching the target URL

## How this service works

Call when an agent needs nav anchor hrefs via nav a[href] from a public page or HTML (SSRF-safe). Exact $0.005 USDC. Prefer unpaid POST /v1/sandbox/css-nav-href first.

## Output

A list of href attribute values extracted from nav a[href] elements on the given page or HTML, representing the navigation link URLs found in the page's navigation sections.

## 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 charset=\"utf-8\"><meta name=\"description\" content=\"Desc\">\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/css-nav-href-extractor-00a5542e/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)
